Last active
December 30, 2024 16:23
-
-
Save cmwylie19/4e8e9c7a71985ff935acd174a8c481b3 to your computer and use it in GitHub Desktop.
CRD for a WebApp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apiextensions.k8s.io/v1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: webapps.pepr.io | |
| spec: | |
| group: pepr.io | |
| versions: | |
| - name: v1alpha1 | |
| served: true | |
| storage: true | |
| subresources: | |
| status: {} | |
| schema: | |
| openAPIV3Schema: | |
| type: object | |
| properties: | |
| apiVersion: | |
| type: string | |
| kind: | |
| type: string | |
| metadata: | |
| type: object | |
| spec: | |
| required: | |
| - theme | |
| - language | |
| - replicas | |
| type: object | |
| properties: | |
| theme: | |
| type: string | |
| description: "Theme defines the theme of the web application, either dark or light." | |
| enum: | |
| - "dark" | |
| - "light" | |
| language: | |
| type: string | |
| description: "Language defines the language of the web application, either English (en) or Spanish (es)." | |
| enum: | |
| - "en" | |
| - "es" | |
| replicas: | |
| type: integer | |
| description: "Replicas is the number of desired replicas." | |
| status: | |
| type: object | |
| properties: | |
| observedGeneration: | |
| type: integer | |
| phase: | |
| type: string | |
| enum: | |
| - "Failed" | |
| - "Pending" | |
| - "Ready" | |
| scope: Namespaced | |
| names: | |
| plural: webapps | |
| singular: webapp | |
| kind: WebApp | |
| shortNames: | |
| - wa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment