Skip to content

Commit

Permalink
Fix CRD versioning
Browse files Browse the repository at this point in the history
* Rename CRDs versions from vXbeta to v1betaX.
* Only keep last two versions of each CRD and fix version names

Contributed on behalf of STMicroelectronics

Co-authored-by: Simon Graband <[email protected]>
  • Loading branch information
jfaltermeier and sgraband committed Jan 10, 2024
1 parent 4b0260f commit 953b627
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 457 deletions.
333 changes: 11 additions & 322 deletions charts/theia-cloud-crds/templates/appdefinition-spec-resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
singular: appdefinition
scope: Namespaced
versions:
- name: v8beta
- name: v1beta8
served: true
storage: true
# subresources describes the subresources for custom resources.
Expand All @@ -30,7 +30,7 @@ spec:
properties:
name:
type: string
pattern: '^[a-z0-9A-Z-_]+$'
pattern: "^[a-z0-9A-Z-_]+$"
image:
type: string
imagePullPolicy:
Expand Down Expand Up @@ -97,15 +97,15 @@ spec:
- limitsMemory
- limitsCpu
status:
type: object
properties:
operatorStatus:
type: string
operatorMessage:
type: string
type: object
properties:
operatorStatus:
type: string
operatorMessage:
type: string
required:
- spec
- name: v7beta
- name: v1beta7
served: true
storage: false
# subresources describes the subresources for custom resources.
Expand Down Expand Up @@ -172,320 +172,9 @@ spec:
notifyAfter:
type: integer
status:
type: object
properties:
operatorStatus:
type: string
operatorMessage:
type: string
- name: v6beta
served: true
storage: false
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
name:
type: string
image:
type: string
imagePullPolicy:
type: string
enum: ["Always", "IfNotPresent", "Never"]
pullSecret:
type: string
uid:
type: integer
port:
type: integer
ingressname:
type: string
minInstances:
type: integer
maxInstances:
type: integer
timeout:
type: object
properties:
strategy:
type: string
limit:
type: integer
requestsMemory:
type: string
requestsCpu:
type: string
limitsMemory:
type: string
limitsCpu:
type: string
downlinkLimit:
type: integer
uplinkLimit:
type: integer
mountPath:
type: string
monitor:
type: object
properties:
port:
type: integer
activityTracker:
type: object
properties:
timeoutAfter:
type: integer
notifyAfter:
type: integer
- name: v5beta
served: true
storage: false
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
name:
type: string
image:
type: string
imagePullPolicy:
type: string
enum: ["Always", "IfNotPresent", "Never"]
pullSecret:
type: string
uid:
type: integer
port:
type: integer
host:
type: string
ingressname:
type: string
minInstances:
type: integer
maxInstances:
type: integer
timeout:
type: object
properties:
strategy:
type: string
limit:
type: integer
requestsMemory:
type: string
requestsCpu:
type: string
limitsMemory:
type: string
limitsCpu:
type: string
downlinkLimit:
type: integer
uplinkLimit:
type: integer
mountPath:
type: string
monitor:
type: object
properties:
port:
type: integer
activityTracker:
type: object
properties:
timeoutAfter:
type: integer
notifyAfter:
type: integer
- name: v4beta
served: true
storage: false
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
name:
type: string
image:
type: string
imagePullPolicy:
type: string
enum: ["Always", "IfNotPresent", "Never"]
pullSecret:
type: string
uid:
type: integer
port:
type: integer
host:
type: string
ingressname:
type: string
minInstances:
type: integer
maxInstances:
type: integer
timeout:
type: object
properties:
strategy:
type: string
limit:
type: integer
requestsMemory:
type: string
requestsCpu:
type: string
limitsMemory:
type: string
limitsCpu:
type: string
downlinkLimit:
type: integer
uplinkLimit:
type: integer
mountPath:
type: string
- name: v3beta
served: true
storage: false
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
name:
operatorStatus:
type: string
image:
operatorMessage:
type: string
pullSecret:
type: string
uid:
type: integer
port:
type: integer
host:
type: string
ingressname:
type: string
minInstances:
type: integer
maxInstances:
type: integer
timeout:
type: object
properties:
strategy:
type: string
limit:
type: integer
requestsMemory:
type: string
requestsCpu:
type: string
limitsMemory:
type: string
limitsCpu:
type: string
downlinkLimit:
type: integer
uplinkLimit:
type: integer
mountPath:
type: string
- name: v2beta
served: true
storage: false
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
name:
type: string
image:
type: string
pullSecret:
type: string
uid:
type: integer
port:
type: integer
host:
type: string
ingressname:
type: string
minInstances:
type: integer
maxInstances:
type: integer
killAfter:
type: integer
requestsMemory:
type: string
requestsCpu:
type: string
limitsMemory:
type: string
limitsCpu:
type: string
downlinkLimit:
type: integer
uplinkLimit:
type: integer
mountPath:
type: string
- name: v1beta
served: true
storage: false
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
name:
type: string
image:
type: string
uid:
type: integer
port:
type: integer
host:
type: string
ingressname:
type: string
minInstances:
type: integer
maxInstances:
type: integer
killAfter:
type: integer
requestsMemory:
type: string
requestsCpu:
type: string
limitsMemory:
type: string
limitsCpu:
type: string
downlinkLimit:
type: integer
uplinkLimit:
type: integer
Loading

0 comments on commit 953b627

Please sign in to comment.