Skip to content

Commit

Permalink
Merge pull request #155 from sherifkayad/crd-api-version-upgrade
Browse files Browse the repository at this point in the history
upgraded the CRD version to apiextensions.k8s.io/v1
  • Loading branch information
ahmedwaleedmalik committed Jul 19, 2021
2 parents 3a0909b + 501712d commit 4edffe5
Show file tree
Hide file tree
Showing 3 changed files with 157 additions and 151 deletions.
104 changes: 53 additions & 51 deletions deployments/kubernetes/chart/forecastle/crds/forecastleApp.yaml
Original file line number Diff line number Diff line change
@@ -1,66 +1,68 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: forecastleapps.forecastle.stakater.com
spec:
conversion:
strategy: None
group: forecastle.stakater.com
names:
kind: ForecastleApp
listKind: ForecastleAppList
plural: forecastleapps
singular: forecastleapp
preserveUnknownFields: true
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
group:
type: string
icon:
type: string
instance:
type: string
name:
type: string
networkRestricted:
type: boolean
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
additionalProperties:
group:
type: string
icon:
type: string
instance:
type: string
type: object
url:
type: string
urlFrom:
name:
type: string
networkRestricted:
type: boolean
properties:
ingressRef:
type: object
routeRef:
type: object
type: object
required:
- name
- group
- icon
type: object
status:
type: object
version: v1alpha1
versions:
- name: v1alpha1
additionalProperties:
type: string
type: object
url:
type: string
urlFrom:
properties:
ingressRef:
type: object
routeRef:
type: object
type: object
required:
- name
- group
- icon
type: object
status:
type: object
served: true
storage: true
storage: true
subresources:
status: {}
102 changes: 52 additions & 50 deletions deployments/kubernetes/forecastle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,72 +26,74 @@ data:
---
# Source: forecastle/templates/crd.yaml

apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: forecastleapps.forecastle.stakater.com
spec:
conversion:
strategy: None
group: forecastle.stakater.com
names:
kind: ForecastleApp
listKind: ForecastleAppList
plural: forecastleapps
singular: forecastleapp
preserveUnknownFields: true
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
group:
type: string
icon:
type: string
instance:
type: string
name:
type: string
networkRestricted:
type: boolean
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
additionalProperties:
group:
type: string
icon:
type: string
instance:
type: string
type: object
url:
type: string
urlFrom:
name:
type: string
networkRestricted:
type: boolean
properties:
ingressRef:
type: object
routeRef:
type: object
type: object
required:
- name
- group
- icon
type: object
status:
type: object
version: v1alpha1
versions:
- name: v1alpha1
additionalProperties:
type: string
type: object
url:
type: string
urlFrom:
properties:
ingressRef:
type: object
routeRef:
type: object
type: object
required:
- name
- group
- icon
type: object
status:
type: object
served: true
storage: true
subresources:
status: {}
---
# Source: forecastle/templates/deployment.yaml
apiVersion: apps/v1
Expand Down
102 changes: 52 additions & 50 deletions deployments/kubernetes/manifests/crd.yaml
Original file line number Diff line number Diff line change
@@ -1,69 +1,71 @@
---
# Source: forecastle/templates/crd.yaml

apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: forecastleapps.forecastle.stakater.com
spec:
conversion:
strategy: None
group: forecastle.stakater.com
names:
kind: ForecastleApp
listKind: ForecastleAppList
plural: forecastleapps
singular: forecastleapp
preserveUnknownFields: true
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
group:
type: string
icon:
type: string
instance:
type: string
name:
type: string
networkRestricted:
type: boolean
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
additionalProperties:
group:
type: string
icon:
type: string
instance:
type: string
type: object
url:
type: string
urlFrom:
name:
type: string
networkRestricted:
type: boolean
properties:
ingressRef:
type: object
routeRef:
type: object
type: object
required:
- name
- group
- icon
type: object
status:
type: object
version: v1alpha1
versions:
- name: v1alpha1
additionalProperties:
type: string
type: object
url:
type: string
urlFrom:
properties:
ingressRef:
type: object
routeRef:
type: object
type: object
required:
- name
- group
- icon
type: object
status:
type: object
served: true
storage: true
subresources:
status: {}

0 comments on commit 4edffe5

Please sign in to comment.