diff --git a/charts/theia-cloud-crds/Chart.yaml b/charts/theia-cloud-crds/Chart.yaml index 8f6a47b..d68fcf5 100644 --- a/charts/theia-cloud-crds/Chart.yaml +++ b/charts/theia-cloud-crds/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.2.0-next.0 +version: 1.2.0-next.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/theia-cloud-crds/templates/appdefinition-spec-resource.yaml b/charts/theia-cloud-crds/templates/appdefinition-spec-resource.yaml index 5c22d36..f439de9 100644 --- a/charts/theia-cloud-crds/templates/appdefinition-spec-resource.yaml +++ b/charts/theia-cloud-crds/templates/appdefinition-spec-resource.yaml @@ -16,10 +16,138 @@ spec: - ad scope: Namespaced versions: - - name: v1beta10 + - name: v1beta11 served: true storage: true # subresources describes the subresources for custom resources. + subresources: + # status enables the status subresource. + status: {} + schema: + openAPIV3Schema: + type: object + properties: + spec: + type: object + x-kubernetes-validations: + - rule: "self.minInstances <= self.maxInstances" + message: "minInstances should be less or equal than maxInstances." + properties: + name: + type: string + pattern: "^[a-z0-9A-Z-_]+$" + image: + type: string + imagePullPolicy: + type: string + enum: ["Always", "IfNotPresent", "Never"] + pullSecret: + type: string + uid: + type: integer + port: + type: integer + minimum: 0 + maximum: 65535 + ingressname: + type: string + ingressHostnamePrefixes: + type: array + items: + type: string + minInstances: + type: integer + maxInstances: + type: integer + timeout: + 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 + options: + type: object + additionalProperties: + x-kubernetes-int-or-string: true + sidecars: + type: array + items: + type: object + required: + - name + - image + - port + properties: + name: + type: string + pattern: "^[a-z0-9A-Z-_]+$" + image: + type: string + port: + type: integer + minimum: 1 + maximum: 65535 + languages: + type: array + items: + type: string + cpuLimit: + type: string + memoryLimit: + type: string + cpuRequest: + type: string + memoryRequest: + type: string + mountWorkspace: + type: boolean + required: + - name + - image + - uid + - port + - ingressname + - minInstances + - maxInstances + - requestsCpu + - requestsMemory + - limitsMemory + - limitsCpu + status: + type: object + properties: + operatorStatus: + type: string + operatorMessage: + type: string + required: + - spec + - name: v1beta10 + served: true + storage: false + # subresources describes the subresources for custom resources. subresources: # status enables the status subresource. status: {}