From f948e149af78c94e14d7e9f83be47b1d7ded3c9b Mon Sep 17 00:00:00 2001 From: "Shinebayar G." <3091558+shinebayar-g@users.noreply.github.com> Date: Sat, 11 Jan 2025 11:28:04 -0500 Subject: [PATCH] fix(cli): read local crd yaml files from config (#79) --- examples/k8skonfig.yaml | 2 + ...inition.mysqlclusters.moco.cybozu.com.yaml | 6115 +++++++++++++++++ packages/cli/src/generateCRDs.ts | 10 +- 3 files changed, 6126 insertions(+), 1 deletion(-) create mode 100644 examples/moco/CustomResourceDefinition.mysqlclusters.moco.cybozu.com.yaml diff --git a/examples/k8skonfig.yaml b/examples/k8skonfig.yaml index 686e3cd..c0dafda 100644 --- a/examples/k8skonfig.yaml +++ b/examples/k8skonfig.yaml @@ -6,3 +6,5 @@ crds: - https://raw.githubusercontent.com/argoproj/argo-cd/refs/tags/v2.13.2/manifests/crds/appproject-crd.yaml external-secrets: - https://raw.githubusercontent.com/external-secrets/external-secrets/refs/tags/v0.12.1/deploy/crds/bundle.yaml + moco: + - moco/CustomResourceDefinition.mysqlclusters.moco.cybozu.com.yaml diff --git a/examples/moco/CustomResourceDefinition.mysqlclusters.moco.cybozu.com.yaml b/examples/moco/CustomResourceDefinition.mysqlclusters.moco.cybozu.com.yaml new file mode 100644 index 0000000..32dd4e7 --- /dev/null +++ b/examples/moco/CustomResourceDefinition.mysqlclusters.moco.cybozu.com.yaml @@ -0,0 +1,6115 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + cert-manager.io/inject-ca-from: moco-system/moco-serving-cert + controller-gen.kubebuilder.io/version: v0.16.2 + helm.sh/resource-policy: keep + labels: + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: moco + app.kubernetes.io/version: 0.25.1 + helm.sh/chart: moco-0.15.1 + name: mysqlclusters.moco.cybozu.com +spec: + conversion: + strategy: Webhook + webhook: + clientConfig: + service: + name: moco-webhook-service + namespace: moco-system + path: /convert + conversionReviewVersions: + - v1 + group: moco.cybozu.com + names: + kind: MySQLCluster + listKind: MySQLClusterList + plural: mysqlclusters + singular: mysqlcluster + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Available')].status + name: Available + type: string + - jsonPath: .status.conditions[?(@.type=='Healthy')].status + name: Healthy + type: string + - jsonPath: .status.currentPrimaryIndex + name: Primary + type: integer + - jsonPath: .status.syncedReplicas + name: Synced replicas + type: integer + - jsonPath: .status.errantReplicas + name: Errant replicas + type: integer + - jsonPath: .status.conditions[?(@.type=='ClusteringActive')].status + name: Clustering Active + type: string + - jsonPath: .status.conditions[?(@.type=='ReconciliationActive')].status + name: Reconcile Active + type: string + - jsonPath: .status.backup.time + name: Last backup + type: string + name: v1beta2 + schema: + openAPIV3Schema: + description: MySQLCluster is the Schema for the mysqlclusters A + properties: + apiVersion: + description: APIVersion defines the versioned schema of this re + type: string + kind: + description: Kind is a string value representing the REST resou + type: string + metadata: + type: object + spec: + description: MySQLClusterSpec defines the desired state of MySQ + properties: + agentUseLocalhost: + description: "AgentUseLocalhost configures the mysqld interface " + type: boolean + backupPolicyName: + description: The name of BackupPolicy custom resource in the sa + nullable: true + type: string + collectors: + description: "Collectors is the list of collector flag names of " + items: + type: string + type: array + disableSlowQueryLogContainer: + description: DisableSlowQueryLogContainer controls whether to a + type: boolean + logRotationSchedule: + description: LogRotationSchedule specifies the schedule to rota + type: string + logRotationSize: + description: LogRotationSize specifies the size to rotate MySQL + type: integer + maxDelaySeconds: + default: 60 + description: "MaxDelaySeconds configures the readiness probe of " + minimum: 0 + type: integer + maxDelaySecondsForPodDeletion: + default: 0 + description: MaxDelaySecondsForPodDeletion configures the maxim + format: int64 + minimum: 0 + type: integer + mysqlConfigMapName: + description: "MySQLConfigMapName is a `ConfigMap` name of MySQL " + nullable: true + type: string + offline: + description: Offline sets the cluster offline, releasing comput + type: boolean + podTemplate: + description: PodTemplate is a `Pod` template for MySQL server c + properties: + metadata: + description: Standard object's metadata. + properties: + annotations: + additionalProperties: + type: string + description: Annotations is a map of string keys and values. + type: object + labels: + additionalProperties: + type: string + description: Labels is a map of string keys and values. + type: object + name: + description: Name is the name of the object. + type: string + type: object + overwriteContainers: + description: OverwriteContainers overwrites the container defin + items: + description: OverwriteContainer defines the container spec used + properties: + name: + description: Name of the container to overwrite. + enum: + - agent + - moco-init + - slow-log + - mysqld-exporter + type: string + resources: + description: Resources is the container resource to be overwrit + properties: + claims: + items: + description: ResourceClaimApplyConfiguration represents a decla + properties: + name: + type: string + request: + type: string + type: object + type: array + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) + type: object + type: object + required: + - name + type: object + type: array + spec: + description: Specification of the desired behavior of the pod. + properties: + activeDeadlineSeconds: + format: int64 + type: integer + affinity: + description: AffinityApplyConfiguration represents a declarativ + properties: + nodeAffinity: + description: NodeAffinityApplyConfiguration represents a declar + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + description: PreferredSchedulingTermApplyConfiguration represen + properties: + preference: + description: NodeSelectorTermApplyConfiguration represents a de + properties: + matchExpressions: + items: + description: NodeSelectorRequirementApplyConfiguration represen + properties: + key: + type: string + operator: + description: A node selector operator is the set of operators t + type: string + values: + items: + type: string + type: array + type: object + type: array + matchFields: + items: + description: NodeSelectorRequirementApplyConfiguration represen + properties: + key: + type: string + operator: + description: A node selector operator is the set of operators t + type: string + values: + items: + type: string + type: array + type: object + type: array + type: object + weight: + format: int32 + type: integer + type: object + type: array + requiredDuringSchedulingIgnoredDuringExecution: + description: NodeSelectorApplyConfiguration represents a declar + properties: + nodeSelectorTerms: + items: + description: NodeSelectorTermApplyConfiguration represents a de + properties: + matchExpressions: + items: + description: NodeSelectorRequirementApplyConfiguration represen + properties: + key: + type: string + operator: + description: A node selector operator is the set of operators t + type: string + values: + items: + type: string + type: array + type: object + type: array + matchFields: + items: + description: NodeSelectorRequirementApplyConfiguration represen + properties: + key: + type: string + operator: + description: A node selector operator is the set of operators t + type: string + values: + items: + type: string + type: array + type: object + type: array + type: object + type: array + type: object + type: object + podAffinity: + description: PodAffinityApplyConfiguration represents a declara + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + description: WeightedPodAffinityTermApplyConfiguration represen + properties: + podAffinityTerm: + description: PodAffinityTermApplyConfiguration represents a dec + properties: + labelSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + matchLabelKeys: + items: + type: string + type: array + mismatchLabelKeys: + items: + type: string + type: array + namespaceSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + namespaces: + items: + type: string + type: array + topologyKey: + type: string + type: object + weight: + format: int32 + type: integer + type: object + type: array + requiredDuringSchedulingIgnoredDuringExecution: + items: + description: PodAffinityTermApplyConfiguration represents a dec + properties: + labelSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + matchLabelKeys: + items: + type: string + type: array + mismatchLabelKeys: + items: + type: string + type: array + namespaceSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + namespaces: + items: + type: string + type: array + topologyKey: + type: string + type: object + type: array + type: object + podAntiAffinity: + description: PodAntiAffinityApplyConfiguration represents a dec + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + description: WeightedPodAffinityTermApplyConfiguration represen + properties: + podAffinityTerm: + description: PodAffinityTermApplyConfiguration represents a dec + properties: + labelSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + matchLabelKeys: + items: + type: string + type: array + mismatchLabelKeys: + items: + type: string + type: array + namespaceSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + namespaces: + items: + type: string + type: array + topologyKey: + type: string + type: object + weight: + format: int32 + type: integer + type: object + type: array + requiredDuringSchedulingIgnoredDuringExecution: + items: + description: PodAffinityTermApplyConfiguration represents a dec + properties: + labelSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + matchLabelKeys: + items: + type: string + type: array + mismatchLabelKeys: + items: + type: string + type: array + namespaceSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + namespaces: + items: + type: string + type: array + topologyKey: + type: string + type: object + type: array + type: object + type: object + automountServiceAccountToken: + type: boolean + containers: + items: + description: ContainerApplyConfiguration represents a declarati + properties: + args: + items: + type: string + type: array + command: + items: + type: string + type: array + env: + items: + description: "EnvVarApplyConfiguration represents a declarative " + properties: + name: + type: string + value: + type: string + valueFrom: + description: EnvVarSourceApplyConfiguration represents a declar + properties: + configMapKeyRef: + description: "ConfigMapKeySelectorApplyConfiguration represents " + properties: + key: + type: string + name: + type: string + optional: + type: boolean + type: object + fieldRef: + description: ObjectFieldSelectorApplyConfiguration represents a + properties: + apiVersion: + type: string + fieldPath: + type: string + type: object + resourceFieldRef: + description: ResourceFieldSelectorApplyConfiguration represents + properties: + containerName: + type: string + divisor: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + resource: + type: string + type: object + secretKeyRef: + description: SecretKeySelectorApplyConfiguration represents a d + properties: + key: + type: string + name: + type: string + optional: + type: boolean + type: object + type: object + type: object + type: array + envFrom: + items: + description: EnvFromSourceApplyConfiguration represents a decla + properties: + configMapRef: + description: "ConfigMapEnvSourceApplyConfiguration represents a " + properties: + name: + type: string + optional: + type: boolean + type: object + prefix: + type: string + secretRef: + description: SecretEnvSourceApplyConfiguration represents a dec + properties: + name: + type: string + optional: + type: boolean + type: object + type: object + type: array + image: + type: string + imagePullPolicy: + description: "PullPolicy describes a policy for if/when to pull " + type: string + lifecycle: + description: LifecycleApplyConfiguration represents a declarati + properties: + postStart: + description: LifecycleHandlerApplyConfiguration represents a de + properties: + exec: + description: ExecActionApplyConfiguration represents a declarat + properties: + command: + items: + type: string + type: array + type: object + httpGet: + description: HTTPGetActionApplyConfiguration represents a decla + properties: + host: + type: string + httpHeaders: + items: + description: HTTPHeaderApplyConfiguration represents a declarat + properties: + name: + type: string + value: + type: string + type: object + type: array + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + description: URIScheme identifies the scheme used for connectio + type: string + type: object + sleep: + description: SleepActionApplyConfiguration represents a declara + properties: + seconds: + format: int64 + type: integer + type: object + tcpSocket: + description: TCPSocketActionApplyConfiguration represents a dec + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + type: object + type: object + preStop: + description: LifecycleHandlerApplyConfiguration represents a de + properties: + exec: + description: ExecActionApplyConfiguration represents a declarat + properties: + command: + items: + type: string + type: array + type: object + httpGet: + description: HTTPGetActionApplyConfiguration represents a decla + properties: + host: + type: string + httpHeaders: + items: + description: HTTPHeaderApplyConfiguration represents a declarat + properties: + name: + type: string + value: + type: string + type: object + type: array + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + description: URIScheme identifies the scheme used for connectio + type: string + type: object + sleep: + description: SleepActionApplyConfiguration represents a declara + properties: + seconds: + format: int64 + type: integer + type: object + tcpSocket: + description: TCPSocketActionApplyConfiguration represents a dec + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + type: object + type: object + type: object + livenessProbe: + description: ProbeApplyConfiguration represents a declarative c + properties: + exec: + description: ExecActionApplyConfiguration represents a declarat + properties: + command: + items: + type: string + type: array + type: object + failureThreshold: + format: int32 + type: integer + grpc: + description: GRPCActionApplyConfiguration represents a declarat + properties: + port: + format: int32 + type: integer + service: + type: string + type: object + httpGet: + description: HTTPGetActionApplyConfiguration represents a decla + properties: + host: + type: string + httpHeaders: + items: + description: HTTPHeaderApplyConfiguration represents a declarat + properties: + name: + type: string + value: + type: string + type: object + type: array + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + description: URIScheme identifies the scheme used for connectio + type: string + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + description: TCPSocketActionApplyConfiguration represents a dec + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + name: + type: string + ports: + items: + description: ContainerPortApplyConfiguration represents a decla + properties: + containerPort: + format: int32 + type: integer + hostIP: + type: string + hostPort: + format: int32 + type: integer + name: + type: string + protocol: + description: Protocol defines network protocols supported for t + type: string + type: object + type: array + readinessProbe: + description: ProbeApplyConfiguration represents a declarative c + properties: + exec: + description: ExecActionApplyConfiguration represents a declarat + properties: + command: + items: + type: string + type: array + type: object + failureThreshold: + format: int32 + type: integer + grpc: + description: GRPCActionApplyConfiguration represents a declarat + properties: + port: + format: int32 + type: integer + service: + type: string + type: object + httpGet: + description: HTTPGetActionApplyConfiguration represents a decla + properties: + host: + type: string + httpHeaders: + items: + description: HTTPHeaderApplyConfiguration represents a declarat + properties: + name: + type: string + value: + type: string + type: object + type: array + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + description: URIScheme identifies the scheme used for connectio + type: string + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + description: TCPSocketActionApplyConfiguration represents a dec + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + resizePolicy: + items: + description: ContainerResizePolicyApplyConfiguration represents + properties: + resourceName: + description: ResourceName is the name identifying various resou + type: string + restartPolicy: + description: ResourceResizeRestartPolicy specifies how to handl + type: string + type: object + type: array + resources: + description: "ResourceRequirementsApplyConfiguration represents " + properties: + claims: + items: + description: ResourceClaimApplyConfiguration represents a decla + properties: + name: + type: string + request: + type: string + type: object + type: array + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) + type: object + type: object + restartPolicy: + description: ContainerRestartPolicy is the restart policy for a + type: string + securityContext: + description: SecurityContextApplyConfiguration represents a dec + properties: + allowPrivilegeEscalation: + type: boolean + appArmorProfile: + description: AppArmorProfileApplyConfiguration represents a dec + properties: + localhostProfile: + type: string + type: + type: string + type: object + capabilities: + description: CapabilitiesApplyConfiguration represents a declar + properties: + add: + items: + description: Capability represent POSIX capabilities type + type: string + type: array + drop: + items: + description: Capability represent POSIX capabilities type + type: string + type: array + type: object + privileged: + type: boolean + procMount: + type: string + readOnlyRootFilesystem: + type: boolean + runAsGroup: + format: int64 + type: integer + runAsNonRoot: + type: boolean + runAsUser: + format: int64 + type: integer + seLinuxOptions: + description: SELinuxOptionsApplyConfiguration represents a decl + properties: + level: + type: string + role: + type: string + type: + type: string + user: + type: string + type: object + seccompProfile: + description: SeccompProfileApplyConfiguration represents a decl + properties: + localhostProfile: + type: string + type: + description: SeccompProfileType defines the supported seccomp p + type: string + type: object + windowsOptions: + description: WindowsSecurityContextOptionsApplyConfiguration re + properties: + gmsaCredentialSpec: + type: string + gmsaCredentialSpecName: + type: string + hostProcess: + type: boolean + runAsUserName: + type: string + type: object + type: object + startupProbe: + description: ProbeApplyConfiguration represents a declarative c + properties: + exec: + description: ExecActionApplyConfiguration represents a declarat + properties: + command: + items: + type: string + type: array + type: object + failureThreshold: + format: int32 + type: integer + grpc: + description: GRPCActionApplyConfiguration represents a declarat + properties: + port: + format: int32 + type: integer + service: + type: string + type: object + httpGet: + description: HTTPGetActionApplyConfiguration represents a decla + properties: + host: + type: string + httpHeaders: + items: + description: HTTPHeaderApplyConfiguration represents a declarat + properties: + name: + type: string + value: + type: string + type: object + type: array + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + description: URIScheme identifies the scheme used for connectio + type: string + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + description: TCPSocketActionApplyConfiguration represents a dec + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + stdin: + type: boolean + stdinOnce: + type: boolean + terminationMessagePath: + type: string + terminationMessagePolicy: + description: TerminationMessagePolicy describes how termination + type: string + tty: + type: boolean + volumeDevices: + items: + description: VolumeDeviceApplyConfiguration represents a declar + properties: + devicePath: + type: string + name: + type: string + type: object + type: array + volumeMounts: + items: + description: VolumeMountApplyConfiguration represents a declara + properties: + mountPath: + type: string + mountPropagation: + description: MountPropagationMode describes mount propagation. + type: string + name: + type: string + readOnly: + type: boolean + recursiveReadOnly: + description: RecursiveReadOnlyMode describes recursive-readonly + type: string + subPath: + type: string + subPathExpr: + type: string + type: object + type: array + workingDir: + type: string + type: object + type: array + dnsConfig: + description: PodDNSConfigApplyConfiguration represents a declar + properties: + nameservers: + items: + type: string + type: array + options: + items: + description: "PodDNSConfigOptionApplyConfiguration represents a " + properties: + name: + type: string + value: + type: string + type: object + type: array + searches: + items: + type: string + type: array + type: object + dnsPolicy: + description: DNSPolicy defines how a pod's DNS will be configur + type: string + enableServiceLinks: + type: boolean + ephemeralContainers: + items: + description: "EphemeralContainerApplyConfiguration represents a " + properties: + args: + items: + type: string + type: array + command: + items: + type: string + type: array + env: + items: + description: "EnvVarApplyConfiguration represents a declarative " + properties: + name: + type: string + value: + type: string + valueFrom: + description: EnvVarSourceApplyConfiguration represents a declar + properties: + configMapKeyRef: + description: "ConfigMapKeySelectorApplyConfiguration represents " + properties: + key: + type: string + name: + type: string + optional: + type: boolean + type: object + fieldRef: + description: ObjectFieldSelectorApplyConfiguration represents a + properties: + apiVersion: + type: string + fieldPath: + type: string + type: object + resourceFieldRef: + description: ResourceFieldSelectorApplyConfiguration represents + properties: + containerName: + type: string + divisor: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + resource: + type: string + type: object + secretKeyRef: + description: SecretKeySelectorApplyConfiguration represents a d + properties: + key: + type: string + name: + type: string + optional: + type: boolean + type: object + type: object + type: object + type: array + envFrom: + items: + description: EnvFromSourceApplyConfiguration represents a decla + properties: + configMapRef: + description: "ConfigMapEnvSourceApplyConfiguration represents a " + properties: + name: + type: string + optional: + type: boolean + type: object + prefix: + type: string + secretRef: + description: SecretEnvSourceApplyConfiguration represents a dec + properties: + name: + type: string + optional: + type: boolean + type: object + type: object + type: array + image: + type: string + imagePullPolicy: + description: "PullPolicy describes a policy for if/when to pull " + type: string + lifecycle: + description: LifecycleApplyConfiguration represents a declarati + properties: + postStart: + description: LifecycleHandlerApplyConfiguration represents a de + properties: + exec: + description: ExecActionApplyConfiguration represents a declarat + properties: + command: + items: + type: string + type: array + type: object + httpGet: + description: HTTPGetActionApplyConfiguration represents a decla + properties: + host: + type: string + httpHeaders: + items: + description: HTTPHeaderApplyConfiguration represents a declarat + properties: + name: + type: string + value: + type: string + type: object + type: array + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + description: URIScheme identifies the scheme used for connectio + type: string + type: object + sleep: + description: SleepActionApplyConfiguration represents a declara + properties: + seconds: + format: int64 + type: integer + type: object + tcpSocket: + description: TCPSocketActionApplyConfiguration represents a dec + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + type: object + type: object + preStop: + description: LifecycleHandlerApplyConfiguration represents a de + properties: + exec: + description: ExecActionApplyConfiguration represents a declarat + properties: + command: + items: + type: string + type: array + type: object + httpGet: + description: HTTPGetActionApplyConfiguration represents a decla + properties: + host: + type: string + httpHeaders: + items: + description: HTTPHeaderApplyConfiguration represents a declarat + properties: + name: + type: string + value: + type: string + type: object + type: array + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + description: URIScheme identifies the scheme used for connectio + type: string + type: object + sleep: + description: SleepActionApplyConfiguration represents a declara + properties: + seconds: + format: int64 + type: integer + type: object + tcpSocket: + description: TCPSocketActionApplyConfiguration represents a dec + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + type: object + type: object + type: object + livenessProbe: + description: ProbeApplyConfiguration represents a declarative c + properties: + exec: + description: ExecActionApplyConfiguration represents a declarat + properties: + command: + items: + type: string + type: array + type: object + failureThreshold: + format: int32 + type: integer + grpc: + description: GRPCActionApplyConfiguration represents a declarat + properties: + port: + format: int32 + type: integer + service: + type: string + type: object + httpGet: + description: HTTPGetActionApplyConfiguration represents a decla + properties: + host: + type: string + httpHeaders: + items: + description: HTTPHeaderApplyConfiguration represents a declarat + properties: + name: + type: string + value: + type: string + type: object + type: array + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + description: URIScheme identifies the scheme used for connectio + type: string + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + description: TCPSocketActionApplyConfiguration represents a dec + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + name: + type: string + ports: + items: + description: ContainerPortApplyConfiguration represents a decla + properties: + containerPort: + format: int32 + type: integer + hostIP: + type: string + hostPort: + format: int32 + type: integer + name: + type: string + protocol: + description: Protocol defines network protocols supported for t + type: string + type: object + type: array + readinessProbe: + description: ProbeApplyConfiguration represents a declarative c + properties: + exec: + description: ExecActionApplyConfiguration represents a declarat + properties: + command: + items: + type: string + type: array + type: object + failureThreshold: + format: int32 + type: integer + grpc: + description: GRPCActionApplyConfiguration represents a declarat + properties: + port: + format: int32 + type: integer + service: + type: string + type: object + httpGet: + description: HTTPGetActionApplyConfiguration represents a decla + properties: + host: + type: string + httpHeaders: + items: + description: HTTPHeaderApplyConfiguration represents a declarat + properties: + name: + type: string + value: + type: string + type: object + type: array + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + description: URIScheme identifies the scheme used for connectio + type: string + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + description: TCPSocketActionApplyConfiguration represents a dec + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + resizePolicy: + items: + description: ContainerResizePolicyApplyConfiguration represents + properties: + resourceName: + description: ResourceName is the name identifying various resou + type: string + restartPolicy: + description: ResourceResizeRestartPolicy specifies how to handl + type: string + type: object + type: array + resources: + description: "ResourceRequirementsApplyConfiguration represents " + properties: + claims: + items: + description: ResourceClaimApplyConfiguration represents a decla + properties: + name: + type: string + request: + type: string + type: object + type: array + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) + type: object + type: object + restartPolicy: + description: ContainerRestartPolicy is the restart policy for a + type: string + securityContext: + description: SecurityContextApplyConfiguration represents a dec + properties: + allowPrivilegeEscalation: + type: boolean + appArmorProfile: + description: AppArmorProfileApplyConfiguration represents a dec + properties: + localhostProfile: + type: string + type: + type: string + type: object + capabilities: + description: CapabilitiesApplyConfiguration represents a declar + properties: + add: + items: + description: Capability represent POSIX capabilities type + type: string + type: array + drop: + items: + description: Capability represent POSIX capabilities type + type: string + type: array + type: object + privileged: + type: boolean + procMount: + type: string + readOnlyRootFilesystem: + type: boolean + runAsGroup: + format: int64 + type: integer + runAsNonRoot: + type: boolean + runAsUser: + format: int64 + type: integer + seLinuxOptions: + description: SELinuxOptionsApplyConfiguration represents a decl + properties: + level: + type: string + role: + type: string + type: + type: string + user: + type: string + type: object + seccompProfile: + description: SeccompProfileApplyConfiguration represents a decl + properties: + localhostProfile: + type: string + type: + description: SeccompProfileType defines the supported seccomp p + type: string + type: object + windowsOptions: + description: WindowsSecurityContextOptionsApplyConfiguration re + properties: + gmsaCredentialSpec: + type: string + gmsaCredentialSpecName: + type: string + hostProcess: + type: boolean + runAsUserName: + type: string + type: object + type: object + startupProbe: + description: ProbeApplyConfiguration represents a declarative c + properties: + exec: + description: ExecActionApplyConfiguration represents a declarat + properties: + command: + items: + type: string + type: array + type: object + failureThreshold: + format: int32 + type: integer + grpc: + description: GRPCActionApplyConfiguration represents a declarat + properties: + port: + format: int32 + type: integer + service: + type: string + type: object + httpGet: + description: HTTPGetActionApplyConfiguration represents a decla + properties: + host: + type: string + httpHeaders: + items: + description: HTTPHeaderApplyConfiguration represents a declarat + properties: + name: + type: string + value: + type: string + type: object + type: array + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + description: URIScheme identifies the scheme used for connectio + type: string + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + description: TCPSocketActionApplyConfiguration represents a dec + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + stdin: + type: boolean + stdinOnce: + type: boolean + targetContainerName: + type: string + terminationMessagePath: + type: string + terminationMessagePolicy: + description: TerminationMessagePolicy describes how termination + type: string + tty: + type: boolean + volumeDevices: + items: + description: VolumeDeviceApplyConfiguration represents a declar + properties: + devicePath: + type: string + name: + type: string + type: object + type: array + volumeMounts: + items: + description: VolumeMountApplyConfiguration represents a declara + properties: + mountPath: + type: string + mountPropagation: + description: MountPropagationMode describes mount propagation. + type: string + name: + type: string + readOnly: + type: boolean + recursiveReadOnly: + description: RecursiveReadOnlyMode describes recursive-readonly + type: string + subPath: + type: string + subPathExpr: + type: string + type: object + type: array + workingDir: + type: string + type: object + type: array + hostAliases: + items: + description: HostAliasApplyConfiguration represents a declarati + properties: + hostnames: + items: + type: string + type: array + ip: + type: string + type: object + type: array + hostIPC: + type: boolean + hostNetwork: + type: boolean + hostPID: + type: boolean + hostUsers: + type: boolean + hostname: + type: string + imagePullSecrets: + items: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + type: array + initContainers: + items: + description: ContainerApplyConfiguration represents a declarati + properties: + args: + items: + type: string + type: array + command: + items: + type: string + type: array + env: + items: + description: "EnvVarApplyConfiguration represents a declarative " + properties: + name: + type: string + value: + type: string + valueFrom: + description: EnvVarSourceApplyConfiguration represents a declar + properties: + configMapKeyRef: + description: "ConfigMapKeySelectorApplyConfiguration represents " + properties: + key: + type: string + name: + type: string + optional: + type: boolean + type: object + fieldRef: + description: ObjectFieldSelectorApplyConfiguration represents a + properties: + apiVersion: + type: string + fieldPath: + type: string + type: object + resourceFieldRef: + description: ResourceFieldSelectorApplyConfiguration represents + properties: + containerName: + type: string + divisor: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + resource: + type: string + type: object + secretKeyRef: + description: SecretKeySelectorApplyConfiguration represents a d + properties: + key: + type: string + name: + type: string + optional: + type: boolean + type: object + type: object + type: object + type: array + envFrom: + items: + description: EnvFromSourceApplyConfiguration represents a decla + properties: + configMapRef: + description: "ConfigMapEnvSourceApplyConfiguration represents a " + properties: + name: + type: string + optional: + type: boolean + type: object + prefix: + type: string + secretRef: + description: SecretEnvSourceApplyConfiguration represents a dec + properties: + name: + type: string + optional: + type: boolean + type: object + type: object + type: array + image: + type: string + imagePullPolicy: + description: "PullPolicy describes a policy for if/when to pull " + type: string + lifecycle: + description: LifecycleApplyConfiguration represents a declarati + properties: + postStart: + description: LifecycleHandlerApplyConfiguration represents a de + properties: + exec: + description: ExecActionApplyConfiguration represents a declarat + properties: + command: + items: + type: string + type: array + type: object + httpGet: + description: HTTPGetActionApplyConfiguration represents a decla + properties: + host: + type: string + httpHeaders: + items: + description: HTTPHeaderApplyConfiguration represents a declarat + properties: + name: + type: string + value: + type: string + type: object + type: array + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + description: URIScheme identifies the scheme used for connectio + type: string + type: object + sleep: + description: SleepActionApplyConfiguration represents a declara + properties: + seconds: + format: int64 + type: integer + type: object + tcpSocket: + description: TCPSocketActionApplyConfiguration represents a dec + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + type: object + type: object + preStop: + description: LifecycleHandlerApplyConfiguration represents a de + properties: + exec: + description: ExecActionApplyConfiguration represents a declarat + properties: + command: + items: + type: string + type: array + type: object + httpGet: + description: HTTPGetActionApplyConfiguration represents a decla + properties: + host: + type: string + httpHeaders: + items: + description: HTTPHeaderApplyConfiguration represents a declarat + properties: + name: + type: string + value: + type: string + type: object + type: array + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + description: URIScheme identifies the scheme used for connectio + type: string + type: object + sleep: + description: SleepActionApplyConfiguration represents a declara + properties: + seconds: + format: int64 + type: integer + type: object + tcpSocket: + description: TCPSocketActionApplyConfiguration represents a dec + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + type: object + type: object + type: object + livenessProbe: + description: ProbeApplyConfiguration represents a declarative c + properties: + exec: + description: ExecActionApplyConfiguration represents a declarat + properties: + command: + items: + type: string + type: array + type: object + failureThreshold: + format: int32 + type: integer + grpc: + description: GRPCActionApplyConfiguration represents a declarat + properties: + port: + format: int32 + type: integer + service: + type: string + type: object + httpGet: + description: HTTPGetActionApplyConfiguration represents a decla + properties: + host: + type: string + httpHeaders: + items: + description: HTTPHeaderApplyConfiguration represents a declarat + properties: + name: + type: string + value: + type: string + type: object + type: array + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + description: URIScheme identifies the scheme used for connectio + type: string + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + description: TCPSocketActionApplyConfiguration represents a dec + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + name: + type: string + ports: + items: + description: ContainerPortApplyConfiguration represents a decla + properties: + containerPort: + format: int32 + type: integer + hostIP: + type: string + hostPort: + format: int32 + type: integer + name: + type: string + protocol: + description: Protocol defines network protocols supported for t + type: string + type: object + type: array + readinessProbe: + description: ProbeApplyConfiguration represents a declarative c + properties: + exec: + description: ExecActionApplyConfiguration represents a declarat + properties: + command: + items: + type: string + type: array + type: object + failureThreshold: + format: int32 + type: integer + grpc: + description: GRPCActionApplyConfiguration represents a declarat + properties: + port: + format: int32 + type: integer + service: + type: string + type: object + httpGet: + description: HTTPGetActionApplyConfiguration represents a decla + properties: + host: + type: string + httpHeaders: + items: + description: HTTPHeaderApplyConfiguration represents a declarat + properties: + name: + type: string + value: + type: string + type: object + type: array + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + description: URIScheme identifies the scheme used for connectio + type: string + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + description: TCPSocketActionApplyConfiguration represents a dec + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + resizePolicy: + items: + description: ContainerResizePolicyApplyConfiguration represents + properties: + resourceName: + description: ResourceName is the name identifying various resou + type: string + restartPolicy: + description: ResourceResizeRestartPolicy specifies how to handl + type: string + type: object + type: array + resources: + description: "ResourceRequirementsApplyConfiguration represents " + properties: + claims: + items: + description: ResourceClaimApplyConfiguration represents a decla + properties: + name: + type: string + request: + type: string + type: object + type: array + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) + type: object + type: object + restartPolicy: + description: ContainerRestartPolicy is the restart policy for a + type: string + securityContext: + description: SecurityContextApplyConfiguration represents a dec + properties: + allowPrivilegeEscalation: + type: boolean + appArmorProfile: + description: AppArmorProfileApplyConfiguration represents a dec + properties: + localhostProfile: + type: string + type: + type: string + type: object + capabilities: + description: CapabilitiesApplyConfiguration represents a declar + properties: + add: + items: + description: Capability represent POSIX capabilities type + type: string + type: array + drop: + items: + description: Capability represent POSIX capabilities type + type: string + type: array + type: object + privileged: + type: boolean + procMount: + type: string + readOnlyRootFilesystem: + type: boolean + runAsGroup: + format: int64 + type: integer + runAsNonRoot: + type: boolean + runAsUser: + format: int64 + type: integer + seLinuxOptions: + description: SELinuxOptionsApplyConfiguration represents a decl + properties: + level: + type: string + role: + type: string + type: + type: string + user: + type: string + type: object + seccompProfile: + description: SeccompProfileApplyConfiguration represents a decl + properties: + localhostProfile: + type: string + type: + description: SeccompProfileType defines the supported seccomp p + type: string + type: object + windowsOptions: + description: WindowsSecurityContextOptionsApplyConfiguration re + properties: + gmsaCredentialSpec: + type: string + gmsaCredentialSpecName: + type: string + hostProcess: + type: boolean + runAsUserName: + type: string + type: object + type: object + startupProbe: + description: ProbeApplyConfiguration represents a declarative c + properties: + exec: + description: ExecActionApplyConfiguration represents a declarat + properties: + command: + items: + type: string + type: array + type: object + failureThreshold: + format: int32 + type: integer + grpc: + description: GRPCActionApplyConfiguration represents a declarat + properties: + port: + format: int32 + type: integer + service: + type: string + type: object + httpGet: + description: HTTPGetActionApplyConfiguration represents a decla + properties: + host: + type: string + httpHeaders: + items: + description: HTTPHeaderApplyConfiguration represents a declarat + properties: + name: + type: string + value: + type: string + type: object + type: array + path: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + scheme: + description: URIScheme identifies the scheme used for connectio + type: string + type: object + initialDelaySeconds: + format: int32 + type: integer + periodSeconds: + format: int32 + type: integer + successThreshold: + format: int32 + type: integer + tcpSocket: + description: TCPSocketActionApplyConfiguration represents a dec + properties: + host: + type: string + port: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + type: object + terminationGracePeriodSeconds: + format: int64 + type: integer + timeoutSeconds: + format: int32 + type: integer + type: object + stdin: + type: boolean + stdinOnce: + type: boolean + terminationMessagePath: + type: string + terminationMessagePolicy: + description: TerminationMessagePolicy describes how termination + type: string + tty: + type: boolean + volumeDevices: + items: + description: VolumeDeviceApplyConfiguration represents a declar + properties: + devicePath: + type: string + name: + type: string + type: object + type: array + volumeMounts: + items: + description: VolumeMountApplyConfiguration represents a declara + properties: + mountPath: + type: string + mountPropagation: + description: MountPropagationMode describes mount propagation. + type: string + name: + type: string + readOnly: + type: boolean + recursiveReadOnly: + description: RecursiveReadOnlyMode describes recursive-readonly + type: string + subPath: + type: string + subPathExpr: + type: string + type: object + type: array + workingDir: + type: string + type: object + type: array + nodeName: + type: string + nodeSelector: + additionalProperties: + type: string + type: object + os: + description: PodOSApplyConfiguration represents a declarative c + properties: + name: + description: OSName is the set of OS'es that can be used in OS. + type: string + type: object + overhead: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) + type: object + preemptionPolicy: + description: PreemptionPolicy describes a policy for if/when to + type: string + priority: + format: int32 + type: integer + priorityClassName: + type: string + readinessGates: + items: + description: PodReadinessGateApplyConfiguration represents a de + properties: + conditionType: + description: PodConditionType is a valid value for PodCondition + type: string + type: object + type: array + resourceClaims: + items: + description: PodResourceClaimApplyConfiguration represents a de + properties: + name: + type: string + resourceClaimName: + type: string + resourceClaimTemplateName: + type: string + type: object + type: array + restartPolicy: + description: RestartPolicy describes how the container should b + type: string + runtimeClassName: + type: string + schedulerName: + type: string + schedulingGates: + items: + description: PodSchedulingGateApplyConfiguration represents a d + properties: + name: + type: string + type: object + type: array + securityContext: + description: "PodSecurityContextApplyConfiguration represents a " + properties: + appArmorProfile: + description: AppArmorProfileApplyConfiguration represents a dec + properties: + localhostProfile: + type: string + type: + type: string + type: object + fsGroup: + format: int64 + type: integer + fsGroupChangePolicy: + description: PodFSGroupChangePolicy holds policies that will be + type: string + runAsGroup: + format: int64 + type: integer + runAsNonRoot: + type: boolean + runAsUser: + format: int64 + type: integer + seLinuxOptions: + description: SELinuxOptionsApplyConfiguration represents a decl + properties: + level: + type: string + role: + type: string + type: + type: string + user: + type: string + type: object + seccompProfile: + description: SeccompProfileApplyConfiguration represents a decl + properties: + localhostProfile: + type: string + type: + description: SeccompProfileType defines the supported seccomp p + type: string + type: object + supplementalGroups: + items: + format: int64 + type: integer + type: array + supplementalGroupsPolicy: + description: "SupplementalGroupsPolicy defines how supplemental " + type: string + sysctls: + items: + description: "SysctlApplyConfiguration represents a declarative " + properties: + name: + type: string + value: + type: string + type: object + type: array + windowsOptions: + description: WindowsSecurityContextOptionsApplyConfiguration re + properties: + gmsaCredentialSpec: + type: string + gmsaCredentialSpecName: + type: string + hostProcess: + type: boolean + runAsUserName: + type: string + type: object + type: object + serviceAccount: + type: string + serviceAccountName: + type: string + setHostnameAsFQDN: + type: boolean + shareProcessNamespace: + type: boolean + subdomain: + type: string + terminationGracePeriodSeconds: + format: int64 + type: integer + tolerations: + items: + description: TolerationApplyConfiguration represents a declarat + properties: + effect: + type: string + key: + type: string + operator: + description: A toleration operator is the set of operators that + type: string + tolerationSeconds: + format: int64 + type: integer + value: + type: string + type: object + type: array + topologySpreadConstraints: + items: + description: TopologySpreadConstraintApplyConfiguration represe + properties: + labelSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + matchLabelKeys: + items: + type: string + type: array + maxSkew: + format: int32 + type: integer + minDomains: + format: int32 + type: integer + nodeAffinityPolicy: + description: NodeInclusionPolicy defines the type of node inclu + type: string + nodeTaintsPolicy: + description: NodeInclusionPolicy defines the type of node inclu + type: string + topologyKey: + type: string + whenUnsatisfiable: + type: string + type: object + type: array + volumes: + items: + description: "VolumeApplyConfiguration represents a declarative " + properties: + awsElasticBlockStore: + description: AWSElasticBlockStoreVolumeSourceApplyConfiguration + properties: + fsType: + type: string + partition: + format: int32 + type: integer + readOnly: + type: boolean + volumeID: + type: string + type: object + azureDisk: + description: AzureDiskVolumeSourceApplyConfiguration represents + properties: + cachingMode: + type: string + diskName: + type: string + diskURI: + type: string + fsType: + type: string + kind: + type: string + readOnly: + type: boolean + type: object + azureFile: + description: AzureFileVolumeSourceApplyConfiguration represents + properties: + readOnly: + type: boolean + secretName: + type: string + shareName: + type: string + type: object + cephfs: + description: "CephFSVolumeSourceApplyConfiguration represents a " + properties: + monitors: + items: + type: string + type: array + path: + type: string + readOnly: + type: boolean + secretFile: + type: string + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + user: + type: string + type: object + cinder: + description: "CinderVolumeSourceApplyConfiguration represents a " + properties: + fsType: + type: string + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + volumeID: + type: string + type: object + configMap: + description: ConfigMapVolumeSourceApplyConfiguration represents + properties: + defaultMode: + format: int32 + type: integer + items: + items: + description: KeyToPathApplyConfiguration represents a declarati + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + type: object + type: array + name: + type: string + optional: + type: boolean + type: object + csi: + description: CSIVolumeSourceApplyConfiguration represents a dec + properties: + driver: + type: string + fsType: + type: string + nodePublishSecretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + readOnly: + type: boolean + volumeAttributes: + additionalProperties: + type: string + type: object + type: object + downwardAPI: + description: DownwardAPIVolumeSourceApplyConfiguration represen + properties: + defaultMode: + format: int32 + type: integer + items: + items: + description: DownwardAPIVolumeFileApplyConfiguration represents + properties: + fieldRef: + description: ObjectFieldSelectorApplyConfiguration represents a + properties: + apiVersion: + type: string + fieldPath: + type: string + type: object + mode: + format: int32 + type: integer + path: + type: string + resourceFieldRef: + description: ResourceFieldSelectorApplyConfiguration represents + properties: + containerName: + type: string + divisor: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + resource: + type: string + type: object + type: object + type: array + type: object + emptyDir: + description: "EmptyDirVolumeSourceApplyConfiguration represents " + properties: + medium: + description: StorageMedium defines ways that storage can be all + type: string + sizeLimit: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + ephemeral: + description: EphemeralVolumeSourceApplyConfiguration represents + properties: + volumeClaimTemplate: + description: PersistentVolumeClaimTemplateApplyConfiguration re + properties: + metadata: + description: ObjectMetaApplyConfiguration represents a declarat + properties: + annotations: + additionalProperties: + type: string + type: object + creationTimestamp: + format: date-time + type: string + deletionGracePeriodSeconds: + format: int64 + type: integer + deletionTimestamp: + format: date-time + type: string + finalizers: + items: + type: string + type: array + generateName: + type: string + generation: + format: int64 + type: integer + labels: + additionalProperties: + type: string + type: object + name: + type: string + namespace: + type: string + ownerReferences: + items: + description: OwnerReferenceApplyConfiguration represents a decl + properties: + apiVersion: + type: string + blockOwnerDeletion: + type: boolean + controller: + type: boolean + kind: + type: string + name: + type: string + uid: + description: UID is a type that holds unique ID values, includi + type: string + type: object + type: array + resourceVersion: + type: string + uid: + description: UID is a type that holds unique ID values, includi + type: string + type: object + spec: + description: PersistentVolumeClaimSpecApplyConfiguration repres + properties: + accessModes: + items: + type: string + type: array + dataSource: + description: TypedLocalObjectReferenceApplyConfiguration repres + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + type: object + dataSourceRef: + description: "TypedObjectReferenceApplyConfiguration represents " + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + namespace: + type: string + type: object + resources: + description: VolumeResourceRequirementsApplyConfiguration repre + properties: + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) + type: object + type: object + selector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + storageClassName: + type: string + volumeAttributesClassName: + type: string + volumeMode: + description: PersistentVolumeMode describes how a volume is int + type: string + volumeName: + type: string + type: object + type: object + type: object + fc: + description: FCVolumeSourceApplyConfiguration represents a decl + properties: + fsType: + type: string + lun: + format: int32 + type: integer + readOnly: + type: boolean + targetWWNs: + items: + type: string + type: array + wwids: + items: + type: string + type: array + type: object + flexVolume: + description: FlexVolumeSourceApplyConfiguration represents a de + properties: + driver: + type: string + fsType: + type: string + options: + additionalProperties: + type: string + type: object + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + type: object + flocker: + description: FlockerVolumeSourceApplyConfiguration represents a + properties: + datasetName: + type: string + datasetUUID: + type: string + type: object + gcePersistentDisk: + description: GCEPersistentDiskVolumeSourceApplyConfiguration re + properties: + fsType: + type: string + partition: + format: int32 + type: integer + pdName: + type: string + readOnly: + type: boolean + type: object + gitRepo: + description: GitRepoVolumeSourceApplyConfiguration represents a + properties: + directory: + type: string + repository: + type: string + revision: + type: string + type: object + glusterfs: + description: GlusterfsVolumeSourceApplyConfiguration represents + properties: + endpoints: + type: string + path: + type: string + readOnly: + type: boolean + type: object + hostPath: + description: "HostPathVolumeSourceApplyConfiguration represents " + properties: + path: + type: string + type: + type: string + type: object + image: + description: ImageVolumeSourceApplyConfiguration represents a d + properties: + pullPolicy: + description: "PullPolicy describes a policy for if/when to pull " + type: string + reference: + type: string + type: object + iscsi: + description: ISCSIVolumeSourceApplyConfiguration represents a d + properties: + chapAuthDiscovery: + type: boolean + chapAuthSession: + type: boolean + fsType: + type: string + initiatorName: + type: string + iqn: + type: string + iscsiInterface: + type: string + lun: + format: int32 + type: integer + portals: + items: + type: string + type: array + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + targetPortal: + type: string + type: object + name: + type: string + nfs: + description: NFSVolumeSourceApplyConfiguration represents a dec + properties: + path: + type: string + readOnly: + type: boolean + server: + type: string + type: object + persistentVolumeClaim: + description: PersistentVolumeClaimVolumeSourceApplyConfiguratio + properties: + claimName: + type: string + readOnly: + type: boolean + type: object + photonPersistentDisk: + description: PhotonPersistentDiskVolumeSourceApplyConfiguration + properties: + fsType: + type: string + pdID: + type: string + type: object + portworxVolume: + description: "PortworxVolumeSourceApplyConfiguration represents " + properties: + fsType: + type: string + readOnly: + type: boolean + volumeID: + type: string + type: object + projected: + description: ProjectedVolumeSourceApplyConfiguration represents + properties: + defaultMode: + format: int32 + type: integer + sources: + items: + description: VolumeProjectionApplyConfiguration represents a de + properties: + clusterTrustBundle: + description: ClusterTrustBundleProjectionApplyConfiguration rep + properties: + labelSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + name: + type: string + optional: + type: boolean + path: + type: string + signerName: + type: string + type: object + configMap: + description: ConfigMapProjectionApplyConfiguration represents a + properties: + items: + items: + description: KeyToPathApplyConfiguration represents a declarati + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + type: object + type: array + name: + type: string + optional: + type: boolean + type: object + downwardAPI: + description: DownwardAPIProjectionApplyConfiguration represents + properties: + items: + items: + description: DownwardAPIVolumeFileApplyConfiguration represents + properties: + fieldRef: + description: ObjectFieldSelectorApplyConfiguration represents a + properties: + apiVersion: + type: string + fieldPath: + type: string + type: object + mode: + format: int32 + type: integer + path: + type: string + resourceFieldRef: + description: ResourceFieldSelectorApplyConfiguration represents + properties: + containerName: + type: string + divisor: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + resource: + type: string + type: object + type: object + type: array + type: object + secret: + description: SecretProjectionApplyConfiguration represents a de + properties: + items: + items: + description: KeyToPathApplyConfiguration represents a declarati + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + type: object + type: array + name: + type: string + optional: + type: boolean + type: object + serviceAccountToken: + description: ServiceAccountTokenProjectionApplyConfiguration re + properties: + audience: + type: string + expirationSeconds: + format: int64 + type: integer + path: + type: string + type: object + type: object + type: array + type: object + quobyte: + description: QuobyteVolumeSourceApplyConfiguration represents a + properties: + group: + type: string + readOnly: + type: boolean + registry: + type: string + tenant: + type: string + user: + type: string + volume: + type: string + type: object + rbd: + description: RBDVolumeSourceApplyConfiguration represents a dec + properties: + fsType: + type: string + image: + type: string + keyring: + type: string + monitors: + items: + type: string + type: array + pool: + type: string + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + user: + type: string + type: object + scaleIO: + description: ScaleIOVolumeSourceApplyConfiguration represents a + properties: + fsType: + type: string + gateway: + type: string + protectionDomain: + type: string + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + sslEnabled: + type: boolean + storageMode: + type: string + storagePool: + type: string + system: + type: string + volumeName: + type: string + type: object + secret: + description: "SecretVolumeSourceApplyConfiguration represents a " + properties: + defaultMode: + format: int32 + type: integer + items: + items: + description: KeyToPathApplyConfiguration represents a declarati + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + type: object + type: array + optional: + type: boolean + secretName: + type: string + type: object + storageos: + description: StorageOSVolumeSourceApplyConfiguration represents + properties: + fsType: + type: string + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + volumeName: + type: string + volumeNamespace: + type: string + type: object + vsphereVolume: + description: VsphereVirtualDiskVolumeSourceApplyConfiguration r + properties: + fsType: + type: string + storagePolicyID: + type: string + storagePolicyName: + type: string + volumePath: + type: string + type: object + type: object + type: array + type: object + required: + - spec + type: object + primaryServiceTemplate: + description: PrimaryServiceTemplate is a `Service` template for + properties: + metadata: + description: Standard object's metadata. + properties: + annotations: + additionalProperties: + type: string + description: Annotations is a map of string keys and values. + type: object + labels: + additionalProperties: + type: string + description: Labels is a map of string keys and values. + type: object + name: + description: Name is the name of the object. + type: string + type: object + spec: + description: Spec is the ServiceSpec + properties: + allocateLoadBalancerNodePorts: + type: boolean + clusterIP: + type: string + clusterIPs: + items: + type: string + type: array + externalIPs: + items: + type: string + type: array + externalName: + type: string + externalTrafficPolicy: + description: ServiceExternalTrafficPolicy describes how nodes d + type: string + healthCheckNodePort: + format: int32 + type: integer + internalTrafficPolicy: + description: ServiceInternalTrafficPolicy describes how nodes d + type: string + ipFamilies: + items: + description: IPFamily represents the IP Family (IPv4 or IPv6). + type: string + type: array + ipFamilyPolicy: + description: IPFamilyPolicy represents the dual-stack-ness requ + type: string + loadBalancerClass: + type: string + loadBalancerIP: + type: string + loadBalancerSourceRanges: + items: + type: string + type: array + ports: + items: + description: ServicePortApplyConfiguration represents a declara + properties: + appProtocol: + type: string + name: + type: string + nodePort: + format: int32 + type: integer + port: + format: int32 + type: integer + protocol: + description: Protocol defines network protocols supported for t + type: string + targetPort: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + type: object + type: array + publishNotReadyAddresses: + type: boolean + selector: + additionalProperties: + type: string + type: object + sessionAffinity: + description: Session Affinity Type string + type: string + sessionAffinityConfig: + description: SessionAffinityConfigApplyConfiguration represents + properties: + clientIP: + description: ClientIPConfigApplyConfiguration represents a decl + properties: + timeoutSeconds: + format: int32 + type: integer + type: object + type: object + trafficDistribution: + type: string + type: + description: "Service Type string describes ingress methods for " + type: string + type: object + type: object + replicaServiceTemplate: + description: ReplicaServiceTemplate is a `Service` template for + properties: + metadata: + description: Standard object's metadata. + properties: + annotations: + additionalProperties: + type: string + description: Annotations is a map of string keys and values. + type: object + labels: + additionalProperties: + type: string + description: Labels is a map of string keys and values. + type: object + name: + description: Name is the name of the object. + type: string + type: object + spec: + description: Spec is the ServiceSpec + properties: + allocateLoadBalancerNodePorts: + type: boolean + clusterIP: + type: string + clusterIPs: + items: + type: string + type: array + externalIPs: + items: + type: string + type: array + externalName: + type: string + externalTrafficPolicy: + description: ServiceExternalTrafficPolicy describes how nodes d + type: string + healthCheckNodePort: + format: int32 + type: integer + internalTrafficPolicy: + description: ServiceInternalTrafficPolicy describes how nodes d + type: string + ipFamilies: + items: + description: IPFamily represents the IP Family (IPv4 or IPv6). + type: string + type: array + ipFamilyPolicy: + description: IPFamilyPolicy represents the dual-stack-ness requ + type: string + loadBalancerClass: + type: string + loadBalancerIP: + type: string + loadBalancerSourceRanges: + items: + type: string + type: array + ports: + items: + description: ServicePortApplyConfiguration represents a declara + properties: + appProtocol: + type: string + name: + type: string + nodePort: + format: int32 + type: integer + port: + format: int32 + type: integer + protocol: + description: Protocol defines network protocols supported for t + type: string + targetPort: + anyOf: + - type: integer + - type: string + x-kubernetes-int-or-string: true + type: object + type: array + publishNotReadyAddresses: + type: boolean + selector: + additionalProperties: + type: string + type: object + sessionAffinity: + description: Session Affinity Type string + type: string + sessionAffinityConfig: + description: SessionAffinityConfigApplyConfiguration represents + properties: + clientIP: + description: ClientIPConfigApplyConfiguration represents a decl + properties: + timeoutSeconds: + format: int32 + type: integer + type: object + type: object + trafficDistribution: + type: string + type: + description: "Service Type string describes ingress methods for " + type: string + type: object + type: object + replicas: + default: 1 + description: Replicas is the number of instances. + format: int32 + type: integer + replicationSourceSecretName: + description: ReplicationSourceSecretName is a `Secret` name whi + nullable: true + type: string + restore: + description: Restore is the specification to perform Point-in-T + properties: + jobConfig: + description: Specifies parameters for restore Pod. + properties: + affinity: + description: If specified, the pod's scheduling constraints. + properties: + nodeAffinity: + description: NodeAffinityApplyConfiguration represents a declar + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + description: PreferredSchedulingTermApplyConfiguration represen + properties: + preference: + description: NodeSelectorTermApplyConfiguration represents a de + properties: + matchExpressions: + items: + description: NodeSelectorRequirementApplyConfiguration represen + properties: + key: + type: string + operator: + description: A node selector operator is the set of operators t + type: string + values: + items: + type: string + type: array + type: object + type: array + matchFields: + items: + description: NodeSelectorRequirementApplyConfiguration represen + properties: + key: + type: string + operator: + description: A node selector operator is the set of operators t + type: string + values: + items: + type: string + type: array + type: object + type: array + type: object + weight: + format: int32 + type: integer + type: object + type: array + requiredDuringSchedulingIgnoredDuringExecution: + description: NodeSelectorApplyConfiguration represents a declar + properties: + nodeSelectorTerms: + items: + description: NodeSelectorTermApplyConfiguration represents a de + properties: + matchExpressions: + items: + description: NodeSelectorRequirementApplyConfiguration represen + properties: + key: + type: string + operator: + description: A node selector operator is the set of operators t + type: string + values: + items: + type: string + type: array + type: object + type: array + matchFields: + items: + description: NodeSelectorRequirementApplyConfiguration represen + properties: + key: + type: string + operator: + description: A node selector operator is the set of operators t + type: string + values: + items: + type: string + type: array + type: object + type: array + type: object + type: array + type: object + type: object + podAffinity: + description: PodAffinityApplyConfiguration represents a declara + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + description: WeightedPodAffinityTermApplyConfiguration represen + properties: + podAffinityTerm: + description: PodAffinityTermApplyConfiguration represents a dec + properties: + labelSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + matchLabelKeys: + items: + type: string + type: array + mismatchLabelKeys: + items: + type: string + type: array + namespaceSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + namespaces: + items: + type: string + type: array + topologyKey: + type: string + type: object + weight: + format: int32 + type: integer + type: object + type: array + requiredDuringSchedulingIgnoredDuringExecution: + items: + description: PodAffinityTermApplyConfiguration represents a dec + properties: + labelSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + matchLabelKeys: + items: + type: string + type: array + mismatchLabelKeys: + items: + type: string + type: array + namespaceSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + namespaces: + items: + type: string + type: array + topologyKey: + type: string + type: object + type: array + type: object + podAntiAffinity: + description: PodAntiAffinityApplyConfiguration represents a dec + properties: + preferredDuringSchedulingIgnoredDuringExecution: + items: + description: WeightedPodAffinityTermApplyConfiguration represen + properties: + podAffinityTerm: + description: PodAffinityTermApplyConfiguration represents a dec + properties: + labelSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + matchLabelKeys: + items: + type: string + type: array + mismatchLabelKeys: + items: + type: string + type: array + namespaceSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + namespaces: + items: + type: string + type: array + topologyKey: + type: string + type: object + weight: + format: int32 + type: integer + type: object + type: array + requiredDuringSchedulingIgnoredDuringExecution: + items: + description: PodAffinityTermApplyConfiguration represents a dec + properties: + labelSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + matchLabelKeys: + items: + type: string + type: array + mismatchLabelKeys: + items: + type: string + type: array + namespaceSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + namespaces: + items: + type: string + type: array + topologyKey: + type: string + type: object + type: array + type: object + type: object + bucketConfig: + description: Specifies how to access an object storage bucket. + properties: + backendType: + default: s3 + description: BackendType is an identifier for the object storag + enum: + - s3 + - gcs + type: string + bucketName: + description: The name of the bucket + minLength: 1 + type: string + caCert: + description: Path to SSL CA certificate file used in addition t + type: string + endpointURL: + description: The API endpoint URL. + pattern: ^https?://.* + type: string + region: + description: The region of the bucket. + type: string + usePathStyle: + description: "Allows you to enable the client to use path-style " + type: boolean + required: + - bucketName + type: object + cpu: + anyOf: + - type: integer + - type: string + default: 4 + description: CPU is the amount of CPU requested for the Pod. + nullable: true + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + env: + description: List of environment variables to set in the contai + items: + description: EnvVarApplyConfiguration is the type defined to im + properties: + name: + type: string + value: + type: string + valueFrom: + description: EnvVarSourceApplyConfiguration represents a declar + properties: + configMapKeyRef: + description: "ConfigMapKeySelectorApplyConfiguration represents " + properties: + key: + type: string + name: + type: string + optional: + type: boolean + type: object + fieldRef: + description: ObjectFieldSelectorApplyConfiguration represents a + properties: + apiVersion: + type: string + fieldPath: + type: string + type: object + resourceFieldRef: + description: ResourceFieldSelectorApplyConfiguration represents + properties: + containerName: + type: string + divisor: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + resource: + type: string + type: object + secretKeyRef: + description: SecretKeySelectorApplyConfiguration represents a d + properties: + key: + type: string + name: + type: string + optional: + type: boolean + type: object + type: object + type: object + type: array + envFrom: + description: "List of sources to populate environment variables " + items: + description: EnvFromSourceApplyConfiguration is the type define + properties: + configMapRef: + description: "ConfigMapEnvSourceApplyConfiguration represents a " + properties: + name: + type: string + optional: + type: boolean + type: object + prefix: + type: string + secretRef: + description: SecretEnvSourceApplyConfiguration represents a dec + properties: + name: + type: string + optional: + type: boolean + type: object + type: object + type: array + maxCpu: + anyOf: + - type: integer + - type: string + description: MaxCPU is the amount of maximum CPU for the Pod. + nullable: true + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + maxMemory: + anyOf: + - type: integer + - type: string + description: "MaxMemory is the amount of maximum memory for the " + nullable: true + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + memory: + anyOf: + - type: integer + - type: string + default: 4Gi + description: Memory is the amount of memory requested for the P + nullable: true + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + serviceAccountName: + description: ServiceAccountName specifies the ServiceAccount to + minLength: 1 + type: string + threads: + default: 4 + description: Threads is the number of threads used for backup o + minimum: 1 + type: integer + volumeMounts: + description: VolumeMounts describes a list of volume mounts tha + items: + description: "VolumeMountApplyConfiguration is the type defined " + properties: + mountPath: + type: string + mountPropagation: + description: MountPropagationMode describes mount propagation. + type: string + name: + type: string + readOnly: + type: boolean + recursiveReadOnly: + description: RecursiveReadOnlyMode describes recursive-readonly + type: string + subPath: + type: string + subPathExpr: + type: string + type: object + type: array + volumes: + description: Volumes defines the list of volumes that can be mo + items: + description: VolumeApplyConfiguration is the type defined to im + properties: + awsElasticBlockStore: + description: AWSElasticBlockStoreVolumeSourceApplyConfiguration + properties: + fsType: + type: string + partition: + format: int32 + type: integer + readOnly: + type: boolean + volumeID: + type: string + type: object + azureDisk: + description: AzureDiskVolumeSourceApplyConfiguration represents + properties: + cachingMode: + type: string + diskName: + type: string + diskURI: + type: string + fsType: + type: string + kind: + type: string + readOnly: + type: boolean + type: object + azureFile: + description: AzureFileVolumeSourceApplyConfiguration represents + properties: + readOnly: + type: boolean + secretName: + type: string + shareName: + type: string + type: object + cephfs: + description: "CephFSVolumeSourceApplyConfiguration represents a " + properties: + monitors: + items: + type: string + type: array + path: + type: string + readOnly: + type: boolean + secretFile: + type: string + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + user: + type: string + type: object + cinder: + description: "CinderVolumeSourceApplyConfiguration represents a " + properties: + fsType: + type: string + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + volumeID: + type: string + type: object + configMap: + description: ConfigMapVolumeSourceApplyConfiguration represents + properties: + defaultMode: + format: int32 + type: integer + items: + items: + description: KeyToPathApplyConfiguration represents a declarati + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + type: object + type: array + name: + type: string + optional: + type: boolean + type: object + csi: + description: CSIVolumeSourceApplyConfiguration represents a dec + properties: + driver: + type: string + fsType: + type: string + nodePublishSecretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + readOnly: + type: boolean + volumeAttributes: + additionalProperties: + type: string + type: object + type: object + downwardAPI: + description: DownwardAPIVolumeSourceApplyConfiguration represen + properties: + defaultMode: + format: int32 + type: integer + items: + items: + description: DownwardAPIVolumeFileApplyConfiguration represents + properties: + fieldRef: + description: ObjectFieldSelectorApplyConfiguration represents a + properties: + apiVersion: + type: string + fieldPath: + type: string + type: object + mode: + format: int32 + type: integer + path: + type: string + resourceFieldRef: + description: ResourceFieldSelectorApplyConfiguration represents + properties: + containerName: + type: string + divisor: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + resource: + type: string + type: object + type: object + type: array + type: object + emptyDir: + description: "EmptyDirVolumeSourceApplyConfiguration represents " + properties: + medium: + description: StorageMedium defines ways that storage can be all + type: string + sizeLimit: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + ephemeral: + description: EphemeralVolumeSourceApplyConfiguration represents + properties: + volumeClaimTemplate: + description: PersistentVolumeClaimTemplateApplyConfiguration re + properties: + metadata: + description: ObjectMetaApplyConfiguration represents a declarat + properties: + annotations: + additionalProperties: + type: string + type: object + creationTimestamp: + format: date-time + type: string + deletionGracePeriodSeconds: + format: int64 + type: integer + deletionTimestamp: + format: date-time + type: string + finalizers: + items: + type: string + type: array + generateName: + type: string + generation: + format: int64 + type: integer + labels: + additionalProperties: + type: string + type: object + name: + type: string + namespace: + type: string + ownerReferences: + items: + description: OwnerReferenceApplyConfiguration represents a decl + properties: + apiVersion: + type: string + blockOwnerDeletion: + type: boolean + controller: + type: boolean + kind: + type: string + name: + type: string + uid: + description: UID is a type that holds unique ID values, includi + type: string + type: object + type: array + resourceVersion: + type: string + uid: + description: UID is a type that holds unique ID values, includi + type: string + type: object + spec: + description: PersistentVolumeClaimSpecApplyConfiguration repres + properties: + accessModes: + items: + type: string + type: array + dataSource: + description: TypedLocalObjectReferenceApplyConfiguration repres + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + type: object + dataSourceRef: + description: "TypedObjectReferenceApplyConfiguration represents " + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + namespace: + type: string + type: object + resources: + description: VolumeResourceRequirementsApplyConfiguration repre + properties: + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) + type: object + type: object + selector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + storageClassName: + type: string + volumeAttributesClassName: + type: string + volumeMode: + description: PersistentVolumeMode describes how a volume is int + type: string + volumeName: + type: string + type: object + type: object + type: object + fc: + description: FCVolumeSourceApplyConfiguration represents a decl + properties: + fsType: + type: string + lun: + format: int32 + type: integer + readOnly: + type: boolean + targetWWNs: + items: + type: string + type: array + wwids: + items: + type: string + type: array + type: object + flexVolume: + description: FlexVolumeSourceApplyConfiguration represents a de + properties: + driver: + type: string + fsType: + type: string + options: + additionalProperties: + type: string + type: object + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + type: object + flocker: + description: FlockerVolumeSourceApplyConfiguration represents a + properties: + datasetName: + type: string + datasetUUID: + type: string + type: object + gcePersistentDisk: + description: GCEPersistentDiskVolumeSourceApplyConfiguration re + properties: + fsType: + type: string + partition: + format: int32 + type: integer + pdName: + type: string + readOnly: + type: boolean + type: object + gitRepo: + description: GitRepoVolumeSourceApplyConfiguration represents a + properties: + directory: + type: string + repository: + type: string + revision: + type: string + type: object + glusterfs: + description: GlusterfsVolumeSourceApplyConfiguration represents + properties: + endpoints: + type: string + path: + type: string + readOnly: + type: boolean + type: object + hostPath: + description: "HostPathVolumeSourceApplyConfiguration represents " + properties: + path: + type: string + type: + type: string + type: object + image: + description: ImageVolumeSourceApplyConfiguration represents a d + properties: + pullPolicy: + description: "PullPolicy describes a policy for if/when to pull " + type: string + reference: + type: string + type: object + iscsi: + description: ISCSIVolumeSourceApplyConfiguration represents a d + properties: + chapAuthDiscovery: + type: boolean + chapAuthSession: + type: boolean + fsType: + type: string + initiatorName: + type: string + iqn: + type: string + iscsiInterface: + type: string + lun: + format: int32 + type: integer + portals: + items: + type: string + type: array + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + targetPortal: + type: string + type: object + name: + type: string + nfs: + description: NFSVolumeSourceApplyConfiguration represents a dec + properties: + path: + type: string + readOnly: + type: boolean + server: + type: string + type: object + persistentVolumeClaim: + description: PersistentVolumeClaimVolumeSourceApplyConfiguratio + properties: + claimName: + type: string + readOnly: + type: boolean + type: object + photonPersistentDisk: + description: PhotonPersistentDiskVolumeSourceApplyConfiguration + properties: + fsType: + type: string + pdID: + type: string + type: object + portworxVolume: + description: "PortworxVolumeSourceApplyConfiguration represents " + properties: + fsType: + type: string + readOnly: + type: boolean + volumeID: + type: string + type: object + projected: + description: ProjectedVolumeSourceApplyConfiguration represents + properties: + defaultMode: + format: int32 + type: integer + sources: + items: + description: VolumeProjectionApplyConfiguration represents a de + properties: + clusterTrustBundle: + description: ClusterTrustBundleProjectionApplyConfiguration rep + properties: + labelSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + name: + type: string + optional: + type: boolean + path: + type: string + signerName: + type: string + type: object + configMap: + description: ConfigMapProjectionApplyConfiguration represents a + properties: + items: + items: + description: KeyToPathApplyConfiguration represents a declarati + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + type: object + type: array + name: + type: string + optional: + type: boolean + type: object + downwardAPI: + description: DownwardAPIProjectionApplyConfiguration represents + properties: + items: + items: + description: DownwardAPIVolumeFileApplyConfiguration represents + properties: + fieldRef: + description: ObjectFieldSelectorApplyConfiguration represents a + properties: + apiVersion: + type: string + fieldPath: + type: string + type: object + mode: + format: int32 + type: integer + path: + type: string + resourceFieldRef: + description: ResourceFieldSelectorApplyConfiguration represents + properties: + containerName: + type: string + divisor: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + resource: + type: string + type: object + type: object + type: array + type: object + secret: + description: SecretProjectionApplyConfiguration represents a de + properties: + items: + items: + description: KeyToPathApplyConfiguration represents a declarati + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + type: object + type: array + name: + type: string + optional: + type: boolean + type: object + serviceAccountToken: + description: ServiceAccountTokenProjectionApplyConfiguration re + properties: + audience: + type: string + expirationSeconds: + format: int64 + type: integer + path: + type: string + type: object + type: object + type: array + type: object + quobyte: + description: QuobyteVolumeSourceApplyConfiguration represents a + properties: + group: + type: string + readOnly: + type: boolean + registry: + type: string + tenant: + type: string + user: + type: string + volume: + type: string + type: object + rbd: + description: RBDVolumeSourceApplyConfiguration represents a dec + properties: + fsType: + type: string + image: + type: string + keyring: + type: string + monitors: + items: + type: string + type: array + pool: + type: string + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + user: + type: string + type: object + scaleIO: + description: ScaleIOVolumeSourceApplyConfiguration represents a + properties: + fsType: + type: string + gateway: + type: string + protectionDomain: + type: string + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + sslEnabled: + type: boolean + storageMode: + type: string + storagePool: + type: string + system: + type: string + volumeName: + type: string + type: object + secret: + description: "SecretVolumeSourceApplyConfiguration represents a " + properties: + defaultMode: + format: int32 + type: integer + items: + items: + description: KeyToPathApplyConfiguration represents a declarati + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + type: object + type: array + optional: + type: boolean + secretName: + type: string + type: object + storageos: + description: StorageOSVolumeSourceApplyConfiguration represents + properties: + fsType: + type: string + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + volumeName: + type: string + volumeNamespace: + type: string + type: object + vsphereVolume: + description: VsphereVirtualDiskVolumeSourceApplyConfiguration r + properties: + fsType: + type: string + storagePolicyID: + type: string + storagePolicyName: + type: string + volumePath: + type: string + type: object + type: object + type: array + workVolume: + description: WorkVolume is the volume source for the working di + properties: + awsElasticBlockStore: + description: AWSElasticBlockStoreVolumeSourceApplyConfiguration + properties: + fsType: + type: string + partition: + format: int32 + type: integer + readOnly: + type: boolean + volumeID: + type: string + type: object + azureDisk: + description: AzureDiskVolumeSourceApplyConfiguration represents + properties: + cachingMode: + type: string + diskName: + type: string + diskURI: + type: string + fsType: + type: string + kind: + type: string + readOnly: + type: boolean + type: object + azureFile: + description: AzureFileVolumeSourceApplyConfiguration represents + properties: + readOnly: + type: boolean + secretName: + type: string + shareName: + type: string + type: object + cephfs: + description: "CephFSVolumeSourceApplyConfiguration represents a " + properties: + monitors: + items: + type: string + type: array + path: + type: string + readOnly: + type: boolean + secretFile: + type: string + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + user: + type: string + type: object + cinder: + description: "CinderVolumeSourceApplyConfiguration represents a " + properties: + fsType: + type: string + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + volumeID: + type: string + type: object + configMap: + description: ConfigMapVolumeSourceApplyConfiguration represents + properties: + defaultMode: + format: int32 + type: integer + items: + items: + description: KeyToPathApplyConfiguration represents a declarati + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + type: object + type: array + name: + type: string + optional: + type: boolean + type: object + csi: + description: CSIVolumeSourceApplyConfiguration represents a dec + properties: + driver: + type: string + fsType: + type: string + nodePublishSecretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + readOnly: + type: boolean + volumeAttributes: + additionalProperties: + type: string + type: object + type: object + downwardAPI: + description: DownwardAPIVolumeSourceApplyConfiguration represen + properties: + defaultMode: + format: int32 + type: integer + items: + items: + description: DownwardAPIVolumeFileApplyConfiguration represents + properties: + fieldRef: + description: ObjectFieldSelectorApplyConfiguration represents a + properties: + apiVersion: + type: string + fieldPath: + type: string + type: object + mode: + format: int32 + type: integer + path: + type: string + resourceFieldRef: + description: ResourceFieldSelectorApplyConfiguration represents + properties: + containerName: + type: string + divisor: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + resource: + type: string + type: object + type: object + type: array + type: object + emptyDir: + description: "EmptyDirVolumeSourceApplyConfiguration represents " + properties: + medium: + description: StorageMedium defines ways that storage can be all + type: string + sizeLimit: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + ephemeral: + description: EphemeralVolumeSourceApplyConfiguration represents + properties: + volumeClaimTemplate: + description: PersistentVolumeClaimTemplateApplyConfiguration re + properties: + metadata: + description: ObjectMetaApplyConfiguration represents a declarat + properties: + annotations: + additionalProperties: + type: string + type: object + creationTimestamp: + format: date-time + type: string + deletionGracePeriodSeconds: + format: int64 + type: integer + deletionTimestamp: + format: date-time + type: string + finalizers: + items: + type: string + type: array + generateName: + type: string + generation: + format: int64 + type: integer + labels: + additionalProperties: + type: string + type: object + name: + type: string + namespace: + type: string + ownerReferences: + items: + description: OwnerReferenceApplyConfiguration represents a decl + properties: + apiVersion: + type: string + blockOwnerDeletion: + type: boolean + controller: + type: boolean + kind: + type: string + name: + type: string + uid: + description: UID is a type that holds unique ID values, includi + type: string + type: object + type: array + resourceVersion: + type: string + uid: + description: UID is a type that holds unique ID values, includi + type: string + type: object + spec: + description: PersistentVolumeClaimSpecApplyConfiguration repres + properties: + accessModes: + items: + type: string + type: array + dataSource: + description: TypedLocalObjectReferenceApplyConfiguration repres + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + type: object + dataSourceRef: + description: "TypedObjectReferenceApplyConfiguration represents " + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + namespace: + type: string + type: object + resources: + description: VolumeResourceRequirementsApplyConfiguration repre + properties: + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) + type: object + type: object + selector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + storageClassName: + type: string + volumeAttributesClassName: + type: string + volumeMode: + description: PersistentVolumeMode describes how a volume is int + type: string + volumeName: + type: string + type: object + type: object + type: object + fc: + description: FCVolumeSourceApplyConfiguration represents a decl + properties: + fsType: + type: string + lun: + format: int32 + type: integer + readOnly: + type: boolean + targetWWNs: + items: + type: string + type: array + wwids: + items: + type: string + type: array + type: object + flexVolume: + description: FlexVolumeSourceApplyConfiguration represents a de + properties: + driver: + type: string + fsType: + type: string + options: + additionalProperties: + type: string + type: object + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + type: object + flocker: + description: FlockerVolumeSourceApplyConfiguration represents a + properties: + datasetName: + type: string + datasetUUID: + type: string + type: object + gcePersistentDisk: + description: GCEPersistentDiskVolumeSourceApplyConfiguration re + properties: + fsType: + type: string + partition: + format: int32 + type: integer + pdName: + type: string + readOnly: + type: boolean + type: object + gitRepo: + description: GitRepoVolumeSourceApplyConfiguration represents a + properties: + directory: + type: string + repository: + type: string + revision: + type: string + type: object + glusterfs: + description: GlusterfsVolumeSourceApplyConfiguration represents + properties: + endpoints: + type: string + path: + type: string + readOnly: + type: boolean + type: object + hostPath: + description: "HostPathVolumeSourceApplyConfiguration represents " + properties: + path: + type: string + type: + type: string + type: object + image: + description: ImageVolumeSourceApplyConfiguration represents a d + properties: + pullPolicy: + description: "PullPolicy describes a policy for if/when to pull " + type: string + reference: + type: string + type: object + iscsi: + description: ISCSIVolumeSourceApplyConfiguration represents a d + properties: + chapAuthDiscovery: + type: boolean + chapAuthSession: + type: boolean + fsType: + type: string + initiatorName: + type: string + iqn: + type: string + iscsiInterface: + type: string + lun: + format: int32 + type: integer + portals: + items: + type: string + type: array + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + targetPortal: + type: string + type: object + nfs: + description: NFSVolumeSourceApplyConfiguration represents a dec + properties: + path: + type: string + readOnly: + type: boolean + server: + type: string + type: object + persistentVolumeClaim: + description: PersistentVolumeClaimVolumeSourceApplyConfiguratio + properties: + claimName: + type: string + readOnly: + type: boolean + type: object + photonPersistentDisk: + description: PhotonPersistentDiskVolumeSourceApplyConfiguration + properties: + fsType: + type: string + pdID: + type: string + type: object + portworxVolume: + description: "PortworxVolumeSourceApplyConfiguration represents " + properties: + fsType: + type: string + readOnly: + type: boolean + volumeID: + type: string + type: object + projected: + description: ProjectedVolumeSourceApplyConfiguration represents + properties: + defaultMode: + format: int32 + type: integer + sources: + items: + description: VolumeProjectionApplyConfiguration represents a de + properties: + clusterTrustBundle: + description: ClusterTrustBundleProjectionApplyConfiguration rep + properties: + labelSelector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + name: + type: string + optional: + type: boolean + path: + type: string + signerName: + type: string + type: object + configMap: + description: ConfigMapProjectionApplyConfiguration represents a + properties: + items: + items: + description: KeyToPathApplyConfiguration represents a declarati + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + type: object + type: array + name: + type: string + optional: + type: boolean + type: object + downwardAPI: + description: DownwardAPIProjectionApplyConfiguration represents + properties: + items: + items: + description: DownwardAPIVolumeFileApplyConfiguration represents + properties: + fieldRef: + description: ObjectFieldSelectorApplyConfiguration represents a + properties: + apiVersion: + type: string + fieldPath: + type: string + type: object + mode: + format: int32 + type: integer + path: + type: string + resourceFieldRef: + description: ResourceFieldSelectorApplyConfiguration represents + properties: + containerName: + type: string + divisor: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + resource: + type: string + type: object + type: object + type: array + type: object + secret: + description: SecretProjectionApplyConfiguration represents a de + properties: + items: + items: + description: KeyToPathApplyConfiguration represents a declarati + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + type: object + type: array + name: + type: string + optional: + type: boolean + type: object + serviceAccountToken: + description: ServiceAccountTokenProjectionApplyConfiguration re + properties: + audience: + type: string + expirationSeconds: + format: int64 + type: integer + path: + type: string + type: object + type: object + type: array + type: object + quobyte: + description: QuobyteVolumeSourceApplyConfiguration represents a + properties: + group: + type: string + readOnly: + type: boolean + registry: + type: string + tenant: + type: string + user: + type: string + volume: + type: string + type: object + rbd: + description: RBDVolumeSourceApplyConfiguration represents a dec + properties: + fsType: + type: string + image: + type: string + keyring: + type: string + monitors: + items: + type: string + type: array + pool: + type: string + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + user: + type: string + type: object + scaleIO: + description: ScaleIOVolumeSourceApplyConfiguration represents a + properties: + fsType: + type: string + gateway: + type: string + protectionDomain: + type: string + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + sslEnabled: + type: boolean + storageMode: + type: string + storagePool: + type: string + system: + type: string + volumeName: + type: string + type: object + secret: + description: "SecretVolumeSourceApplyConfiguration represents a " + properties: + defaultMode: + format: int32 + type: integer + items: + items: + description: KeyToPathApplyConfiguration represents a declarati + properties: + key: + type: string + mode: + format: int32 + type: integer + path: + type: string + type: object + type: array + optional: + type: boolean + secretName: + type: string + type: object + storageos: + description: StorageOSVolumeSourceApplyConfiguration represents + properties: + fsType: + type: string + readOnly: + type: boolean + secretRef: + description: "LocalObjectReferenceApplyConfiguration represents " + properties: + name: + type: string + type: object + volumeName: + type: string + volumeNamespace: + type: string + type: object + vsphereVolume: + description: VsphereVirtualDiskVolumeSourceApplyConfiguration r + properties: + fsType: + type: string + storagePolicyID: + type: string + storagePolicyName: + type: string + volumePath: + type: string + type: object + type: object + required: + - bucketConfig + - serviceAccountName + - workVolume + type: object + restorePoint: + description: RestorePoint is the target date and time to restor + format: date-time + type: string + schema: + description: Schema is the name of the schema to restore. + type: string + sourceName: + description: SourceName is the name of the source `MySQLCluster + minLength: 1 + type: string + sourceNamespace: + description: SourceNamespace is the namespace of the source `My + minLength: 1 + type: string + required: + - jobConfig + - restorePoint + - sourceName + - sourceNamespace + type: object + serverIDBase: + description: "ServerIDBase, if set, will become the base number " + format: int32 + type: integer + startupWaitSeconds: + default: 3600 + description: StartupWaitSeconds is the maximum duration to wait + format: int32 + minimum: 0 + type: integer + volumeClaimTemplates: + description: VolumeClaimTemplates is a list of `PersistentVolum + items: + description: "PersistentVolumeClaim is a user's request for and " + properties: + metadata: + description: Standard object's metadata. + properties: + annotations: + additionalProperties: + type: string + description: Annotations is a map of string keys and values. + type: object + labels: + additionalProperties: + type: string + description: Labels is a map of string keys and values. + type: object + name: + description: Name is the name of the object. + type: string + type: object + spec: + description: Spec defines the desired characteristics of a volu + properties: + accessModes: + items: + type: string + type: array + dataSource: + description: TypedLocalObjectReferenceApplyConfiguration repres + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + type: object + dataSourceRef: + description: "TypedObjectReferenceApplyConfiguration represents " + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + namespace: + type: string + type: object + resources: + description: VolumeResourceRequirementsApplyConfiguration repre + properties: + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: ResourceList is a set of (resource name, quantity) + type: object + type: object + selector: + description: LabelSelectorApplyConfiguration represents a decla + properties: + matchExpressions: + items: + description: LabelSelectorRequirementApplyConfiguration represe + properties: + key: + type: string + operator: + description: "A label selector operator is the set of operators " + type: string + values: + items: + type: string + type: array + type: object + type: array + matchLabels: + additionalProperties: + type: string + type: object + type: object + storageClassName: + type: string + volumeAttributesClassName: + type: string + volumeMode: + description: PersistentVolumeMode describes how a volume is int + type: string + volumeName: + type: string + type: object + required: + - metadata + - spec + type: object + minItems: 1 + type: array + required: + - podTemplate + - volumeClaimTemplates + type: object + status: + description: MySQLClusterStatus defines the observed state of M + properties: + backup: + description: Backup is the status of the last successful backup + properties: + binlogFilename: + description: BinlogFilename is the binlog filename that the bac + type: string + binlogSize: + description: BinlogSize is the size in bytes of a tarball of bi + format: int64 + type: integer + dumpSize: + description: DumpSize is the size in bytes of a full dump of da + format: int64 + type: integer + elapsed: + description: Elapsed is the time spent on the backup. + type: string + gtidSet: + description: GTIDSet is the GTID set of the full dump of databa + type: string + sourceIndex: + description: SourceIndex is the ordinal of the backup source in + type: integer + sourceUUID: + description: SourceUUID is the `server_uuid` of the backup sour + type: string + time: + description: The time of the backup. + format: date-time + nullable: true + type: string + uuidSet: + additionalProperties: + type: string + description: "UUIDSet is the `server_uuid` set of all candidate " + type: object + warnings: + description: Warnings are list of warnings from the last backup + items: + type: string + nullable: true + type: array + workDirUsage: + description: WorkDirUsage is the max usage in bytes of the woki + format: int64 + type: integer + required: + - binlogFilename + - binlogSize + - dumpSize + - elapsed + - gtidSet + - sourceIndex + - sourceUUID + - time + - warnings + - workDirUsage + type: object + cloned: + description: Cloned indicates if the initial cloning from an ex + type: boolean + conditions: + description: Conditions is an array of conditions. + items: + description: Condition contains details for one aspect of the c + properties: + lastTransitionTime: + description: "lastTransitionTime is the last time the condition " + format: date-time + type: string + message: + description: message is a human readable message indicating det + maxLength: 32768 + type: string + observedGeneration: + description: observedGeneration represents the .metadata. + format: int64 + minimum: 0 + type: integer + reason: + description: reason contains a programmatic identifier indicati + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unkno + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + currentPrimaryIndex: + description: CurrentPrimaryIndex is the index of the current pr + type: integer + errantReplicaList: + description: ErrantReplicaList is the list of indices of errant + items: + type: integer + type: array + errantReplicas: + description: ErrantReplicas is the number of instances that hav + type: integer + reconcileInfo: + description: ReconcileInfo represents version information for r + properties: + generation: + description: Generation is the `metadata. + format: int64 + type: integer + reconcileVersion: + description: ReconcileVersion is the version of the operator re + type: integer + type: object + restoredTime: + description: "RestoredTime is the time when the cluster data is " + format: date-time + type: string + syncedReplicas: + description: SyncedReplicas is the number of synced instances i + type: integer + required: + - currentPrimaryIndex + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/packages/cli/src/generateCRDs.ts b/packages/cli/src/generateCRDs.ts index 1244482..4c6bf0d 100644 --- a/packages/cli/src/generateCRDs.ts +++ b/packages/cli/src/generateCRDs.ts @@ -96,7 +96,15 @@ export async function generateCRDs(crdPathOrUrl?: string, config?: K8sKonfig) { const cacheDir = path.join(cacheHome, pkg); fs.mkdirSync(cacheDir, { recursive: true }); for (const url of urls) { - await fetchAndParseCRDs(output[pkg], url, cacheDir); + try { + new URL(url); + await fetchAndParseCRDs(output[pkg], url, cacheDir); + } catch (e) { + log(`Reading CRDs from ${pc.yellowBright(url)}`); + yaml.parseAllDocuments(fs.readFileSync(url, 'utf-8')).forEach((c) => + output[pkg].push(c.toJS()), + ); + } } } }