|
| 1 | +--- |
| 2 | +apiVersion: apiextensions.k8s.io/v1 |
| 3 | +kind: CustomResourceDefinition |
| 4 | +metadata: |
| 5 | + annotations: |
| 6 | + controller-gen.kubebuilder.io/version: v0.15.0 |
| 7 | + name: capsuleconfigurations.capsule.clastix.io |
| 8 | +spec: |
| 9 | + group: capsule.clastix.io |
| 10 | + names: |
| 11 | + kind: CapsuleConfiguration |
| 12 | + listKind: CapsuleConfigurationList |
| 13 | + plural: capsuleconfigurations |
| 14 | + singular: capsuleconfiguration |
| 15 | + scope: Cluster |
| 16 | + versions: |
| 17 | + - name: v1beta2 |
| 18 | + schema: |
| 19 | + openAPIV3Schema: |
| 20 | + description: CapsuleConfiguration is the Schema for the Capsule configuration |
| 21 | + API. |
| 22 | + properties: |
| 23 | + apiVersion: |
| 24 | + description: |- |
| 25 | + APIVersion defines the versioned schema of this representation of an object. |
| 26 | + Servers should convert recognized schemas to the latest internal value, and |
| 27 | + may reject unrecognized values. |
| 28 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
| 29 | + type: string |
| 30 | + kind: |
| 31 | + description: |- |
| 32 | + Kind is a string value representing the REST resource this object represents. |
| 33 | + Servers may infer this from the endpoint the client submits requests to. |
| 34 | + Cannot be updated. |
| 35 | + In CamelCase. |
| 36 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
| 37 | + type: string |
| 38 | + metadata: |
| 39 | + type: object |
| 40 | + spec: |
| 41 | + description: CapsuleConfigurationSpec defines the Capsule configuration. |
| 42 | + properties: |
| 43 | + enableTLSReconciler: |
| 44 | + default: true |
| 45 | + description: |- |
| 46 | + Toggles the TLS reconciler, the controller that is able to generate CA and certificates for the webhooks |
| 47 | + when not using an already provided CA and certificate, or when these are managed externally with Vault, or cert-manager. |
| 48 | + type: boolean |
| 49 | + forceTenantPrefix: |
| 50 | + default: false |
| 51 | + description: |- |
| 52 | + Enforces the Tenant owner, during Namespace creation, to name it using the selected Tenant name as prefix, |
| 53 | + separated by a dash. This is useful to avoid Namespace name collision in a public CaaS environment. |
| 54 | + type: boolean |
| 55 | + nodeMetadata: |
| 56 | + description: |- |
| 57 | + Allows to set the forbidden metadata for the worker nodes that could be patched by a Tenant. |
| 58 | + This applies only if the Tenant has an active NodeSelector, and the Owner have right to patch their nodes. |
| 59 | + properties: |
| 60 | + forbiddenAnnotations: |
| 61 | + description: Define the annotations that a Tenant Owner cannot |
| 62 | + set for their nodes. |
| 63 | + properties: |
| 64 | + denied: |
| 65 | + items: |
| 66 | + type: string |
| 67 | + type: array |
| 68 | + deniedRegex: |
| 69 | + type: string |
| 70 | + type: object |
| 71 | + forbiddenLabels: |
| 72 | + description: Define the labels that a Tenant Owner cannot set |
| 73 | + for their nodes. |
| 74 | + properties: |
| 75 | + denied: |
| 76 | + items: |
| 77 | + type: string |
| 78 | + type: array |
| 79 | + deniedRegex: |
| 80 | + type: string |
| 81 | + type: object |
| 82 | + required: |
| 83 | + - forbiddenAnnotations |
| 84 | + - forbiddenLabels |
| 85 | + type: object |
| 86 | + overrides: |
| 87 | + default: |
| 88 | + TLSSecretName: capsule-tls |
| 89 | + mutatingWebhookConfigurationName: capsule-mutating-webhook-configuration |
| 90 | + validatingWebhookConfigurationName: capsule-validating-webhook-configuration |
| 91 | + description: |- |
| 92 | + Allows to set different name rather than the canonical one for the Capsule configuration objects, |
| 93 | + such as webhook secret or configurations. |
| 94 | + properties: |
| 95 | + TLSSecretName: |
| 96 | + default: capsule-tls |
| 97 | + description: |- |
| 98 | + Defines the Secret name used for the webhook server. |
| 99 | + Must be in the same Namespace where the Capsule Deployment is deployed. |
| 100 | + type: string |
| 101 | + mutatingWebhookConfigurationName: |
| 102 | + default: capsule-mutating-webhook-configuration |
| 103 | + description: Name of the MutatingWebhookConfiguration which contains |
| 104 | + the dynamic admission controller paths and resources. |
| 105 | + type: string |
| 106 | + validatingWebhookConfigurationName: |
| 107 | + default: capsule-validating-webhook-configuration |
| 108 | + description: Name of the ValidatingWebhookConfiguration which |
| 109 | + contains the dynamic admission controller paths and resources. |
| 110 | + type: string |
| 111 | + required: |
| 112 | + - TLSSecretName |
| 113 | + - mutatingWebhookConfigurationName |
| 114 | + - validatingWebhookConfigurationName |
| 115 | + type: object |
| 116 | + protectedNamespaceRegex: |
| 117 | + description: Disallow creation of namespaces, whose name matches this |
| 118 | + regexp |
| 119 | + type: string |
| 120 | + userGroups: |
| 121 | + default: |
| 122 | + - capsule.clastix.io |
| 123 | + description: Names of the groups for Capsule users. |
| 124 | + items: |
| 125 | + type: string |
| 126 | + type: array |
| 127 | + required: |
| 128 | + - enableTLSReconciler |
| 129 | + type: object |
| 130 | + type: object |
| 131 | + served: true |
| 132 | + storage: true |
0 commit comments