--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.22.0 name: bundledeployments.fleet.cattle.io spec: group: fleet.cattle.io names: kind: BundleDeployment listKind: BundleDeploymentList plural: bundledeployments singular: bundledeployment scope: Namespaced versions: - additionalPrinterColumns: - jsonPath: .status.display.deployed name: Deployed type: string - jsonPath: .status.display.monitored name: Monitored type: string - jsonPath: .status.conditions[?(@.type=="Ready")].message name: Status type: string name: v1alpha1 schema: openAPIV3Schema: description: |- BundleDeployment is used internally by Fleet and should not be used directly. When a Bundle is deployed to a cluster an instance of a Bundle is called a BundleDeployment. A BundleDeployment represents the state of that Bundle on a specific cluster with its cluster-specific customizations. The Fleet agent is only aware of BundleDeployment resources that are created for the cluster the agent is managing. properties: apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object spec: properties: correctDrift: description: CorrectDrift specifies how drift correction should work. properties: enabled: description: Enabled correct drift if true. type: boolean force: description: Force helm rollback with --force option will be used if true. This will try to recreate all resources in the release. type: boolean keepFailHistory: description: KeepFailHistory keeps track of failed rollbacks in the helm history. type: boolean type: object dependsOn: description: DependsOn refers to the bundles which must be ready before this bundle can be deployed. items: properties: acceptedStates: description: |- AcceptedStates is a list of BundleDeployment state that are considered acceptable for this dependency. If the dependency is in one of these states, it will not block the deployment of the dependent bundle. Valid Values should match the StateRank keys, except for WaitingForDependency, which is rejected: it would unblock this bundle exactly when its dependency became blocked on a dependency of its own. If not specified, default to ["Ready"]: only fully ready dependencies are accepted Example: ["Ready", "Modified"] will accept dependencies that are either ready or have drifted from their desired state. items: type: string nullable: true type: array name: description: Name of the bundle. nullable: true type: string selector: description: Selector matching bundle's labels. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic type: object nullable: true type: array deploymentID: description: DeploymentID is the ID of the currently applied deployment. nullable: true type: string downstreamResourcesGeneration: description: |- DownstreamResourcesGeneration is used to track changes to DownstreamResources. It is incremented every time DownstreamResources are modified. format: int64 type: integer helmChartOptions: description: |- HelmChartOptions is not nil and has the helm chart config details when contents should be downloaded from a helm chart properties: helmOpCABundle: description: |- CABundle is a PEM encoded CA bundle used to validate TLS connections to the Helm registry. It is resolved by the controller (which has access to Rancher's cattle-system CA secrets, if any) and stored here so the agent can use it without requiring access to those secrets. format: byte nullable: true type: string helmOpInsecureSkipTLSVerify: description: InsecureSkipTLSverify will use insecure HTTPS to clone the helm app resource. type: boolean helmOpSecretName: description: |- SecretName stores the secret name for storing credentials when accessing a remote helm repository defined in a HelmOp resource type: string type: object ociContents: description: OCIContents is true when this deployment's contents is stored in an oci registry type: boolean offSchedule: description: |- OffSchedule specifies if the BundleDeployment can be updated. If set to true, will stop any BundleDeployments from being updated. If true, BundleDeployments will be marked as out of sync when changes are detected. type: boolean options: description: Options are the deployment options, that are currently applied. properties: allowedTargetNamespaceSelector: description: |- AllowedTargetNamespaceSelector restricts deployments to namespaces matching this selector. Propagated from GitRepoRestriction and validated by the agent on the downstream cluster. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic correctDrift: description: CorrectDrift specifies how drift correction should work. properties: enabled: description: Enabled correct drift if true. type: boolean force: description: Force helm rollback with --force option will be used if true. This will try to recreate all resources in the release. type: boolean keepFailHistory: description: KeepFailHistory keeps track of failed rollbacks in the helm history. type: boolean type: object createNamespace: description: |- CreateNamespace controls whether Fleet creates the target namespace on downstream clusters during Helm installs. When nil, the default behavior is to create the namespace (backward-compatible). Set to false by the controller when Policy requires a ServiceAccount and does not explicitly allow namespace creation. This does not affect namespaceLabels/ namespaceAnnotations patching, which is always attempted (when set) as the deployment's ServiceAccount and gated by downstream RBAC. nullable: true type: boolean defaultNamespace: description: |- DefaultNamespace is the namespace to use for resources that do not specify a namespace. This field is not used to enforce or lock down the deployment to a specific namespace. nullable: true type: string deleteCRDResources: description: DeleteCRDResources deletes CRDs. Warning! this will also delete all your Custom Resources. type: boolean deleteNamespace: description: DeleteNamespace can be used to delete the deployed namespace when removing the bundle type: boolean diff: description: Diff can be used to ignore the modified state of objects which are amended at runtime. nullable: true properties: comparePatches: description: ComparePatches match a resource and remove fields, or the resource itself from the check for modifications. items: description: ComparePatch matches a resource and removes fields from the check for modifications. properties: apiVersion: description: APIVersion is the apiVersion of the resource to match. nullable: true type: string jsonPointers: description: |- JSONPointers ignore diffs at the given JSON pointers, e.g. /spec/replicas. Each entry must be a non-empty pointer starting with a slash; a Kubernetes-style field path such as spec.replicas addresses nothing and is rejected. Escaping is the one the JSON patch library applies, which is laxer than RFC 6901: "~0" and "~1" are read as "~" and "/", respectively, and any other "~" sequence is left as written. items: type: string nullable: true type: array kind: description: Kind is the kind of the resource to match. nullable: true type: string name: description: |- Name is the name of the resource to match. Resources are matched by exact name first and, when the name does not match exactly, by matching it as a regular expression, so it must always be a valid Go regular expression. nullable: true type: string namespace: description: Namespace is the namespace of the resource to match. nullable: true type: string operations: description: Operations remove a JSON path from the resource. items: description: |- Operation of a ComparePatch, usually: * "remove" to remove a specific path in a resource * "ignore" to remove the entire resource from checks for modifications. properties: op: description: |- Op is the operation to perform on the matched resource. It must be one of the JSON Patch operations "add", "remove", "replace" and "test", or Fleet's own "ignore", which removes the entire resource from checks for modifications. The JSON Patch operations "copy" and "move" are not supported, because an Operation has no "from" field to encode them with. Any other value, including an empty one, makes the whole patch fail to apply. nullable: true type: string path: description: |- Path is the JSON pointer the operation applies to, e.g. /spec/replicas. It must be a non-empty pointer starting with a slash; a Kubernetes-style field path such as spec.replicas addresses nothing and is rejected. It is escaped like a JSONPointers entry, which is laxer than RFC 6901. Required unless Op is "ignore", which drops the whole resource from the comparison and never reads the path. nullable: true type: string value: description: Value is usually empty. nullable: true type: string type: object nullable: true type: array type: object nullable: true type: array type: object downstreamResources: description: |- DownstreamResources points to resources to be copied into downstream clusters, from the bundle's namespace. items: description: |- DownstreamResource contains identifiers for a resource to be copied from the parent bundle's namespace to each downstream cluster. properties: kind: type: string name: type: string type: object type: array forceSyncGeneration: description: ForceSyncGeneration is used to force a redeployment format: int64 type: integer helm: description: Helm options for the deployment, like the chart name, repo and values. properties: atomic: description: Atomic sets the --atomic flag when Helm is performing an upgrade type: boolean chart: description: |- Chart can refer to any go-getter URL or OCI registry based helm chart URL. The chart will be downloaded. nullable: true type: string disableDNS: description: DisableDNS can be used to customize Helm's EnableDNS option, which Fleet sets to `true` by default. type: boolean disableDependencyUpdate: description: DisableDependencyUpdate allows skipping chart dependencies update type: boolean disablePreProcess: description: DisablePreProcess disables template processing in values type: boolean force: description: Force allows to override immutable resources. This could be dangerous. type: boolean maxHistory: description: MaxHistory limits the maximum number of revisions saved per release by Helm. type: integer preserveOnReplace: description: |- PreserveOnReplace lists fields which are kept from the live object when an object is replaced, which happens with helm.force or correctDrift.force. A replace sends the whole object, so fields set on the server after its creation (e.g. the volumeName of a bound PersistentVolumeClaim) would otherwise be cleared, which the API server may reject. A field is only copied when the deployed manifest leaves it unset, except for a list with a mergeKey (see PreservedPath). Without helm.force or correctDrift.force, this has no effect. Rules from the bundle and from matching target customizations are combined, and all rules matching an object apply, so their paths add up; identical rules are deduplicated. Changing these rules redeploys the bundle. items: description: |- PreserveOnReplaceRule matches objects and lists the fields to keep from their live version when they are replaced. properties: apiVersion: description: |- APIVersion is the apiVersion of the objects to match, e.g. v1. It must equal the apiVersion the chart renders: apps/v1beta1 does not match an object rendered as apps/v1. minLength: 1 type: string kind: description: Kind is the kind of the objects to match, e.g. PersistentVolumeClaim. minLength: 1 type: string name: description: |- Name is the name of the objects to match, exactly. It takes precedence over NameRegex: if both are set, NameRegex is ignored. Empty, with no NameRegex, matches any name. type: string nameRegex: description: |- NameRegex is an unanchored Go regular expression matching the names of the objects to match. As it is unanchored, pvc-1 also matches my-pvc-10: use ^pvc-1$, or Name, to match one name only. It is ignored, and not validated, if Name is set. type: string namespace: description: |- Namespace is the namespace of the objects to match, exactly. Empty matches any namespace. type: string paths: description: Paths are the fields to keep from the live object. items: description: |- PreservedPath is a field kept from the live object when an object is replaced. properties: mergeKey: description: |- MergeKey, if set, merges a list of objects instead of copying it only when unset: live items whose MergeKey field has a value not found in the deployed list are appended to it. It only applies to lists of objects: live items which are not objects are not merged, although a live list is still copied whole when the deployed object leaves it unset. As long as the rule exists, an item removed from the manifest is added back from the live object on every replace. E.g. with path /spec/volumes and mergeKey name, a manifest with volumes [{name: b, ...}] and a live object with volumes [{name: z}, {name: b}, {name: a}] are replaced with volumes [{name: b, ...}, {name: z}, {name: a}]: the manifest's items come first and win, then the live items whose name the manifest lacks, in live order. type: string path: description: |- Path is a JSON pointer (RFC 6901) to the field, e.g. /spec/volumeName. A "[key]" token indicates that Fleet should iterate over the items of a list, pairing each item of the manifest (object to be deployed) with the live item, based on both having the same value of the key field. E.g. /spec/containers/[name]/volumeMounts pairs containers by name and preserves the volumeMounts of each pair. A "[key]" token must follow a field and be followed by one, so lists of lists cannot be addressed, and neither can a field whose name starts with "[" and ends with "]". The live value is copied when the deployed object leaves the field unset or null, unless MergeKey is set. Helm always sets some annotations and labels, e.g. meta.helm.sh/release-name, so /metadata/annotations and /metadata/labels are never unset: use /metadata/annotations/ to keep one annotation. Paths below /status, /apiVersion, /kind, /metadata/name, /metadata/namespace, /metadata/uid, /metadata/resourceVersion, /metadata/generation, /metadata/creationTimestamp, /metadata/deletionTimestamp and /metadata/managedFields are not allowed. minLength: 2 type: string required: - path type: object minItems: 1 type: array required: - apiVersion - kind - paths type: object nullable: true type: array releaseName: description: |- ReleaseName sets a custom release name to deploy the chart as. If not specified a release name will be generated by combining the invoking GitRepo.name + GitRepo.path. maxLength: 53 nullable: true pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ type: string repo: description: Repo is the name of the HTTPS helm repo to download the chart from. nullable: true type: string skipSchemaValidation: description: SkipSchemaValidation allows skipping schema validation against the chart values type: boolean takeOwnership: description: TakeOwnership makes helm skip the check for its own annotations type: boolean templateValues: additionalProperties: type: string description: |- Template Values passed to Helm. It is possible to specify the keys and values as go template strings. Unlike .values, content of each key will be templated first, before serializing to yaml. This allows to template complex values, like ranges and maps. templateValues keys have precedence over values keys in case of conflict. nullable: true type: object timeoutSeconds: description: TimeoutSeconds is the time to wait for Helm operations. type: integer values: description: |- Values passed to Helm. It is possible to specify the keys and values as go template strings. nullable: true type: object x-kubernetes-preserve-unknown-fields: true valuesFiles: description: ValuesFiles is a list of files to load values from. items: type: string nullable: true type: array valuesFrom: description: ValuesFrom loads the values from configmaps and secrets. items: description: 'Define helm values that can come from configmap, secret or external. Credit: https://github.com/fluxcd/helm-operator/blob/0cfea875b5d44bea995abe7324819432070dfbdc/pkg/apis/helm.fluxcd.io/v1/types_helmrelease.go#L439' properties: configMapKeyRef: description: The reference to a config map with release values. nullable: true properties: key: nullable: true type: string name: description: Name of a resource in the same namespace as the referent. nullable: true type: string namespace: nullable: true type: string type: object secretKeyRef: description: The reference to a secret with release values. nullable: true properties: key: nullable: true type: string name: description: Name of a resource in the same namespace as the referent. nullable: true type: string namespace: nullable: true type: string type: object type: object nullable: true type: array version: description: Version of the chart to download nullable: true type: string waitForJobs: description: |- WaitForJobs if set and timeoutSeconds provided, will wait until all Jobs have been completed before marking the GitRepo as ready. It will wait for as long as timeoutSeconds type: boolean type: object ignore: description: IgnoreOptions can be used to ignore fields when monitoring the bundle. nullable: true properties: conditions: description: Conditions is a list of conditions to be ignored when monitoring the Bundle. items: additionalProperties: type: string type: object nullable: true type: array type: object keepResources: description: KeepResources can be used to keep the deployed resources when removing the bundle type: boolean kustomize: description: |- Kustomize options for the deployment, like the dir containing the kustomization.yaml file. nullable: true properties: dir: description: |- Dir points to a custom folder for kustomize resources. This folder must contain a kustomization.yaml file. nullable: true type: string type: object namespace: description: |- TargetNamespace if present will assign all resource to this namespace and if any cluster scoped resource exists the deployment will fail. nullable: true type: string namespaceAnnotations: additionalProperties: type: string description: NamespaceAnnotations are annotations that will be appended to the namespace created by Fleet. nullable: true type: object namespaceLabels: additionalProperties: type: string description: NamespaceLabels are labels that will be appended to the namespace created by Fleet. nullable: true type: object overwrites: description: |- Overwrites indicates which resources, if any, come from this bundle and overwrite another existing bundle. This flag is set internally by Fleet, and should not be altered by users. items: properties: kind: type: string name: type: string namespace: type: string type: object type: array serviceAccount: description: ServiceAccount which will be used to perform this deployment. nullable: true type: string yaml: description: |- YAML options, if using raw YAML these are names that map to overlays/{name} files that will be used to replace or patch a resource. nullable: true properties: overlays: description: |- Overlays is a list of names that maps to folders in "overlays/". If you wish to customize the file ./subdir/resource.yaml then a file ./overlays/myoverlay/subdir/resource.yaml will replace the base file. A file named ./overlays/myoverlay/subdir/resource_patch.yaml will patch the base file. items: type: string nullable: true type: array type: object type: object paused: description: |- Paused if set to true, will stop any BundleDeployments from being updated. If true, BundleDeployments will be marked as out of sync when changes are detected. type: boolean stagedDeploymentID: description: StagedDeploymentID is the ID of the staged deployment. nullable: true type: string stagedOptions: description: |- StagedOptions are the deployment options, that are staged for the next deployment. properties: allowedTargetNamespaceSelector: description: |- AllowedTargetNamespaceSelector restricts deployments to namespaces matching this selector. Propagated from GitRepoRestriction and validated by the agent on the downstream cluster. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic correctDrift: description: CorrectDrift specifies how drift correction should work. properties: enabled: description: Enabled correct drift if true. type: boolean force: description: Force helm rollback with --force option will be used if true. This will try to recreate all resources in the release. type: boolean keepFailHistory: description: KeepFailHistory keeps track of failed rollbacks in the helm history. type: boolean type: object createNamespace: description: |- CreateNamespace controls whether Fleet creates the target namespace on downstream clusters during Helm installs. When nil, the default behavior is to create the namespace (backward-compatible). Set to false by the controller when Policy requires a ServiceAccount and does not explicitly allow namespace creation. This does not affect namespaceLabels/ namespaceAnnotations patching, which is always attempted (when set) as the deployment's ServiceAccount and gated by downstream RBAC. nullable: true type: boolean defaultNamespace: description: |- DefaultNamespace is the namespace to use for resources that do not specify a namespace. This field is not used to enforce or lock down the deployment to a specific namespace. nullable: true type: string deleteCRDResources: description: DeleteCRDResources deletes CRDs. Warning! this will also delete all your Custom Resources. type: boolean deleteNamespace: description: DeleteNamespace can be used to delete the deployed namespace when removing the bundle type: boolean diff: description: Diff can be used to ignore the modified state of objects which are amended at runtime. nullable: true properties: comparePatches: description: ComparePatches match a resource and remove fields, or the resource itself from the check for modifications. items: description: ComparePatch matches a resource and removes fields from the check for modifications. properties: apiVersion: description: APIVersion is the apiVersion of the resource to match. nullable: true type: string jsonPointers: description: |- JSONPointers ignore diffs at the given JSON pointers, e.g. /spec/replicas. Each entry must be a non-empty pointer starting with a slash; a Kubernetes-style field path such as spec.replicas addresses nothing and is rejected. Escaping is the one the JSON patch library applies, which is laxer than RFC 6901: "~0" and "~1" are read as "~" and "/", respectively, and any other "~" sequence is left as written. items: type: string nullable: true type: array kind: description: Kind is the kind of the resource to match. nullable: true type: string name: description: |- Name is the name of the resource to match. Resources are matched by exact name first and, when the name does not match exactly, by matching it as a regular expression, so it must always be a valid Go regular expression. nullable: true type: string namespace: description: Namespace is the namespace of the resource to match. nullable: true type: string operations: description: Operations remove a JSON path from the resource. items: description: |- Operation of a ComparePatch, usually: * "remove" to remove a specific path in a resource * "ignore" to remove the entire resource from checks for modifications. properties: op: description: |- Op is the operation to perform on the matched resource. It must be one of the JSON Patch operations "add", "remove", "replace" and "test", or Fleet's own "ignore", which removes the entire resource from checks for modifications. The JSON Patch operations "copy" and "move" are not supported, because an Operation has no "from" field to encode them with. Any other value, including an empty one, makes the whole patch fail to apply. nullable: true type: string path: description: |- Path is the JSON pointer the operation applies to, e.g. /spec/replicas. It must be a non-empty pointer starting with a slash; a Kubernetes-style field path such as spec.replicas addresses nothing and is rejected. It is escaped like a JSONPointers entry, which is laxer than RFC 6901. Required unless Op is "ignore", which drops the whole resource from the comparison and never reads the path. nullable: true type: string value: description: Value is usually empty. nullable: true type: string type: object nullable: true type: array type: object nullable: true type: array type: object downstreamResources: description: |- DownstreamResources points to resources to be copied into downstream clusters, from the bundle's namespace. items: description: |- DownstreamResource contains identifiers for a resource to be copied from the parent bundle's namespace to each downstream cluster. properties: kind: type: string name: type: string type: object type: array forceSyncGeneration: description: ForceSyncGeneration is used to force a redeployment format: int64 type: integer helm: description: Helm options for the deployment, like the chart name, repo and values. properties: atomic: description: Atomic sets the --atomic flag when Helm is performing an upgrade type: boolean chart: description: |- Chart can refer to any go-getter URL or OCI registry based helm chart URL. The chart will be downloaded. nullable: true type: string disableDNS: description: DisableDNS can be used to customize Helm's EnableDNS option, which Fleet sets to `true` by default. type: boolean disableDependencyUpdate: description: DisableDependencyUpdate allows skipping chart dependencies update type: boolean disablePreProcess: description: DisablePreProcess disables template processing in values type: boolean force: description: Force allows to override immutable resources. This could be dangerous. type: boolean maxHistory: description: MaxHistory limits the maximum number of revisions saved per release by Helm. type: integer preserveOnReplace: description: |- PreserveOnReplace lists fields which are kept from the live object when an object is replaced, which happens with helm.force or correctDrift.force. A replace sends the whole object, so fields set on the server after its creation (e.g. the volumeName of a bound PersistentVolumeClaim) would otherwise be cleared, which the API server may reject. A field is only copied when the deployed manifest leaves it unset, except for a list with a mergeKey (see PreservedPath). Without helm.force or correctDrift.force, this has no effect. Rules from the bundle and from matching target customizations are combined, and all rules matching an object apply, so their paths add up; identical rules are deduplicated. Changing these rules redeploys the bundle. items: description: |- PreserveOnReplaceRule matches objects and lists the fields to keep from their live version when they are replaced. properties: apiVersion: description: |- APIVersion is the apiVersion of the objects to match, e.g. v1. It must equal the apiVersion the chart renders: apps/v1beta1 does not match an object rendered as apps/v1. minLength: 1 type: string kind: description: Kind is the kind of the objects to match, e.g. PersistentVolumeClaim. minLength: 1 type: string name: description: |- Name is the name of the objects to match, exactly. It takes precedence over NameRegex: if both are set, NameRegex is ignored. Empty, with no NameRegex, matches any name. type: string nameRegex: description: |- NameRegex is an unanchored Go regular expression matching the names of the objects to match. As it is unanchored, pvc-1 also matches my-pvc-10: use ^pvc-1$, or Name, to match one name only. It is ignored, and not validated, if Name is set. type: string namespace: description: |- Namespace is the namespace of the objects to match, exactly. Empty matches any namespace. type: string paths: description: Paths are the fields to keep from the live object. items: description: |- PreservedPath is a field kept from the live object when an object is replaced. properties: mergeKey: description: |- MergeKey, if set, merges a list of objects instead of copying it only when unset: live items whose MergeKey field has a value not found in the deployed list are appended to it. It only applies to lists of objects: live items which are not objects are not merged, although a live list is still copied whole when the deployed object leaves it unset. As long as the rule exists, an item removed from the manifest is added back from the live object on every replace. E.g. with path /spec/volumes and mergeKey name, a manifest with volumes [{name: b, ...}] and a live object with volumes [{name: z}, {name: b}, {name: a}] are replaced with volumes [{name: b, ...}, {name: z}, {name: a}]: the manifest's items come first and win, then the live items whose name the manifest lacks, in live order. type: string path: description: |- Path is a JSON pointer (RFC 6901) to the field, e.g. /spec/volumeName. A "[key]" token indicates that Fleet should iterate over the items of a list, pairing each item of the manifest (object to be deployed) with the live item, based on both having the same value of the key field. E.g. /spec/containers/[name]/volumeMounts pairs containers by name and preserves the volumeMounts of each pair. A "[key]" token must follow a field and be followed by one, so lists of lists cannot be addressed, and neither can a field whose name starts with "[" and ends with "]". The live value is copied when the deployed object leaves the field unset or null, unless MergeKey is set. Helm always sets some annotations and labels, e.g. meta.helm.sh/release-name, so /metadata/annotations and /metadata/labels are never unset: use /metadata/annotations/ to keep one annotation. Paths below /status, /apiVersion, /kind, /metadata/name, /metadata/namespace, /metadata/uid, /metadata/resourceVersion, /metadata/generation, /metadata/creationTimestamp, /metadata/deletionTimestamp and /metadata/managedFields are not allowed. minLength: 2 type: string required: - path type: object minItems: 1 type: array required: - apiVersion - kind - paths type: object nullable: true type: array releaseName: description: |- ReleaseName sets a custom release name to deploy the chart as. If not specified a release name will be generated by combining the invoking GitRepo.name + GitRepo.path. maxLength: 53 nullable: true pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ type: string repo: description: Repo is the name of the HTTPS helm repo to download the chart from. nullable: true type: string skipSchemaValidation: description: SkipSchemaValidation allows skipping schema validation against the chart values type: boolean takeOwnership: description: TakeOwnership makes helm skip the check for its own annotations type: boolean templateValues: additionalProperties: type: string description: |- Template Values passed to Helm. It is possible to specify the keys and values as go template strings. Unlike .values, content of each key will be templated first, before serializing to yaml. This allows to template complex values, like ranges and maps. templateValues keys have precedence over values keys in case of conflict. nullable: true type: object timeoutSeconds: description: TimeoutSeconds is the time to wait for Helm operations. type: integer values: description: |- Values passed to Helm. It is possible to specify the keys and values as go template strings. nullable: true type: object x-kubernetes-preserve-unknown-fields: true valuesFiles: description: ValuesFiles is a list of files to load values from. items: type: string nullable: true type: array valuesFrom: description: ValuesFrom loads the values from configmaps and secrets. items: description: 'Define helm values that can come from configmap, secret or external. Credit: https://github.com/fluxcd/helm-operator/blob/0cfea875b5d44bea995abe7324819432070dfbdc/pkg/apis/helm.fluxcd.io/v1/types_helmrelease.go#L439' properties: configMapKeyRef: description: The reference to a config map with release values. nullable: true properties: key: nullable: true type: string name: description: Name of a resource in the same namespace as the referent. nullable: true type: string namespace: nullable: true type: string type: object secretKeyRef: description: The reference to a secret with release values. nullable: true properties: key: nullable: true type: string name: description: Name of a resource in the same namespace as the referent. nullable: true type: string namespace: nullable: true type: string type: object type: object nullable: true type: array version: description: Version of the chart to download nullable: true type: string waitForJobs: description: |- WaitForJobs if set and timeoutSeconds provided, will wait until all Jobs have been completed before marking the GitRepo as ready. It will wait for as long as timeoutSeconds type: boolean type: object ignore: description: IgnoreOptions can be used to ignore fields when monitoring the bundle. nullable: true properties: conditions: description: Conditions is a list of conditions to be ignored when monitoring the Bundle. items: additionalProperties: type: string type: object nullable: true type: array type: object keepResources: description: KeepResources can be used to keep the deployed resources when removing the bundle type: boolean kustomize: description: |- Kustomize options for the deployment, like the dir containing the kustomization.yaml file. nullable: true properties: dir: description: |- Dir points to a custom folder for kustomize resources. This folder must contain a kustomization.yaml file. nullable: true type: string type: object namespace: description: |- TargetNamespace if present will assign all resource to this namespace and if any cluster scoped resource exists the deployment will fail. nullable: true type: string namespaceAnnotations: additionalProperties: type: string description: NamespaceAnnotations are annotations that will be appended to the namespace created by Fleet. nullable: true type: object namespaceLabels: additionalProperties: type: string description: NamespaceLabels are labels that will be appended to the namespace created by Fleet. nullable: true type: object overwrites: description: |- Overwrites indicates which resources, if any, come from this bundle and overwrite another existing bundle. This flag is set internally by Fleet, and should not be altered by users. items: properties: kind: type: string name: type: string namespace: type: string type: object type: array serviceAccount: description: ServiceAccount which will be used to perform this deployment. nullable: true type: string yaml: description: |- YAML options, if using raw YAML these are names that map to overlays/{name} files that will be used to replace or patch a resource. nullable: true properties: overlays: description: |- Overlays is a list of names that maps to folders in "overlays/". If you wish to customize the file ./subdir/resource.yaml then a file ./overlays/myoverlay/subdir/resource.yaml will replace the base file. A file named ./overlays/myoverlay/subdir/resource_patch.yaml will patch the base file. items: type: string nullable: true type: array type: object type: object valuesHash: description: ValuesHash is the hash of the values used to deploy the bundle. nullable: true type: string waitingForValues: description: |- WaitingForValues is set to true by the bundle controller when the options secret for this BundleDeployment could not be found (e.g. due to transient API server pressure). While true, the agent skips reconciliation to avoid deploying with missing Helm values. The controller clears this flag once the secret is successfully loaded. type: boolean type: object status: properties: appliedDeploymentID: nullable: true type: string conditions: items: properties: lastTransitionTime: description: Last time the condition transitioned from one status to another. type: string lastUpdateTime: description: The last time this condition was updated. type: string message: description: Human-readable message indicating details about last transition type: string reason: description: The reason for the condition's last transition. type: string status: description: Status of the condition, one of True, False, Unknown. type: string type: description: Type of cluster condition. type: string required: - status - type type: object nullable: true type: array display: nullable: true properties: deployed: nullable: true type: string monitored: nullable: true type: string state: nullable: true type: string type: object downstreamResourcesGeneration: description: |- DownstreamResourcesGeneration is used to track changes to DownstreamResources. It is incremented every time DownstreamResources are modified and reflects the value in the spec after it has been processed. format: int64 type: integer incompleteState: description: IncompleteState is true if there are more than 10 non-ready or modified resources, meaning that the lists in those fields have been truncated. type: boolean modifiedStatus: items: description: |- ModifiedStatus is used to report the status of a resource that is modified. It indicates if the modification was a create, a delete or a patch. properties: apiVersion: nullable: true type: string delete: type: boolean exist: description: Exist is true if the resource exists but is not owned by us. This can happen if a resource was adopted by another bundle whereas the first bundle still exists and due to that reports that it does not own it. type: boolean kind: nullable: true type: string missing: type: boolean name: nullable: true type: string namespace: nullable: true type: string patch: nullable: true type: string type: object nullable: true type: array nonModified: type: boolean nonReadyStatus: items: description: NonReadyStatus is used to report the status of a resource that is not ready. It includes a summary. properties: apiVersion: nullable: true type: string kind: nullable: true type: string name: nullable: true type: string namespace: nullable: true type: string summary: properties: error: type: boolean message: items: type: string type: array state: type: string transitioning: type: boolean type: object uid: description: |- UID is a type that holds unique ID values, including UUIDs. Because we don't ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated. nullable: true type: string type: object nullable: true type: array ready: type: boolean release: description: Release is the Helm release ID nullable: true type: string resourceCounts: description: ResourceCounts contains the number of resources in each state. properties: desiredReady: description: DesiredReady is the number of resources that should be ready. type: integer missing: description: Missing is the number of missing resources. type: integer modified: description: Modified is the number of resources that have been modified. type: integer notReady: description: |- NotReady is the number of not ready resources. Resources are not ready if they do not match any other state. type: integer orphaned: description: Orphaned is the number of orphaned resources. type: integer ready: description: Ready is the number of ready resources. type: integer unknown: description: Unknown is the number of resources in an unknown state. type: integer waitApplied: description: WaitApplied is the number of resources that are waiting to be applied. type: integer type: object resources: description: |- Resources lists the metadata of resources that were deployed according to the helm release history. items: description: BundleDeploymentResource contains the metadata of a deployed resource. properties: apiVersion: nullable: true type: string createdAt: format: date-time nullable: true type: string kind: nullable: true type: string name: nullable: true type: string namespace: nullable: true type: string type: object nullable: true type: array syncGeneration: format: int64 nullable: true type: integer type: object type: object served: true storage: true subresources: status: {} --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.22.0 name: bundlenamespacemappings.fleet.cattle.io spec: group: fleet.cattle.io names: kind: BundleNamespaceMapping listKind: BundleNamespaceMappingList plural: bundlenamespacemappings singular: bundlenamespacemapping scope: Namespaced versions: - name: v1alpha1 schema: openAPIV3Schema: description: BundleNamespaceMapping maps bundles to clusters in other namespaces. properties: apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string bundleSelector: description: |- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object namespaceSelector: description: |- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic type: object served: true storage: true subresources: status: {} --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.22.0 name: bundles.fleet.cattle.io spec: group: fleet.cattle.io names: kind: Bundle listKind: BundleList plural: bundles singular: bundle scope: Namespaced versions: - additionalPrinterColumns: - jsonPath: .status.display.readyClusters name: BundleDeployments-Ready type: string - jsonPath: .status.conditions[?(@.type=="Ready")].message name: Status type: string name: v1alpha1 schema: openAPIV3Schema: description: |- Bundle contains the resources of an application and its deployment options. It will be deployed as a Helm chart to target clusters. When a GitRepo is scanned it will produce one or more bundles. Bundles are a collection of resources that get deployed to one or more cluster(s). Bundle is the fundamental deployment unit used in Fleet. The contents of a Bundle may be Kubernetes manifests, Kustomize configuration, or Helm charts. Regardless of the source the contents are dynamically rendered into a Helm chart by the agent and installed into the downstream cluster as a Helm release. properties: apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object spec: properties: allowedTargetNamespaceSelector: description: |- AllowedTargetNamespaceSelector restricts deployments to namespaces matching this selector. Propagated from GitRepoRestriction and validated by the agent on the downstream cluster. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic contentsId: description: ContentsID stores the contents id when deploying contents using an OCI registry. nullable: true type: string correctDrift: description: CorrectDrift specifies how drift correction should work. properties: enabled: description: Enabled correct drift if true. type: boolean force: description: Force helm rollback with --force option will be used if true. This will try to recreate all resources in the release. type: boolean keepFailHistory: description: KeepFailHistory keeps track of failed rollbacks in the helm history. type: boolean type: object createNamespace: description: |- CreateNamespace controls whether Fleet creates the target namespace on downstream clusters during Helm installs. When nil, the default behavior is to create the namespace (backward-compatible). Set to false by the controller when Policy requires a ServiceAccount and does not explicitly allow namespace creation. This does not affect namespaceLabels/ namespaceAnnotations patching, which is always attempted (when set) as the deployment's ServiceAccount and gated by downstream RBAC. nullable: true type: boolean defaultNamespace: description: |- DefaultNamespace is the namespace to use for resources that do not specify a namespace. This field is not used to enforce or lock down the deployment to a specific namespace. nullable: true type: string deleteCRDResources: description: DeleteCRDResources deletes CRDs. Warning! this will also delete all your Custom Resources. type: boolean deleteNamespace: description: DeleteNamespace can be used to delete the deployed namespace when removing the bundle type: boolean dependsOn: description: DependsOn refers to the bundles which must be ready before this bundle can be deployed. items: properties: acceptedStates: description: |- AcceptedStates is a list of BundleDeployment state that are considered acceptable for this dependency. If the dependency is in one of these states, it will not block the deployment of the dependent bundle. Valid Values should match the StateRank keys, except for WaitingForDependency, which is rejected: it would unblock this bundle exactly when its dependency became blocked on a dependency of its own. If not specified, default to ["Ready"]: only fully ready dependencies are accepted Example: ["Ready", "Modified"] will accept dependencies that are either ready or have drifted from their desired state. items: type: string nullable: true type: array name: description: Name of the bundle. nullable: true type: string selector: description: Selector matching bundle's labels. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic type: object nullable: true type: array diff: description: Diff can be used to ignore the modified state of objects which are amended at runtime. nullable: true properties: comparePatches: description: ComparePatches match a resource and remove fields, or the resource itself from the check for modifications. items: description: ComparePatch matches a resource and removes fields from the check for modifications. properties: apiVersion: description: APIVersion is the apiVersion of the resource to match. nullable: true type: string jsonPointers: description: |- JSONPointers ignore diffs at the given JSON pointers, e.g. /spec/replicas. Each entry must be a non-empty pointer starting with a slash; a Kubernetes-style field path such as spec.replicas addresses nothing and is rejected. Escaping is the one the JSON patch library applies, which is laxer than RFC 6901: "~0" and "~1" are read as "~" and "/", respectively, and any other "~" sequence is left as written. items: type: string nullable: true type: array kind: description: Kind is the kind of the resource to match. nullable: true type: string name: description: |- Name is the name of the resource to match. Resources are matched by exact name first and, when the name does not match exactly, by matching it as a regular expression, so it must always be a valid Go regular expression. nullable: true type: string namespace: description: Namespace is the namespace of the resource to match. nullable: true type: string operations: description: Operations remove a JSON path from the resource. items: description: |- Operation of a ComparePatch, usually: * "remove" to remove a specific path in a resource * "ignore" to remove the entire resource from checks for modifications. properties: op: description: |- Op is the operation to perform on the matched resource. It must be one of the JSON Patch operations "add", "remove", "replace" and "test", or Fleet's own "ignore", which removes the entire resource from checks for modifications. The JSON Patch operations "copy" and "move" are not supported, because an Operation has no "from" field to encode them with. Any other value, including an empty one, makes the whole patch fail to apply. nullable: true type: string path: description: |- Path is the JSON pointer the operation applies to, e.g. /spec/replicas. It must be a non-empty pointer starting with a slash; a Kubernetes-style field path such as spec.replicas addresses nothing and is rejected. It is escaped like a JSONPointers entry, which is laxer than RFC 6901. Required unless Op is "ignore", which drops the whole resource from the comparison and never reads the path. nullable: true type: string value: description: Value is usually empty. nullable: true type: string type: object nullable: true type: array type: object nullable: true type: array type: object downstreamResources: description: |- DownstreamResources points to resources to be copied into downstream clusters, from the bundle's namespace. items: description: |- DownstreamResource contains identifiers for a resource to be copied from the parent bundle's namespace to each downstream cluster. properties: kind: type: string name: type: string type: object type: array forceSyncGeneration: description: ForceSyncGeneration is used to force a redeployment format: int64 type: integer helm: description: Helm options for the deployment, like the chart name, repo and values. properties: atomic: description: Atomic sets the --atomic flag when Helm is performing an upgrade type: boolean chart: description: |- Chart can refer to any go-getter URL or OCI registry based helm chart URL. The chart will be downloaded. nullable: true type: string disableDNS: description: DisableDNS can be used to customize Helm's EnableDNS option, which Fleet sets to `true` by default. type: boolean disableDependencyUpdate: description: DisableDependencyUpdate allows skipping chart dependencies update type: boolean disablePreProcess: description: DisablePreProcess disables template processing in values type: boolean force: description: Force allows to override immutable resources. This could be dangerous. type: boolean maxHistory: description: MaxHistory limits the maximum number of revisions saved per release by Helm. type: integer preserveOnReplace: description: |- PreserveOnReplace lists fields which are kept from the live object when an object is replaced, which happens with helm.force or correctDrift.force. A replace sends the whole object, so fields set on the server after its creation (e.g. the volumeName of a bound PersistentVolumeClaim) would otherwise be cleared, which the API server may reject. A field is only copied when the deployed manifest leaves it unset, except for a list with a mergeKey (see PreservedPath). Without helm.force or correctDrift.force, this has no effect. Rules from the bundle and from matching target customizations are combined, and all rules matching an object apply, so their paths add up; identical rules are deduplicated. Changing these rules redeploys the bundle. items: description: |- PreserveOnReplaceRule matches objects and lists the fields to keep from their live version when they are replaced. properties: apiVersion: description: |- APIVersion is the apiVersion of the objects to match, e.g. v1. It must equal the apiVersion the chart renders: apps/v1beta1 does not match an object rendered as apps/v1. minLength: 1 type: string kind: description: Kind is the kind of the objects to match, e.g. PersistentVolumeClaim. minLength: 1 type: string name: description: |- Name is the name of the objects to match, exactly. It takes precedence over NameRegex: if both are set, NameRegex is ignored. Empty, with no NameRegex, matches any name. type: string nameRegex: description: |- NameRegex is an unanchored Go regular expression matching the names of the objects to match. As it is unanchored, pvc-1 also matches my-pvc-10: use ^pvc-1$, or Name, to match one name only. It is ignored, and not validated, if Name is set. type: string namespace: description: |- Namespace is the namespace of the objects to match, exactly. Empty matches any namespace. type: string paths: description: Paths are the fields to keep from the live object. items: description: |- PreservedPath is a field kept from the live object when an object is replaced. properties: mergeKey: description: |- MergeKey, if set, merges a list of objects instead of copying it only when unset: live items whose MergeKey field has a value not found in the deployed list are appended to it. It only applies to lists of objects: live items which are not objects are not merged, although a live list is still copied whole when the deployed object leaves it unset. As long as the rule exists, an item removed from the manifest is added back from the live object on every replace. E.g. with path /spec/volumes and mergeKey name, a manifest with volumes [{name: b, ...}] and a live object with volumes [{name: z}, {name: b}, {name: a}] are replaced with volumes [{name: b, ...}, {name: z}, {name: a}]: the manifest's items come first and win, then the live items whose name the manifest lacks, in live order. type: string path: description: |- Path is a JSON pointer (RFC 6901) to the field, e.g. /spec/volumeName. A "[key]" token indicates that Fleet should iterate over the items of a list, pairing each item of the manifest (object to be deployed) with the live item, based on both having the same value of the key field. E.g. /spec/containers/[name]/volumeMounts pairs containers by name and preserves the volumeMounts of each pair. A "[key]" token must follow a field and be followed by one, so lists of lists cannot be addressed, and neither can a field whose name starts with "[" and ends with "]". The live value is copied when the deployed object leaves the field unset or null, unless MergeKey is set. Helm always sets some annotations and labels, e.g. meta.helm.sh/release-name, so /metadata/annotations and /metadata/labels are never unset: use /metadata/annotations/ to keep one annotation. Paths below /status, /apiVersion, /kind, /metadata/name, /metadata/namespace, /metadata/uid, /metadata/resourceVersion, /metadata/generation, /metadata/creationTimestamp, /metadata/deletionTimestamp and /metadata/managedFields are not allowed. minLength: 2 type: string required: - path type: object minItems: 1 type: array required: - apiVersion - kind - paths type: object nullable: true type: array releaseName: description: |- ReleaseName sets a custom release name to deploy the chart as. If not specified a release name will be generated by combining the invoking GitRepo.name + GitRepo.path. maxLength: 53 nullable: true pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ type: string repo: description: Repo is the name of the HTTPS helm repo to download the chart from. nullable: true type: string skipSchemaValidation: description: SkipSchemaValidation allows skipping schema validation against the chart values type: boolean takeOwnership: description: TakeOwnership makes helm skip the check for its own annotations type: boolean templateValues: additionalProperties: type: string description: |- Template Values passed to Helm. It is possible to specify the keys and values as go template strings. Unlike .values, content of each key will be templated first, before serializing to yaml. This allows to template complex values, like ranges and maps. templateValues keys have precedence over values keys in case of conflict. nullable: true type: object timeoutSeconds: description: TimeoutSeconds is the time to wait for Helm operations. type: integer values: description: |- Values passed to Helm. It is possible to specify the keys and values as go template strings. nullable: true type: object x-kubernetes-preserve-unknown-fields: true valuesFiles: description: ValuesFiles is a list of files to load values from. items: type: string nullable: true type: array valuesFrom: description: ValuesFrom loads the values from configmaps and secrets. items: description: 'Define helm values that can come from configmap, secret or external. Credit: https://github.com/fluxcd/helm-operator/blob/0cfea875b5d44bea995abe7324819432070dfbdc/pkg/apis/helm.fluxcd.io/v1/types_helmrelease.go#L439' properties: configMapKeyRef: description: The reference to a config map with release values. nullable: true properties: key: nullable: true type: string name: description: Name of a resource in the same namespace as the referent. nullable: true type: string namespace: nullable: true type: string type: object secretKeyRef: description: The reference to a secret with release values. nullable: true properties: key: nullable: true type: string name: description: Name of a resource in the same namespace as the referent. nullable: true type: string namespace: nullable: true type: string type: object type: object nullable: true type: array version: description: Version of the chart to download nullable: true type: string waitForJobs: description: |- WaitForJobs if set and timeoutSeconds provided, will wait until all Jobs have been completed before marking the GitRepo as ready. It will wait for as long as timeoutSeconds type: boolean type: object helmOpOptions: description: |- HelmOpOptions stores the options relative to HelmOp resources Non-nil HelmOpOptions indicate that the source of resources is a Helm chart, not a git repository. nullable: true properties: helmOpCABundle: description: |- CABundle is a PEM encoded CA bundle used to validate TLS connections to the Helm registry. It is resolved by the controller (which has access to Rancher's cattle-system CA secrets, if any) and stored here so the agent can use it without requiring access to those secrets. format: byte nullable: true type: string helmOpInsecureSkipTLSVerify: description: InsecureSkipTLSverify will use insecure HTTPS to clone the helm app resource. type: boolean helmOpSecretName: description: |- SecretName stores the secret name for storing credentials when accessing a remote helm repository defined in a HelmOp resource type: string type: object ignore: description: IgnoreOptions can be used to ignore fields when monitoring the bundle. nullable: true properties: conditions: description: Conditions is a list of conditions to be ignored when monitoring the Bundle. items: additionalProperties: type: string type: object nullable: true type: array type: object keepResources: description: KeepResources can be used to keep the deployed resources when removing the bundle type: boolean kustomize: description: |- Kustomize options for the deployment, like the dir containing the kustomization.yaml file. nullable: true properties: dir: description: |- Dir points to a custom folder for kustomize resources. This folder must contain a kustomization.yaml file. nullable: true type: string type: object namespace: description: |- TargetNamespace if present will assign all resource to this namespace and if any cluster scoped resource exists the deployment will fail. nullable: true type: string namespaceAnnotations: additionalProperties: type: string description: NamespaceAnnotations are annotations that will be appended to the namespace created by Fleet. nullable: true type: object namespaceLabels: additionalProperties: type: string description: NamespaceLabels are labels that will be appended to the namespace created by Fleet. nullable: true type: object overwrites: description: |- Overwrites indicates which resources, if any, come from this bundle and overwrite another existing bundle. This flag is set internally by Fleet, and should not be altered by users. items: properties: kind: type: string name: type: string namespace: type: string type: object type: array paused: description: Paused if set to true, will stop any BundleDeployments from being updated. It will be marked as out of sync. type: boolean resources: description: |- Resources contains the resources that were read from the bundle's path. This includes the content of downloaded helm charts. items: description: BundleResource represents the content of a single resource from the bundle, like a YAML manifest. properties: content: description: The content of the resource, can be compressed. nullable: true type: string encoding: description: Encoding is either empty or "base64+gz". nullable: true type: string name: description: Name of the resource, can include the bundle's internal path. nullable: true type: string type: object nullable: true type: array rolloutStrategy: description: |- RolloutStrategy controls the rollout of bundles, by defining partitions, canaries and percentages for cluster availability. nullable: true properties: autoPartitionSize: anyOf: - type: integer - type: string description: |- A number or percentage of how to automatically partition clusters if no specific partitioning strategy is configured. default: 25% nullable: true x-kubernetes-int-or-string: true autoPartitionThreshold: description: |- AutoPartitionThreshold is the minimum number of clusters that need to be present before auto-partitioning is enabled. If the number of target clusters is less than this value, all clusters will be placed in a single partition. default: 200 nullable: true type: integer maxNew: description: |- MaxNew is the maximum number of new BundleDeployments that can be created in a single reconciliation. This limits the rate at which new deployments are staged when a bundle is first applied to many clusters. default: 50 nullable: true type: integer maxUnavailable: anyOf: - type: integer - type: string description: |- A number or percentage of clusters that can be unavailable during an update of a bundle. This follows the same basic approach as a deployment rollout strategy. Once the number of clusters meets unavailable state update will be paused. Default value is 100% which doesn't take effect on update. default: 100% nullable: true x-kubernetes-int-or-string: true maxUnavailablePartitions: anyOf: - type: integer - type: string description: |- A number or percentage of cluster partitions that can be unavailable during an update of a bundle. default: 0 nullable: true x-kubernetes-int-or-string: true partitions: description: |- A list of definitions of partitions. If any target clusters do not match the configuration they are added to partitions at the end following the autoPartitionSize. items: description: Partition defines a separate rollout strategy for a set of clusters. properties: clusterGroup: description: A cluster group name to include in this partition type: string clusterGroupSelector: description: Selector matching cluster group labels to include in this partition nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic clusterName: description: ClusterName is the name of a cluster to include in this partition type: string clusterSelector: description: Selector matching cluster labels to include in this partition properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic maxUnavailable: anyOf: - type: integer - type: string description: |- A number or percentage of clusters that can be unavailable in this partition before this partition is treated as done. default: 10% x-kubernetes-int-or-string: true name: description: A user-friendly name given to the partition used for Display (optional). nullable: true type: string type: object nullable: true type: array type: object serviceAccount: description: ServiceAccount which will be used to perform this deployment. nullable: true type: string targetCustomizationMode: default: FirstMatch description: |- TargetCustomizationMode controls how targetCustomizations from fleet.yaml are evaluated. "FirstMatch" (default) stops at the first matching entry. "AllMatches" applies all matching entries in order, merging them. enum: - FirstMatch - AllMatches type: string targetRestrictions: description: TargetRestrictions is an allow list, which controls if a bundledeployment is created for a target. items: description: |- BundleTargetRestriction is used internally by Fleet and should not be modified. It acts as an allow list, restricting BundleDeployment creation to only those clusters that are explicitly listed in the GitRepo targets. properties: clusterGroup: nullable: true type: string clusterGroupSelector: description: |- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic clusterName: nullable: true type: string clusterSelector: description: |- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic name: nullable: true type: string type: object type: array targets: description: |- Targets refer to the clusters which will be deployed to. Targets are evaluated in order and the first one to match is used. items: description: |- BundleTarget declares clusters to deploy to. Fleet will merge the BundleDeploymentOptions from customizations into this struct. properties: allowedTargetNamespaceSelector: description: |- AllowedTargetNamespaceSelector restricts deployments to namespaces matching this selector. Propagated from GitRepoRestriction and validated by the agent on the downstream cluster. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic clusterGroup: description: ClusterGroup to match a specific cluster group by name. nullable: true type: string clusterGroupSelector: description: ClusterGroupSelector is a selector to match cluster groups. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic clusterName: description: |- ClusterName to match a specific cluster by name that will be selected nullable: true type: string clusterSelector: description: |- ClusterSelector is a selector to match clusters. The structure is the standard metav1.LabelSelector format. If clusterGroupSelector or clusterGroup is specified, clusterSelector will be used only to further refine the selection after clusterGroupSelector and clusterGroup is evaluated. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic correctDrift: description: CorrectDrift specifies how drift correction should work. properties: enabled: description: Enabled correct drift if true. type: boolean force: description: Force helm rollback with --force option will be used if true. This will try to recreate all resources in the release. type: boolean keepFailHistory: description: KeepFailHistory keeps track of failed rollbacks in the helm history. type: boolean type: object createNamespace: description: |- CreateNamespace controls whether Fleet creates the target namespace on downstream clusters during Helm installs. When nil, the default behavior is to create the namespace (backward-compatible). Set to false by the controller when Policy requires a ServiceAccount and does not explicitly allow namespace creation. This does not affect namespaceLabels/ namespaceAnnotations patching, which is always attempted (when set) as the deployment's ServiceAccount and gated by downstream RBAC. nullable: true type: boolean defaultNamespace: description: |- DefaultNamespace is the namespace to use for resources that do not specify a namespace. This field is not used to enforce or lock down the deployment to a specific namespace. nullable: true type: string deleteCRDResources: description: DeleteCRDResources deletes CRDs. Warning! this will also delete all your Custom Resources. type: boolean deleteNamespace: description: DeleteNamespace can be used to delete the deployed namespace when removing the bundle type: boolean diff: description: Diff can be used to ignore the modified state of objects which are amended at runtime. nullable: true properties: comparePatches: description: ComparePatches match a resource and remove fields, or the resource itself from the check for modifications. items: description: ComparePatch matches a resource and removes fields from the check for modifications. properties: apiVersion: description: APIVersion is the apiVersion of the resource to match. nullable: true type: string jsonPointers: description: |- JSONPointers ignore diffs at the given JSON pointers, e.g. /spec/replicas. Each entry must be a non-empty pointer starting with a slash; a Kubernetes-style field path such as spec.replicas addresses nothing and is rejected. Escaping is the one the JSON patch library applies, which is laxer than RFC 6901: "~0" and "~1" are read as "~" and "/", respectively, and any other "~" sequence is left as written. items: type: string nullable: true type: array kind: description: Kind is the kind of the resource to match. nullable: true type: string name: description: |- Name is the name of the resource to match. Resources are matched by exact name first and, when the name does not match exactly, by matching it as a regular expression, so it must always be a valid Go regular expression. nullable: true type: string namespace: description: Namespace is the namespace of the resource to match. nullable: true type: string operations: description: Operations remove a JSON path from the resource. items: description: |- Operation of a ComparePatch, usually: * "remove" to remove a specific path in a resource * "ignore" to remove the entire resource from checks for modifications. properties: op: description: |- Op is the operation to perform on the matched resource. It must be one of the JSON Patch operations "add", "remove", "replace" and "test", or Fleet's own "ignore", which removes the entire resource from checks for modifications. The JSON Patch operations "copy" and "move" are not supported, because an Operation has no "from" field to encode them with. Any other value, including an empty one, makes the whole patch fail to apply. nullable: true type: string path: description: |- Path is the JSON pointer the operation applies to, e.g. /spec/replicas. It must be a non-empty pointer starting with a slash; a Kubernetes-style field path such as spec.replicas addresses nothing and is rejected. It is escaped like a JSONPointers entry, which is laxer than RFC 6901. Required unless Op is "ignore", which drops the whole resource from the comparison and never reads the path. nullable: true type: string value: description: Value is usually empty. nullable: true type: string type: object nullable: true type: array type: object nullable: true type: array type: object doNotDeploy: description: DoNotDeploy if set to true, will not deploy to this target. type: boolean downstreamResources: description: |- DownstreamResources points to resources to be copied into downstream clusters, from the bundle's namespace. items: description: |- DownstreamResource contains identifiers for a resource to be copied from the parent bundle's namespace to each downstream cluster. properties: kind: type: string name: type: string type: object type: array forceSyncGeneration: description: ForceSyncGeneration is used to force a redeployment format: int64 type: integer helm: description: Helm options for the deployment, like the chart name, repo and values. properties: atomic: description: Atomic sets the --atomic flag when Helm is performing an upgrade type: boolean chart: description: |- Chart can refer to any go-getter URL or OCI registry based helm chart URL. The chart will be downloaded. nullable: true type: string disableDNS: description: DisableDNS can be used to customize Helm's EnableDNS option, which Fleet sets to `true` by default. type: boolean disableDependencyUpdate: description: DisableDependencyUpdate allows skipping chart dependencies update type: boolean disablePreProcess: description: DisablePreProcess disables template processing in values type: boolean force: description: Force allows to override immutable resources. This could be dangerous. type: boolean maxHistory: description: MaxHistory limits the maximum number of revisions saved per release by Helm. type: integer preserveOnReplace: description: |- PreserveOnReplace lists fields which are kept from the live object when an object is replaced, which happens with helm.force or correctDrift.force. A replace sends the whole object, so fields set on the server after its creation (e.g. the volumeName of a bound PersistentVolumeClaim) would otherwise be cleared, which the API server may reject. A field is only copied when the deployed manifest leaves it unset, except for a list with a mergeKey (see PreservedPath). Without helm.force or correctDrift.force, this has no effect. Rules from the bundle and from matching target customizations are combined, and all rules matching an object apply, so their paths add up; identical rules are deduplicated. Changing these rules redeploys the bundle. items: description: |- PreserveOnReplaceRule matches objects and lists the fields to keep from their live version when they are replaced. properties: apiVersion: description: |- APIVersion is the apiVersion of the objects to match, e.g. v1. It must equal the apiVersion the chart renders: apps/v1beta1 does not match an object rendered as apps/v1. minLength: 1 type: string kind: description: Kind is the kind of the objects to match, e.g. PersistentVolumeClaim. minLength: 1 type: string name: description: |- Name is the name of the objects to match, exactly. It takes precedence over NameRegex: if both are set, NameRegex is ignored. Empty, with no NameRegex, matches any name. type: string nameRegex: description: |- NameRegex is an unanchored Go regular expression matching the names of the objects to match. As it is unanchored, pvc-1 also matches my-pvc-10: use ^pvc-1$, or Name, to match one name only. It is ignored, and not validated, if Name is set. type: string namespace: description: |- Namespace is the namespace of the objects to match, exactly. Empty matches any namespace. type: string paths: description: Paths are the fields to keep from the live object. items: description: |- PreservedPath is a field kept from the live object when an object is replaced. properties: mergeKey: description: |- MergeKey, if set, merges a list of objects instead of copying it only when unset: live items whose MergeKey field has a value not found in the deployed list are appended to it. It only applies to lists of objects: live items which are not objects are not merged, although a live list is still copied whole when the deployed object leaves it unset. As long as the rule exists, an item removed from the manifest is added back from the live object on every replace. E.g. with path /spec/volumes and mergeKey name, a manifest with volumes [{name: b, ...}] and a live object with volumes [{name: z}, {name: b}, {name: a}] are replaced with volumes [{name: b, ...}, {name: z}, {name: a}]: the manifest's items come first and win, then the live items whose name the manifest lacks, in live order. type: string path: description: |- Path is a JSON pointer (RFC 6901) to the field, e.g. /spec/volumeName. A "[key]" token indicates that Fleet should iterate over the items of a list, pairing each item of the manifest (object to be deployed) with the live item, based on both having the same value of the key field. E.g. /spec/containers/[name]/volumeMounts pairs containers by name and preserves the volumeMounts of each pair. A "[key]" token must follow a field and be followed by one, so lists of lists cannot be addressed, and neither can a field whose name starts with "[" and ends with "]". The live value is copied when the deployed object leaves the field unset or null, unless MergeKey is set. Helm always sets some annotations and labels, e.g. meta.helm.sh/release-name, so /metadata/annotations and /metadata/labels are never unset: use /metadata/annotations/ to keep one annotation. Paths below /status, /apiVersion, /kind, /metadata/name, /metadata/namespace, /metadata/uid, /metadata/resourceVersion, /metadata/generation, /metadata/creationTimestamp, /metadata/deletionTimestamp and /metadata/managedFields are not allowed. minLength: 2 type: string required: - path type: object minItems: 1 type: array required: - apiVersion - kind - paths type: object nullable: true type: array releaseName: description: |- ReleaseName sets a custom release name to deploy the chart as. If not specified a release name will be generated by combining the invoking GitRepo.name + GitRepo.path. maxLength: 53 nullable: true pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ type: string repo: description: Repo is the name of the HTTPS helm repo to download the chart from. nullable: true type: string skipSchemaValidation: description: SkipSchemaValidation allows skipping schema validation against the chart values type: boolean takeOwnership: description: TakeOwnership makes helm skip the check for its own annotations type: boolean templateValues: additionalProperties: type: string description: |- Template Values passed to Helm. It is possible to specify the keys and values as go template strings. Unlike .values, content of each key will be templated first, before serializing to yaml. This allows to template complex values, like ranges and maps. templateValues keys have precedence over values keys in case of conflict. nullable: true type: object timeoutSeconds: description: TimeoutSeconds is the time to wait for Helm operations. type: integer values: description: |- Values passed to Helm. It is possible to specify the keys and values as go template strings. nullable: true type: object x-kubernetes-preserve-unknown-fields: true valuesFiles: description: ValuesFiles is a list of files to load values from. items: type: string nullable: true type: array valuesFrom: description: ValuesFrom loads the values from configmaps and secrets. items: description: 'Define helm values that can come from configmap, secret or external. Credit: https://github.com/fluxcd/helm-operator/blob/0cfea875b5d44bea995abe7324819432070dfbdc/pkg/apis/helm.fluxcd.io/v1/types_helmrelease.go#L439' properties: configMapKeyRef: description: The reference to a config map with release values. nullable: true properties: key: nullable: true type: string name: description: Name of a resource in the same namespace as the referent. nullable: true type: string namespace: nullable: true type: string type: object secretKeyRef: description: The reference to a secret with release values. nullable: true properties: key: nullable: true type: string name: description: Name of a resource in the same namespace as the referent. nullable: true type: string namespace: nullable: true type: string type: object type: object nullable: true type: array version: description: Version of the chart to download nullable: true type: string waitForJobs: description: |- WaitForJobs if set and timeoutSeconds provided, will wait until all Jobs have been completed before marking the GitRepo as ready. It will wait for as long as timeoutSeconds type: boolean type: object ignore: description: IgnoreOptions can be used to ignore fields when monitoring the bundle. nullable: true properties: conditions: description: Conditions is a list of conditions to be ignored when monitoring the Bundle. items: additionalProperties: type: string type: object nullable: true type: array type: object keepResources: description: KeepResources can be used to keep the deployed resources when removing the bundle type: boolean kustomize: description: |- Kustomize options for the deployment, like the dir containing the kustomization.yaml file. nullable: true properties: dir: description: |- Dir points to a custom folder for kustomize resources. This folder must contain a kustomization.yaml file. nullable: true type: string type: object name: description: |- Name of target. This value is largely for display and logging. If not specified a default name of the format "target000" will be used type: string namespace: description: |- TargetNamespace if present will assign all resource to this namespace and if any cluster scoped resource exists the deployment will fail. nullable: true type: string namespaceAnnotations: additionalProperties: type: string description: NamespaceAnnotations are annotations that will be appended to the namespace created by Fleet. nullable: true type: object namespaceLabels: additionalProperties: type: string description: NamespaceLabels are labels that will be appended to the namespace created by Fleet. nullable: true type: object overwrites: description: |- Overwrites indicates which resources, if any, come from this bundle and overwrite another existing bundle. This flag is set internally by Fleet, and should not be altered by users. items: properties: kind: type: string name: type: string namespace: type: string type: object type: array serviceAccount: description: ServiceAccount which will be used to perform this deployment. nullable: true type: string yaml: description: |- YAML options, if using raw YAML these are names that map to overlays/{name} files that will be used to replace or patch a resource. nullable: true properties: overlays: description: |- Overlays is a list of names that maps to folders in "overlays/". If you wish to customize the file ./subdir/resource.yaml then a file ./overlays/myoverlay/subdir/resource.yaml will replace the base file. A file named ./overlays/myoverlay/subdir/resource_patch.yaml will patch the base file. items: type: string nullable: true type: array type: object type: object type: array valuesHash: description: |- ValuesHash is the hash of the values used to render the Helm chart. It changes when any values from fleet.yaml, values from ValuesFiles or values from target customization changes. type: string yaml: description: |- YAML options, if using raw YAML these are names that map to overlays/{name} files that will be used to replace or patch a resource. nullable: true properties: overlays: description: |- Overlays is a list of names that maps to folders in "overlays/". If you wish to customize the file ./subdir/resource.yaml then a file ./overlays/myoverlay/subdir/resource.yaml will replace the base file. A file named ./overlays/myoverlay/subdir/resource_patch.yaml will patch the base file. items: type: string nullable: true type: array type: object type: object status: properties: conditions: description: |- Conditions is a list of Wrangler conditions that describe the state of the bundle. items: properties: lastTransitionTime: description: Last time the condition transitioned from one status to another. type: string lastUpdateTime: description: The last time this condition was updated. type: string message: description: Human-readable message indicating details about last transition type: string reason: description: The reason for the condition's last transition. type: string status: description: Status of the condition, one of True, False, Unknown. type: string type: description: Type of cluster condition. type: string required: - status - type type: object type: array display: description: |- Display contains the number of ready, desiredready clusters and a summary state for the bundle's resources. properties: readyClusters: description: |- ReadyClusters is a string in the form "%d/%d", that describes the number of clusters that are ready vs. the number of clusters desired to be ready. nullable: true type: string state: description: State is a summary state for the bundle, calculated over the non-ready resources. nullable: true type: string type: object maxUnavailable: description: |- MaxUnavailable is the maximum number of unavailable deployments. See rollout configuration. type: integer maxUnavailablePartitions: description: |- MaxUnavailablePartitions is the maximum number of unavailable partitions. The rollout configuration defines a maximum number or percentage of unavailable partitions. type: integer newlyCreated: description: |- NewlyCreated is the number of bundle deployments that have been created, not updated. type: integer observedGeneration: description: ObservedGeneration is the current generation of the bundle. format: int64 type: integer ociReference: description: |- OCIReference is the OCI reference used to store contents, this is only for informational purposes. type: string partitions: description: PartitionStatus lists the status of each partition. items: description: PartitionStatus is the status of a single rollout partition. properties: count: description: Count is the number of clusters in the partition. type: integer maxUnavailable: description: MaxUnavailable is the maximum number of unavailable clusters in the partition. type: integer name: description: Name is the name of the partition. nullable: true type: string summary: description: Summary is a summary state for the partition, calculated over its non-ready resources. properties: desiredReady: description: |- DesiredReady is the number of bundle deployments that should be ready. type: integer errApplied: description: |- ErrApplied is the number of bundle deployments that have been synced from the Fleet controller and the downstream cluster, but with some errors when deploying the bundle. type: integer modified: description: |- Modified is the number of bundle deployments that have been deployed and for which all resources are ready, but where some changes from the Git repository have not yet been synced. type: integer nonReadyResources: description: |- NonReadyClusters is a list of states, which is filled for a bundle that is not ready. items: description: |- NonReadyResource contains information about a bundle that is not ready for a given state like "ErrApplied". It contains a list of non-ready or modified resources and their states. properties: bundleState: description: State is the state of the resource, like e.g. "NotReady" or "ErrApplied". nullable: true type: string message: description: Message contains information why the bundle is not ready. nullable: true type: string modifiedStatus: description: ModifiedStatus lists the state for each modified resource. items: description: |- ModifiedStatus is used to report the status of a resource that is modified. It indicates if the modification was a create, a delete or a patch. properties: apiVersion: nullable: true type: string delete: type: boolean exist: description: Exist is true if the resource exists but is not owned by us. This can happen if a resource was adopted by another bundle whereas the first bundle still exists and due to that reports that it does not own it. type: boolean kind: nullable: true type: string missing: type: boolean name: nullable: true type: string namespace: nullable: true type: string patch: nullable: true type: string type: object nullable: true type: array name: description: Name is the name of the resource. nullable: true type: string nonReadyStatus: description: NonReadyStatus lists the state for each non-ready resource. items: description: NonReadyStatus is used to report the status of a resource that is not ready. It includes a summary. properties: apiVersion: nullable: true type: string kind: nullable: true type: string name: nullable: true type: string namespace: nullable: true type: string summary: properties: error: type: boolean message: items: type: string type: array state: type: string transitioning: type: boolean type: object uid: description: |- UID is a type that holds unique ID values, including UUIDs. Because we don't ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated. nullable: true type: string type: object nullable: true type: array type: object nullable: true type: array notReady: description: |- NotReady is the number of bundle deployments that have been deployed where some resources are not ready. type: integer outOfSync: description: |- OutOfSync is the number of bundle deployments that have been synced from Fleet controller, but not yet by the downstream agent. type: integer pending: description: |- Pending is the number of bundle deployments that are being processed by Fleet controller. type: integer ready: description: |- Ready is the number of bundle deployments that have been deployed where all resources are ready. type: integer waitApplied: description: |- WaitApplied is the number of bundle deployments that have been synced from Fleet controller and downstream cluster, but are waiting to be deployed. type: integer waitingForDependency: description: |- WaitingForDependency is the number of bundle deployments which are not deployed because at least one of the bundles they depend on has not reached an accepted state. type: integer type: object unavailable: description: Unavailable is the number of unavailable clusters in the partition. type: integer type: object type: array resourceKey: description: |- ResourceKey lists resources, which will likely be deployed. The actual list of resources on a cluster might differ, depending on the helm chart, value templating, etc.. (deprecated to reduce bundle size) items: description: ResourceKey lists resources, which will likely be deployed. properties: apiVersion: description: APIVersion is the k8s api version of the resource. nullable: true type: string kind: description: Kind is the k8s api kind of the resource. nullable: true type: string name: description: Name is the name of the resource. nullable: true type: string namespace: description: Namespace is the namespace of the resource. nullable: true type: string type: object nullable: true type: array resourcesSha256Sum: description: ResourcesSHA256Sum corresponds to the JSON serialization of the .Spec.Resources field type: string summary: description: |- Summary contains the number of bundle deployments in each state and a list of non-ready resources. properties: desiredReady: description: |- DesiredReady is the number of bundle deployments that should be ready. type: integer errApplied: description: |- ErrApplied is the number of bundle deployments that have been synced from the Fleet controller and the downstream cluster, but with some errors when deploying the bundle. type: integer modified: description: |- Modified is the number of bundle deployments that have been deployed and for which all resources are ready, but where some changes from the Git repository have not yet been synced. type: integer nonReadyResources: description: |- NonReadyClusters is a list of states, which is filled for a bundle that is not ready. items: description: |- NonReadyResource contains information about a bundle that is not ready for a given state like "ErrApplied". It contains a list of non-ready or modified resources and their states. properties: bundleState: description: State is the state of the resource, like e.g. "NotReady" or "ErrApplied". nullable: true type: string message: description: Message contains information why the bundle is not ready. nullable: true type: string modifiedStatus: description: ModifiedStatus lists the state for each modified resource. items: description: |- ModifiedStatus is used to report the status of a resource that is modified. It indicates if the modification was a create, a delete or a patch. properties: apiVersion: nullable: true type: string delete: type: boolean exist: description: Exist is true if the resource exists but is not owned by us. This can happen if a resource was adopted by another bundle whereas the first bundle still exists and due to that reports that it does not own it. type: boolean kind: nullable: true type: string missing: type: boolean name: nullable: true type: string namespace: nullable: true type: string patch: nullable: true type: string type: object nullable: true type: array name: description: Name is the name of the resource. nullable: true type: string nonReadyStatus: description: NonReadyStatus lists the state for each non-ready resource. items: description: NonReadyStatus is used to report the status of a resource that is not ready. It includes a summary. properties: apiVersion: nullable: true type: string kind: nullable: true type: string name: nullable: true type: string namespace: nullable: true type: string summary: properties: error: type: boolean message: items: type: string type: array state: type: string transitioning: type: boolean type: object uid: description: |- UID is a type that holds unique ID values, including UUIDs. Because we don't ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated. nullable: true type: string type: object nullable: true type: array type: object nullable: true type: array notReady: description: |- NotReady is the number of bundle deployments that have been deployed where some resources are not ready. type: integer outOfSync: description: |- OutOfSync is the number of bundle deployments that have been synced from Fleet controller, but not yet by the downstream agent. type: integer pending: description: |- Pending is the number of bundle deployments that are being processed by Fleet controller. type: integer ready: description: |- Ready is the number of bundle deployments that have been deployed where all resources are ready. type: integer waitApplied: description: |- WaitApplied is the number of bundle deployments that have been synced from Fleet controller and downstream cluster, but are waiting to be deployed. type: integer waitingForDependency: description: |- WaitingForDependency is the number of bundle deployments which are not deployed because at least one of the bundles they depend on has not reached an accepted state. type: integer type: object unavailable: description: |- Unavailable is the number of bundle deployments that are not ready or where the AppliedDeploymentID in the status does not match the DeploymentID from the spec. type: integer unavailablePartitions: description: UnavailablePartitions is the number of unavailable partitions. type: integer type: object type: object served: true storage: true subresources: status: {} --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.22.0 name: clustergroups.fleet.cattle.io spec: group: fleet.cattle.io names: categories: - fleet kind: ClusterGroup listKind: ClusterGroupList plural: clustergroups singular: clustergroup scope: Namespaced versions: - additionalPrinterColumns: - jsonPath: .status.display.readyClusters name: Clusters-Ready type: string - jsonPath: .status.display.readyBundles name: Bundles-Ready type: string - jsonPath: .status.conditions[?(@.type=="Ready")].message name: Status type: string name: v1alpha1 schema: openAPIV3Schema: description: ClusterGroup is a re-usable selector to target a group of clusters. properties: apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object spec: properties: selector: description: Selector is a label selector, used to select clusters for this group. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic type: object status: properties: clusterCount: description: ClusterCount is the number of clusters in the cluster group. type: integer conditions: description: Conditions is a list of conditions and their statuses for the cluster group. items: properties: lastTransitionTime: description: Last time the condition transitioned from one status to another. type: string lastUpdateTime: description: The last time this condition was updated. type: string message: description: Human-readable message indicating details about last transition type: string reason: description: The reason for the condition's last transition. type: string status: description: Status of the condition, one of True, False, Unknown. type: string type: description: Type of cluster condition. type: string required: - status - type type: object type: array display: description: |- Display contains the number of ready, desiredready clusters and a summary state for the bundle's resources. properties: readyBundles: description: |- ReadyBundles is a string in the form "%d/%d", that describes the number of bundles that are ready vs. the number of bundles desired to be ready. nullable: true type: string readyClusters: description: |- ReadyClusters is a string in the form "%d/%d", that describes the number of clusters that are ready vs. the number of clusters desired to be ready. nullable: true type: string state: description: |- State is a summary state for the cluster group, showing "NotReady" if there are non-ready resources. nullable: true type: string type: object nonReadyClusterCount: description: NonReadyClusterCount is the number of clusters that are not ready. type: integer nonReadyClusters: description: NonReadyClusters is a list of cluster names that are not ready. items: type: string nullable: true type: array resourceCounts: description: |- ResourceCounts contains the number of resources in each state over all bundles in the cluster group. properties: desiredReady: description: DesiredReady is the number of resources that should be ready. type: integer missing: description: Missing is the number of missing resources. type: integer modified: description: Modified is the number of resources that have been modified. type: integer notReady: description: |- NotReady is the number of not ready resources. Resources are not ready if they do not match any other state. type: integer orphaned: description: Orphaned is the number of orphaned resources. type: integer ready: description: Ready is the number of ready resources. type: integer unknown: description: Unknown is the number of resources in an unknown state. type: integer waitApplied: description: WaitApplied is the number of resources that are waiting to be applied. type: integer type: object summary: description: |- Summary is a summary of the bundle deployments and their resources in the cluster group. properties: desiredReady: description: |- DesiredReady is the number of bundle deployments that should be ready. type: integer errApplied: description: |- ErrApplied is the number of bundle deployments that have been synced from the Fleet controller and the downstream cluster, but with some errors when deploying the bundle. type: integer modified: description: |- Modified is the number of bundle deployments that have been deployed and for which all resources are ready, but where some changes from the Git repository have not yet been synced. type: integer nonReadyResources: description: |- NonReadyClusters is a list of states, which is filled for a bundle that is not ready. items: description: |- NonReadyResource contains information about a bundle that is not ready for a given state like "ErrApplied". It contains a list of non-ready or modified resources and their states. properties: bundleState: description: State is the state of the resource, like e.g. "NotReady" or "ErrApplied". nullable: true type: string message: description: Message contains information why the bundle is not ready. nullable: true type: string modifiedStatus: description: ModifiedStatus lists the state for each modified resource. items: description: |- ModifiedStatus is used to report the status of a resource that is modified. It indicates if the modification was a create, a delete or a patch. properties: apiVersion: nullable: true type: string delete: type: boolean exist: description: Exist is true if the resource exists but is not owned by us. This can happen if a resource was adopted by another bundle whereas the first bundle still exists and due to that reports that it does not own it. type: boolean kind: nullable: true type: string missing: type: boolean name: nullable: true type: string namespace: nullable: true type: string patch: nullable: true type: string type: object nullable: true type: array name: description: Name is the name of the resource. nullable: true type: string nonReadyStatus: description: NonReadyStatus lists the state for each non-ready resource. items: description: NonReadyStatus is used to report the status of a resource that is not ready. It includes a summary. properties: apiVersion: nullable: true type: string kind: nullable: true type: string name: nullable: true type: string namespace: nullable: true type: string summary: properties: error: type: boolean message: items: type: string type: array state: type: string transitioning: type: boolean type: object uid: description: |- UID is a type that holds unique ID values, including UUIDs. Because we don't ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated. nullable: true type: string type: object nullable: true type: array type: object nullable: true type: array notReady: description: |- NotReady is the number of bundle deployments that have been deployed where some resources are not ready. type: integer outOfSync: description: |- OutOfSync is the number of bundle deployments that have been synced from Fleet controller, but not yet by the downstream agent. type: integer pending: description: |- Pending is the number of bundle deployments that are being processed by Fleet controller. type: integer ready: description: |- Ready is the number of bundle deployments that have been deployed where all resources are ready. type: integer waitApplied: description: |- WaitApplied is the number of bundle deployments that have been synced from Fleet controller and downstream cluster, but are waiting to be deployed. type: integer waitingForDependency: description: |- WaitingForDependency is the number of bundle deployments which are not deployed because at least one of the bundles they depend on has not reached an accepted state. type: integer type: object type: object type: object served: true storage: true subresources: status: {} --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.22.0 name: clusterregistrations.fleet.cattle.io spec: group: fleet.cattle.io names: kind: ClusterRegistration listKind: ClusterRegistrationList plural: clusterregistrations singular: clusterregistration scope: Namespaced versions: - additionalPrinterColumns: - jsonPath: .status.clusterName name: Cluster-Name type: string - jsonPath: .spec.clusterLabels name: Labels type: string name: v1alpha1 schema: openAPIV3Schema: description: ClusterRegistration is used internally by Fleet and should not be used directly. properties: apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object spec: properties: clientID: description: |- ClientID is a unique string that will identify the cluster. The agent either uses the configured ID or the kubeSystem.UID. nullable: true type: string clientRandom: description: |- ClientRandom is a random string that the agent generates. When fleet-controller grants a registration, it creates a registration secret with this string in the name. nullable: true type: string clusterLabels: additionalProperties: type: string description: ClusterLabels are copied to the cluster resource during the registration. nullable: true type: object type: object status: properties: clusterName: description: |- ClusterName is only set after the registration is being processed by fleet-controller. nullable: true type: string granted: description: |- Granted is set to true, if the request service account is present and its token secret exists. This happens directly before creating the registration secret, roles and rolebindings. type: boolean type: object type: object served: true storage: true subresources: status: {} --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.22.0 name: clusterregistrationtokens.fleet.cattle.io spec: group: fleet.cattle.io names: kind: ClusterRegistrationToken listKind: ClusterRegistrationTokenList plural: clusterregistrationtokens singular: clusterregistrationtoken scope: Namespaced versions: - additionalPrinterColumns: - jsonPath: .status.secretName name: Secret-Name type: string name: v1alpha1 schema: openAPIV3Schema: description: ClusterRegistrationToken is used by agents to register a new cluster. properties: apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object spec: properties: ttl: description: |- TTL is the time to live for the token. It is used to calculate the expiration time. If the token expires, it will be deleted. maxLength: 32 minLength: 1 nullable: true type: string x-kubernetes-validations: - message: must be a valid Go duration using units ns, us, µs, ms, s, m, h (e.g. 15s, 5m, 2h, 1h30m); units like d (days) or w (weeks) are not supported rule: self == '0' || (self.matches('^([0-9]+([.][0-9]+)?(ns|us|µs|ms|s|m|h))+$') && duration(self) <= duration('2562047h')) type: object status: properties: expires: description: Expires is the time when the token expires. format: date-time type: string secretName: description: SecretName is the name of the secret containing the token. nullable: true type: string type: object type: object served: true storage: true subresources: status: {} --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.22.0 name: clusters.fleet.cattle.io spec: group: fleet.cattle.io names: kind: Cluster listKind: ClusterList plural: clusters singular: cluster scope: Namespaced versions: - additionalPrinterColumns: - jsonPath: .status.display.readyBundles name: Bundles-Ready type: string - jsonPath: .status.agent.lastSeen name: Last-Seen type: string - jsonPath: .status.conditions[?(@.type=="Ready")].message name: Status type: string name: v1alpha1 schema: openAPIV3Schema: description: |- Cluster corresponds to a Kubernetes cluster. Fleet deploys bundles to targeted clusters. Clusters to which Fleet deploys manifests are referred to as downstream clusters. In the single cluster use case, the Fleet Kubernetes cluster is both the manager and downstream cluster at the same time. properties: apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object spec: properties: agentAffinity: description: |- AgentAffinity overrides the default affinity for the cluster's agent deployment. If this value is nil the default affinity is used. nullable: true properties: nodeAffinity: description: Describes node affinity scheduling rules for the pod. properties: preferredDuringSchedulingIgnoredDuringExecution: description: |- The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. items: description: |- An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). properties: preference: description: A node selector term, associated with the corresponding weight. properties: matchExpressions: description: A list of node selector requirements by node's labels. items: description: |- A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: |- Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: |- An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchFields: description: A list of node selector requirements by node's fields. items: description: |- A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: |- Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: |- An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic type: object x-kubernetes-map-type: atomic weight: description: Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. format: int32 type: integer required: - preference - weight type: object type: array x-kubernetes-list-type: atomic requiredDuringSchedulingIgnoredDuringExecution: description: |- If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. properties: nodeSelectorTerms: description: Required. A list of node selector terms. The terms are ORed. items: description: |- A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. properties: matchExpressions: description: A list of node selector requirements by node's labels. items: description: |- A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: |- Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: |- An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchFields: description: A list of node selector requirements by node's fields. items: description: |- A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: |- Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: |- An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic type: object x-kubernetes-map-type: atomic type: array x-kubernetes-list-type: atomic required: - nodeSelectorTerms type: object x-kubernetes-map-type: atomic type: object podAffinity: description: Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). properties: preferredDuringSchedulingIgnoredDuringExecution: description: |- The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. items: description: The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) properties: podAffinityTerm: description: Required. A pod affinity term, associated with the corresponding weight. properties: labelSelector: description: |- A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic matchLabelKeys: description: |- MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. items: type: string type: array x-kubernetes-list-type: atomic mismatchLabelKeys: description: |- MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. items: type: string type: array x-kubernetes-list-type: atomic namespaceSelector: description: |- A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic namespaces: description: |- namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array x-kubernetes-list-type: atomic topologyKey: description: |- This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object weight: description: |- weight associated with matching the corresponding podAffinityTerm, in the range 1-100. format: int32 type: integer required: - podAffinityTerm - weight type: object type: array x-kubernetes-list-type: atomic requiredDuringSchedulingIgnoredDuringExecution: description: |- If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. items: description: |- Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running properties: labelSelector: description: |- A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic matchLabelKeys: description: |- MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. items: type: string type: array x-kubernetes-list-type: atomic mismatchLabelKeys: description: |- MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. items: type: string type: array x-kubernetes-list-type: atomic namespaceSelector: description: |- A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic namespaces: description: |- namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array x-kubernetes-list-type: atomic topologyKey: description: |- This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object type: array x-kubernetes-list-type: atomic type: object podAntiAffinity: description: Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). properties: preferredDuringSchedulingIgnoredDuringExecution: description: |- The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. items: description: The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) properties: podAffinityTerm: description: Required. A pod affinity term, associated with the corresponding weight. properties: labelSelector: description: |- A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic matchLabelKeys: description: |- MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. items: type: string type: array x-kubernetes-list-type: atomic mismatchLabelKeys: description: |- MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. items: type: string type: array x-kubernetes-list-type: atomic namespaceSelector: description: |- A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic namespaces: description: |- namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array x-kubernetes-list-type: atomic topologyKey: description: |- This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object weight: description: |- weight associated with matching the corresponding podAffinityTerm, in the range 1-100. format: int32 type: integer required: - podAffinityTerm - weight type: object type: array x-kubernetes-list-type: atomic requiredDuringSchedulingIgnoredDuringExecution: description: |- If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. items: description: |- Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running properties: labelSelector: description: |- A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic matchLabelKeys: description: |- MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. items: type: string type: array x-kubernetes-list-type: atomic mismatchLabelKeys: description: |- MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. items: type: string type: array x-kubernetes-list-type: atomic namespaceSelector: description: |- A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic namespaces: description: |- namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array x-kubernetes-list-type: atomic topologyKey: description: |- This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object type: array x-kubernetes-list-type: atomic type: object type: object agentEnvVars: description: AgentEnvVars are extra environment variables to be added to the agent deployment. items: description: EnvVar represents an environment variable present in a Container. properties: name: description: |- Name of the environment variable. May consist of any printable ASCII characters except '='. type: string value: description: |- Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". type: string valueFrom: description: Source for the environment variable's value. Cannot be used if value is not empty. properties: configMapKeyRef: description: Selects a key of a ConfigMap. properties: key: description: |- The key to select from the ConfigMap's Data field. Keys in the BinaryData field are not currently propagated to container env vars. type: string name: default: "" description: |- Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: description: Specify whether the ConfigMap or its key must be defined type: boolean required: - key type: object x-kubernetes-map-type: atomic fieldRef: description: |- Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. properties: apiVersion: description: Version of the schema the FieldPath is written in terms of, defaults to "v1". type: string fieldPath: description: Path of the field to select in the specified API version. type: string required: - fieldPath type: object x-kubernetes-map-type: atomic fileKeyRef: description: |- FileKeyRef selects a key of the env file. Requires the EnvFiles feature gate to be enabled. properties: key: description: |- The key within the env file. An invalid key will prevent the pod from starting. The keys defined within a source may consist of any printable ASCII characters except '='. During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters. type: string optional: default: false description: |- Specify whether the file or its key must be defined. If the file or key does not exist, then the env var is not published. If optional is set to true and the specified key does not exist, the environment variable will not be set in the Pod's containers. If optional is set to false and the specified key does not exist, an error will be returned during Pod creation. type: boolean path: description: |- The path within the volume from which to select the file. Must be relative and may not contain the '..' path or start with '..'. type: string volumeName: description: The name of the volume mount containing the env file. type: string required: - key - path - volumeName type: object x-kubernetes-map-type: atomic resourceFieldRef: description: |- Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. properties: containerName: description: 'Container name: required for volumes, optional for env vars' type: string divisor: anyOf: - type: integer - type: string description: Specifies the output format of the exposed resources, defaults to "1" pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true resource: description: 'Required: resource to select' type: string required: - resource type: object x-kubernetes-map-type: atomic secretKeyRef: description: Selects a key of a secret in the pod's namespace properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: default: "" description: |- Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string optional: description: Specify whether the Secret or its key must be defined type: boolean required: - key type: object x-kubernetes-map-type: atomic type: object required: - name type: object nullable: true type: array agentNamespace: description: AgentNamespace defaults to the system namespace, e.g. cattle-fleet-system. nullable: true type: string agentPullSecrets: description: |- AgentPullSecrets references image pull secrets to be used by the Fleet agent deployment on this cluster. If set, it overrides any global image pull secrets set as values in the Fleet chart, and Fleet will not propagate/copy them, as Rancher would then be expected to handle that propagation. items: description: |- LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. properties: name: default: "" description: |- Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string type: object x-kubernetes-map-type: atomic nullable: true type: array agentResources: description: AgentResources sets the resources for the cluster's agent deployment. nullable: true properties: claims: description: |- Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This field depends on the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. items: description: ResourceClaim references one entry in PodSpec.ResourceClaims. properties: name: description: |- Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. type: string request: description: |- Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request. type: string required: - name type: object type: array x-kubernetes-list-map-keys: - name x-kubernetes-list-type: map 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: |- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ 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: |- Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ type: object type: object agentSchedulingCustomization: nullable: true properties: podDisruptionBudget: properties: maxUnavailable: type: string minAvailable: type: string type: object priorityClass: properties: preemptionPolicy: description: PreemptionPolicy describes a policy for if/when to preempt a pod. type: string value: type: integer type: object type: object agentTolerations: description: AgentTolerations defines an extra set of Tolerations to be added to the Agent deployment. items: description: |- The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . properties: effect: description: |- Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. type: string key: description: |- Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. type: string operator: description: |- Operator represents a key's relationship to the value. Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators). type: string tolerationSeconds: description: |- TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. format: int64 type: integer value: description: |- Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. type: string type: object nullable: true type: array clientID: description: |- ClientID is a unique string that will identify the cluster. It can either be predefined, or generated when importing the cluster. nullable: true type: string hostNetwork: description: |- HostNetwork sets the agent Deployment to use hostNetwork: true setting. Allows for provisioning of network related bundles (CNI configuration). nullable: true type: boolean kubeConfigSecret: description: |- KubeConfigSecret is the name of the secret containing the kubeconfig for the downstream cluster. It can optionally contain a APIServerURL and CA to override the values in the fleet-controller's configmap. nullable: true type: string kubeConfigSecretNamespace: description: |- KubeConfigSecretNamespace is the namespace of the secret containing the kubeconfig for the downstream cluster. If unset, it will be assumed the secret can be found in the namespace that the Cluster object resides within. A secret in a different namespace is only used if it carries the label fleet.cattle.io/kubeconfig-referenceable-from set to the Cluster's namespace, or, if the fleet-controller setting allowUnlabeledKubeConfigSecretNamespaces is enabled, if that label is missing or empty and the secret is in one of Fleet's well-known namespaces. nullable: true type: string paused: description: Paused if set to true, will stop any BundleDeployments from being updated. type: boolean privateRepoURL: description: PrivateRepoURL prefixes the image name and overrides a global repo URL from the agents config. nullable: true type: string redeployAgentGeneration: description: RedeployAgentGeneration can be used to force redeploying the agent. format: int64 type: integer templateValues: description: TemplateValues defines a cluster specific mapping of values to be sent to fleet.yaml values templating. nullable: true type: object x-kubernetes-preserve-unknown-fields: true type: object status: properties: activeSchedule: description: |- ActiveSchedule specifies if the cluster is in schedule, which means BundleDeployments can be updated and deployed. If ActiveSchedule is set to false and Scheduled is set to true BundleDeployments are not updated nor deployed. type: boolean agent: description: AgentStatus contains information about the agent. properties: lastSeen: description: |- LastSeen is the last time the agent checked in to update the status of the cluster resource. format: date-time nullable: true type: string namespace: description: Namespace is the namespace of the agent deployment, e.g. "cattle-fleet-system". nullable: true type: string version: description: Version is the agent's version as reported by the running agent binary. nullable: true type: string type: object agentAffinityHash: description: |- AgentAffinityHash is a hash of the agent's affinity configuration, used to detect changes. type: string agentConfigChanged: description: |- AgentConfigChanged is set to true if any of the agent configuration changed, like the API server URL or CA. Setting it to true will trigger a re-import of the cluster. type: boolean agentDeployedGeneration: description: AgentDeployedGeneration is the generation of the agent that is currently deployed. format: int64 nullable: true type: integer agentEnvVarsHash: description: AgentEnvVarsHash is a hash of the agent's env vars, used to detect changes. nullable: true type: string agentHostNetwork: description: AgentHostNetwork defines observed state of spec.hostNetwork setting that is currently used. nullable: true type: boolean agentMigrated: description: |- AgentMigrated is always set to true after importing a cluster. If false, it will trigger a migration. Old agents don't have this in their status. type: boolean agentNamespaceMigrated: description: |- AgentNamespaceMigrated is always set to true after importing a cluster. If false, it will trigger a migration. Old Fleet agents don't have this in their status. type: boolean agentPrivateRepoURL: description: AgentPrivateRepoURL is the private repo URL for the agent that is currently used. nullable: true type: string agentPullSecretsHash: description: |- AgentPullSecretsHash is a hash of the agent's image pull secret configuration, used to detect changes. nullable: true type: string agentResourcesHash: description: |- AgentResourcesHash is a hash of the agent's resources configuration, used to detect changes. nullable: true type: string agentSchedulingCustomizationHash: type: string agentTLSMode: description: |- AgentTLSMode supports two values: `system-store` and `strict`. If set to `system-store`, instructs the agent to trust CA bundles from the operating system's store. If set to `strict`, then the agent shall only connect to a server which uses the exact CA configured when creating/updating the agent. nullable: true type: string agentTolerationsHash: description: |- AgentTolerationsHash is a hash of the agent's tolerations configuration, used to detect changes. nullable: true type: string apiServerCAHash: description: APIServerCAHash is a hash of the upstream API server CA, used to detect changes. nullable: true type: string apiServerURL: description: |- APIServerURL is the currently used URL of the API server that the cluster uses to connect to upstream. nullable: true type: string cattleNamespaceMigrated: description: |- CattleNamespaceMigrated is always set to true after importing a cluster. If false, it will trigger a migration. Old Fleet agents, don't have this in their status. type: boolean conditions: items: properties: lastTransitionTime: description: Last time the condition transitioned from one status to another. type: string lastUpdateTime: description: The last time this condition was updated. type: string message: description: Human-readable message indicating details about last transition type: string reason: description: The reason for the condition's last transition. type: string status: description: Status of the condition, one of True, False, Unknown. type: string type: description: Type of cluster condition. type: string required: - status - type type: object type: array desiredReadyGitRepos: description: |- DesiredReadyGitRepos is the number of gitrepos for this cluster that are desired to be ready. type: integer desiredReadyHelmOps: description: |- DesiredReadyHelmOps is the number of helmop resources for this cluster that are desired to be ready. type: integer display: description: Display contains the number of ready bundles, nodes and a summary state. properties: readyBundles: description: |- ReadyBundles is a string in the form "%d/%d", that describes the number of bundles that are ready vs. the number of bundles desired to be ready. type: string state: description: State of the cluster, either one of the bundle states, or "WaitCheckIn". nullable: true type: string type: object garbageCollectionInterval: description: GarbageCollectionInterval determines how often agents clean up obsolete Helm releases. type: string namespace: description: |- Namespace is the cluster namespace, it contains the clusters service account as well as any bundledeployments. Example: "cluster-fleet-local-cluster-294db1acfa77-d9ccf852678f" type: string readyGitRepos: description: ReadyGitRepos is the number of gitrepos for this cluster that are ready. type: integer readyHelmOps: description: ReadyHelmOps is the number of helmop resources for this cluster that are ready. type: integer resourceCounts: description: ResourceCounts is an aggregate over the ResourceCounts. properties: desiredReady: description: DesiredReady is the number of resources that should be ready. type: integer missing: description: Missing is the number of missing resources. type: integer modified: description: Modified is the number of resources that have been modified. type: integer notReady: description: |- NotReady is the number of not ready resources. Resources are not ready if they do not match any other state. type: integer orphaned: description: Orphaned is the number of orphaned resources. type: integer ready: description: Ready is the number of ready resources. type: integer unknown: description: Unknown is the number of resources in an unknown state. type: integer waitApplied: description: WaitApplied is the number of resources that are waiting to be applied. type: integer type: object scheduled: description: |- Scheduled specifies if the cluster has been added to any Schedule. When set to true ActiveSchedule is taken into account to check if the deployment can be deployed. type: boolean summary: description: Summary is a summary of the bundledeployments. properties: desiredReady: description: |- DesiredReady is the number of bundle deployments that should be ready. type: integer errApplied: description: |- ErrApplied is the number of bundle deployments that have been synced from the Fleet controller and the downstream cluster, but with some errors when deploying the bundle. type: integer modified: description: |- Modified is the number of bundle deployments that have been deployed and for which all resources are ready, but where some changes from the Git repository have not yet been synced. type: integer nonReadyResources: description: |- NonReadyClusters is a list of states, which is filled for a bundle that is not ready. items: description: |- NonReadyResource contains information about a bundle that is not ready for a given state like "ErrApplied". It contains a list of non-ready or modified resources and their states. properties: bundleState: description: State is the state of the resource, like e.g. "NotReady" or "ErrApplied". nullable: true type: string message: description: Message contains information why the bundle is not ready. nullable: true type: string modifiedStatus: description: ModifiedStatus lists the state for each modified resource. items: description: |- ModifiedStatus is used to report the status of a resource that is modified. It indicates if the modification was a create, a delete or a patch. properties: apiVersion: nullable: true type: string delete: type: boolean exist: description: Exist is true if the resource exists but is not owned by us. This can happen if a resource was adopted by another bundle whereas the first bundle still exists and due to that reports that it does not own it. type: boolean kind: nullable: true type: string missing: type: boolean name: nullable: true type: string namespace: nullable: true type: string patch: nullable: true type: string type: object nullable: true type: array name: description: Name is the name of the resource. nullable: true type: string nonReadyStatus: description: NonReadyStatus lists the state for each non-ready resource. items: description: NonReadyStatus is used to report the status of a resource that is not ready. It includes a summary. properties: apiVersion: nullable: true type: string kind: nullable: true type: string name: nullable: true type: string namespace: nullable: true type: string summary: properties: error: type: boolean message: items: type: string type: array state: type: string transitioning: type: boolean type: object uid: description: |- UID is a type that holds unique ID values, including UUIDs. Because we don't ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated. nullable: true type: string type: object nullable: true type: array type: object nullable: true type: array notReady: description: |- NotReady is the number of bundle deployments that have been deployed where some resources are not ready. type: integer outOfSync: description: |- OutOfSync is the number of bundle deployments that have been synced from Fleet controller, but not yet by the downstream agent. type: integer pending: description: |- Pending is the number of bundle deployments that are being processed by Fleet controller. type: integer ready: description: |- Ready is the number of bundle deployments that have been deployed where all resources are ready. type: integer waitApplied: description: |- WaitApplied is the number of bundle deployments that have been synced from Fleet controller and downstream cluster, but are waiting to be deployed. type: integer waitingForDependency: description: |- WaitingForDependency is the number of bundle deployments which are not deployed because at least one of the bundles they depend on has not reached an accepted state. type: integer type: object type: object type: object served: true storage: true subresources: status: {} --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.22.0 name: contents.fleet.cattle.io spec: group: fleet.cattle.io names: kind: Content listKind: ContentList plural: contents singular: content scope: Cluster versions: - name: v1alpha1 schema: openAPIV3Schema: description: |- Content is used internally by Fleet and should not be used directly. It contains the resources from a bundle for a specific target cluster. properties: apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string content: description: |- Content is a byte array, which contains the manifests of a bundle. The bundle resources are copied into the bundledeployment's content resource, so the downstream agent can deploy them. format: byte nullable: true type: string kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object sha256sum: description: SHA256Sum of the Content field type: string status: description: ContentStatus defines the observed state of Content properties: referenceCount: description: ReferenceCount is the number of BundleDeployments that currently reference this Content resource. type: integer type: object type: object served: true storage: true subresources: status: {} --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.22.0 name: gitreporestrictions.fleet.cattle.io spec: group: fleet.cattle.io names: kind: GitRepoRestriction listKind: GitRepoRestrictionList plural: gitreporestrictions singular: gitreporestriction scope: Namespaced versions: - additionalPrinterColumns: - jsonPath: .defaultServiceAccount name: Default-ServiceAccount type: string - jsonPath: .allowedServiceAccounts name: Allowed-ServiceAccounts type: string name: v1alpha1 schema: openAPIV3Schema: description: |- GitRepoRestriction is a resource that can optionally be used to restrict the options of GitRepos in the same namespace. properties: allowedClientSecretNames: description: AllowedClientSecretNames is a list of client secret names that GitRepos are allowed to use. items: type: string nullable: true type: array allowedRepoPatterns: description: |- AllowedRepoPatterns is a list of regex patterns that restrict the valid values of the Repo field of a GitRepo. items: type: string nullable: true type: array allowedServiceAccounts: description: AllowedServiceAccounts is a list of service accounts that GitRepos are allowed to use. items: type: string nullable: true type: array allowedTargetNamespaceSelector: description: |- AllowedTargetNamespaceSelector is a label selector to match labels defined on the downstream cluster's namespaces. When labels defined on the namespace resources match the selector labels, the namespace on the downstream cluster will be a target namespace that bundles can be deployed to. A namespace is allowed if it either matches this selector or is listed in AllowedTargetNamespaces (OR semantics). nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic allowedTargetNamespaces: description: |- AllowedTargetNamespaces restricts TargetNamespace to the given namespaces. If AllowedTargetNamespaces is set, TargetNamespace must be set. A target namespace is allowed if it is listed here or if it matches AllowedTargetNamespaceSelector (OR semantics). items: type: string nullable: true type: array apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string defaultClientSecretName: description: DefaultClientSecretName overrides the GitRepo's default client secret. nullable: true type: string defaultServiceAccount: description: DefaultServiceAccount overrides the GitRepo's default service account. nullable: true type: string kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object type: object served: true storage: true subresources: status: {} --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.22.0 name: gitrepos.fleet.cattle.io spec: group: fleet.cattle.io names: categories: - fleet kind: GitRepo listKind: GitRepoList plural: gitrepos singular: gitrepo scope: Namespaced versions: - additionalPrinterColumns: - jsonPath: .spec.repo name: Repo type: string - jsonPath: .status.commit name: Commit type: string - jsonPath: .status.display.readyBundleDeployments name: BundleDeployments-Ready type: string - jsonPath: .status.conditions[?(@.type=="Ready")].message name: Status type: string name: v1alpha1 schema: openAPIV3Schema: description: |- GitRepo describes a git repository that is watched by Fleet. The resource contains the necessary information to deploy the repo, or parts of it, to target clusters. properties: apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object spec: properties: branch: description: Branch The git branch to follow. nullable: true type: string bundles: description: |- Bundles defines the paths of bundles to be read. This drives the fleet resource scanner that simply loads the specified folders items: properties: base: description: Base is the base path for the bundle resources type: string options: description: Options is the path (relative to path above) that defines a fleet.yaml file to configure the bundle nullable: true type: string type: object type: array caBundle: description: CABundle is a PEM encoded CA bundle which will be used to validate the repo's certificate. format: byte nullable: true type: string clientSecretName: description: |- ClientSecretName is the name of the client secret to be used to connect to the repo It is expected the secret be of type "kubernetes.io/basic-auth" or "kubernetes.io/ssh-auth". nullable: true type: string correctDrift: description: CorrectDrift specifies how drift correction should work. properties: enabled: description: Enabled correct drift if true. type: boolean force: description: Force helm rollback with --force option will be used if true. This will try to recreate all resources in the release. type: boolean keepFailHistory: description: KeepFailHistory keeps track of failed rollbacks in the helm history. type: boolean type: object deleteNamespace: description: DeleteNamespace specifies if the namespace created must be deleted after deleting the GitRepo. type: boolean disablePolling: description: Disables git polling. When enabled only webhooks will be used. type: boolean forceSyncGeneration: description: Increment this number to force a redeployment of contents from Git. format: int64 type: integer helmRepoURLRegex: description: |- HelmRepoURLRegex Helm credentials will be used if the helm repo matches this regex. Credentials will not be used if this is empty or not provided. nullable: true type: string helmSecretName: description: HelmSecretName contains the auth secret for a private Helm repository. nullable: true type: string helmSecretNameForPaths: description: HelmSecretNameForPaths contains the auth secret for private Helm repository for each path. nullable: true type: string imageScanCommit: description: Commit specifies how to commit to the git repo when a new image is scanned and written back to git repo. properties: authorEmail: description: AuthorEmail gives the email to provide when making a commit type: string authorName: description: AuthorName gives the name to provide when making a commit type: string messageTemplate: description: |- MessageTemplate provides a template for the commit message, into which will be interpolated the details of the change made. type: string type: object imageScanInterval: description: ImageScanInterval is the interval of syncing scanned images and writing back to git repo. maxLength: 32 minLength: 1 type: string x-kubernetes-validations: - message: must be a valid Go duration using units ns, us, µs, ms, s, m, h (e.g. 15s, 5m, 2h, 1h30m); units like d (days) or w (weeks) are not supported rule: self == '0' || (self.matches('^([0-9]+([.][0-9]+)?(ns|us|µs|ms|s|m|h))+$') && duration(self) <= duration('2562047h')) insecureSkipTLSVerify: description: InsecureSkipTLSverify will use insecure HTTPS to clone the repo. type: boolean keepResources: description: KeepResources specifies if the resources created must be kept after deleting the GitRepo. type: boolean ociRegistrySecret: description: OCIRegistrySecret contains the name of the secret to be used for retrieving the OCI registry connection details. type: string paths: description: |- Paths is the directories relative to the git repo root that contain resources to be applied. Path globbing is supported, for example ["charts/*"] will match all folders as a subdirectory of charts/ If empty, "/" is the default. items: type: string nullable: true type: array paused: description: |- Paused, when true, causes changes in Git not to be propagated down to the clusters but instead to mark resources as OutOfSync. type: boolean pollingInterval: description: PollingInterval is how often to check git for new updates. maxLength: 32 minLength: 1 nullable: true type: string x-kubernetes-validations: - message: must be a valid Go duration using units ns, us, µs, ms, s, m, h (e.g. 15s, 5m, 2h, 1h30m); units like d (days) or w (weeks) are not supported rule: self == '0' || (self.matches('^([0-9]+([.][0-9]+)?(ns|us|µs|ms|s|m|h))+$') && duration(self) <= duration('2562047h')) repo: description: Repo is a URL to a git repo to clone and index. minLength: 1 type: string revision: description: Revision A specific commit or tag to operate on. nullable: true type: string serviceAccount: description: ServiceAccount used in the downstream cluster for deployment. nullable: true type: string targetNamespace: description: |- Ensure that all resources are created in this namespace Any cluster scoped resource will be rejected if this is set Additionally this namespace will be created on demand. nullable: true type: string targets: description: Targets is a list of targets this repo will deploy to. items: description: GitTarget is a cluster or cluster group to deploy to. properties: clusterGroup: description: ClusterGroup is the name of a cluster group in the same namespace as the clusters. nullable: true type: string clusterGroupSelector: description: ClusterGroupSelector is a label selector to select cluster groups. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic clusterName: description: ClusterName is the name of a cluster. nullable: true type: string clusterSelector: description: ClusterSelector is a label selector to select clusters. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic name: description: Name is the name of this target. nullable: true type: string type: object type: array webhookSecret: description: WebhookSecret contains the name of the secret to use for webhook parsing type: string required: - repo type: object status: properties: commit: description: Commit is the Git commit hash from the last git job run. type: string conditions: description: |- Conditions is a list of Wrangler conditions that describe the state of the resource. items: properties: lastTransitionTime: description: Last time the condition transitioned from one status to another. type: string lastUpdateTime: description: The last time this condition was updated. type: string message: description: Human-readable message indicating details about last transition type: string reason: description: The reason for the condition's last transition. type: string status: description: Status of the condition, one of True, False, Unknown. type: string type: description: Type of cluster condition. type: string required: - status - type type: object type: array desiredReadyClusters: description: "DesiredReadyClusters\tis the number of clusters that should be ready for bundles of this resource." type: integer display: description: Display contains a human readable summary of the status. properties: error: description: Error is true if a message is present. type: boolean message: description: Message contains the relevant message from the deployment conditions. type: string readyBundleDeployments: description: |- ReadyBundleDeployments is a string in the form "%d/%d", that describes the number of ready bundledeployments over the total number of bundledeployments. type: string state: description: |- State is the state of the resource, e.g. "GitUpdating" or the maximal BundleState according to StateRank. type: string type: object gitJobStatus: description: GitJobStatus is the status of the last Git job run, e.g. "Current" if there was no error. type: string lastPollingTriggered: description: LastPollingTime is the last time the polling check was triggered format: date-time type: string lastSyncedImageScanTime: description: LastSyncedImageScanTime is the time of the last image scan. format: date-time type: string lastWebhookTime: description: LastWebhookTime is the time of the last received webhook notification format: date-time type: string observedGeneration: description: |- ObservedGeneration is the current generation of the resource in the cluster. It is copied from k8s metadata.Generation. The value is incremented for all changes, except for changes to .metadata or .status. format: int64 type: integer perClusterResourceCounts: additionalProperties: description: ResourceCounts contains the number of resources in each state. properties: desiredReady: description: DesiredReady is the number of resources that should be ready. type: integer missing: description: Missing is the number of missing resources. type: integer modified: description: Modified is the number of resources that have been modified. type: integer notReady: description: |- NotReady is the number of not ready resources. Resources are not ready if they do not match any other state. type: integer orphaned: description: Orphaned is the number of orphaned resources. type: integer ready: description: Ready is the number of ready resources. type: integer unknown: description: Unknown is the number of resources in an unknown state. type: integer waitApplied: description: WaitApplied is the number of resources that are waiting to be applied. type: integer type: object description: PerClusterResourceCounts contains the number of resources in each state over all bundles, per cluster. type: object pollingCommit: description: PollingCommit is the latest Git commit hash received from polling type: string readyClusters: description: |- ReadyClusters is the lowest number of clusters that are ready over all the bundles of this resource. type: integer resourceCounts: description: ResourceCounts contains the number of resources in each state over all bundles. properties: desiredReady: description: DesiredReady is the number of resources that should be ready. type: integer missing: description: Missing is the number of missing resources. type: integer modified: description: Modified is the number of resources that have been modified. type: integer notReady: description: |- NotReady is the number of not ready resources. Resources are not ready if they do not match any other state. type: integer orphaned: description: Orphaned is the number of orphaned resources. type: integer ready: description: Ready is the number of ready resources. type: integer unknown: description: Unknown is the number of resources in an unknown state. type: integer waitApplied: description: WaitApplied is the number of resources that are waiting to be applied. type: integer type: object resources: description: Resources contains metadata about the resources of each bundle. items: description: Resource contains metadata about the resources of a bundle. properties: apiVersion: description: APIVersion is the API version of the resource. nullable: true type: string error: description: Error is true if any Error in the PerClusterState is true. type: boolean id: description: ID is the name of the resource, e.g. "namespace1/my-config" or "backingimagemanagers.storage.io". nullable: true type: string incompleteState: description: |- IncompleteState is true if a bundle summary has 10 or more non-ready resources or a non-ready resource has more 10 or more non-ready or modified states. type: boolean kind: description: Kind is the k8s kind of the resource. nullable: true type: string message: description: Message is the first message from the PerClusterStates. nullable: true type: string name: description: Name of the resource. nullable: true type: string namespace: description: Namespace of the resource. nullable: true type: string perClusterState: description: PerClusterState contains lists of cluster IDs for every State for this resource nullable: true properties: missing: description: Missing is a list of cluster IDs for which this a resource is in Missing state items: type: string type: array modified: description: Modified is a list of cluster IDs for which this a resource is in Modified state items: type: string type: array notReady: description: NotReady is a list of cluster IDs for which this a resource is in NotReady state items: type: string type: array orphaned: description: Orphaned is a list of cluster IDs for which this a resource is in Orphaned state items: type: string type: array pending: description: Pending is a list of cluster IDs for which this a resource is in Pending state items: type: string type: array ready: description: Ready is a list of cluster IDs for which this a resource is in Ready state items: type: string type: array unknown: description: Unknown is a list of cluster IDs for which this a resource is in Unknown state items: type: string type: array waitApplied: description: WaitApplied is a list of cluster IDs for which this a resource is in WaitApplied state items: type: string type: array type: object state: description: State is the state of the resource, e.g. "Unknown", "WaitApplied", "ErrApplied" or "Ready". type: string transitioning: description: Transitioning is true if any Transitioning in the PerClusterState is true. type: boolean type: description: Type is the type of the resource, e.g. "apiextensions.k8s.io.customresourcedefinition" or "configmap". type: string required: - perClusterState type: object type: array summary: description: Summary contains the number of bundle deployments in each state and a list of non-ready resources. properties: desiredReady: description: |- DesiredReady is the number of bundle deployments that should be ready. type: integer errApplied: description: |- ErrApplied is the number of bundle deployments that have been synced from the Fleet controller and the downstream cluster, but with some errors when deploying the bundle. type: integer modified: description: |- Modified is the number of bundle deployments that have been deployed and for which all resources are ready, but where some changes from the Git repository have not yet been synced. type: integer nonReadyResources: description: |- NonReadyClusters is a list of states, which is filled for a bundle that is not ready. items: description: |- NonReadyResource contains information about a bundle that is not ready for a given state like "ErrApplied". It contains a list of non-ready or modified resources and their states. properties: bundleState: description: State is the state of the resource, like e.g. "NotReady" or "ErrApplied". nullable: true type: string message: description: Message contains information why the bundle is not ready. nullable: true type: string modifiedStatus: description: ModifiedStatus lists the state for each modified resource. items: description: |- ModifiedStatus is used to report the status of a resource that is modified. It indicates if the modification was a create, a delete or a patch. properties: apiVersion: nullable: true type: string delete: type: boolean exist: description: Exist is true if the resource exists but is not owned by us. This can happen if a resource was adopted by another bundle whereas the first bundle still exists and due to that reports that it does not own it. type: boolean kind: nullable: true type: string missing: type: boolean name: nullable: true type: string namespace: nullable: true type: string patch: nullable: true type: string type: object nullable: true type: array name: description: Name is the name of the resource. nullable: true type: string nonReadyStatus: description: NonReadyStatus lists the state for each non-ready resource. items: description: NonReadyStatus is used to report the status of a resource that is not ready. It includes a summary. properties: apiVersion: nullable: true type: string kind: nullable: true type: string name: nullable: true type: string namespace: nullable: true type: string summary: properties: error: type: boolean message: items: type: string type: array state: type: string transitioning: type: boolean type: object uid: description: |- UID is a type that holds unique ID values, including UUIDs. Because we don't ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated. nullable: true type: string type: object nullable: true type: array type: object nullable: true type: array notReady: description: |- NotReady is the number of bundle deployments that have been deployed where some resources are not ready. type: integer outOfSync: description: |- OutOfSync is the number of bundle deployments that have been synced from Fleet controller, but not yet by the downstream agent. type: integer pending: description: |- Pending is the number of bundle deployments that are being processed by Fleet controller. type: integer ready: description: |- Ready is the number of bundle deployments that have been deployed where all resources are ready. type: integer waitApplied: description: |- WaitApplied is the number of bundle deployments that have been synced from Fleet controller and downstream cluster, but are waiting to be deployed. type: integer waitingForDependency: description: |- WaitingForDependency is the number of bundle deployments which are not deployed because at least one of the bundles they depend on has not reached an accepted state. type: integer type: object updateGeneration: description: Update generation is the force update generation if spec.forceSyncGeneration is set format: int64 type: integer webhookCommit: description: WebhookCommit is the latest Git commit hash received from a webhook type: string type: object type: object served: true storage: true subresources: status: {} --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.22.0 name: helmops.fleet.cattle.io spec: group: fleet.cattle.io names: categories: - fleet kind: HelmOp listKind: HelmOpList plural: helmops singular: helmop scope: Namespaced versions: - additionalPrinterColumns: - jsonPath: .spec.helm.repo name: Repo type: string - jsonPath: .spec.helm.chart name: Chart type: string - jsonPath: .status.version name: Version type: string - jsonPath: .status.display.readyBundleDeployments name: BundleDeployments-Ready type: string - jsonPath: .status.conditions[?(@.type=="Ready")].message name: Status type: string name: v1alpha1 schema: openAPIV3Schema: description: |- HelmOp describes a helm chart information. The resource contains the necessary information to deploy the chart to target clusters. properties: apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object spec: properties: allowedTargetNamespaceSelector: description: |- AllowedTargetNamespaceSelector restricts deployments to namespaces matching this selector. Propagated from GitRepoRestriction and validated by the agent on the downstream cluster. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic contentsId: description: ContentsID stores the contents id when deploying contents using an OCI registry. nullable: true type: string correctDrift: description: CorrectDrift specifies how drift correction should work. properties: enabled: description: Enabled correct drift if true. type: boolean force: description: Force helm rollback with --force option will be used if true. This will try to recreate all resources in the release. type: boolean keepFailHistory: description: KeepFailHistory keeps track of failed rollbacks in the helm history. type: boolean type: object createNamespace: description: |- CreateNamespace controls whether Fleet creates the target namespace on downstream clusters during Helm installs. When nil, the default behavior is to create the namespace (backward-compatible). Set to false by the controller when Policy requires a ServiceAccount and does not explicitly allow namespace creation. This does not affect namespaceLabels/ namespaceAnnotations patching, which is always attempted (when set) as the deployment's ServiceAccount and gated by downstream RBAC. nullable: true type: boolean defaultNamespace: description: |- DefaultNamespace is the namespace to use for resources that do not specify a namespace. This field is not used to enforce or lock down the deployment to a specific namespace. nullable: true type: string deleteCRDResources: description: DeleteCRDResources deletes CRDs. Warning! this will also delete all your Custom Resources. type: boolean deleteNamespace: description: DeleteNamespace can be used to delete the deployed namespace when removing the bundle type: boolean dependsOn: description: DependsOn refers to the bundles which must be ready before this bundle can be deployed. items: properties: acceptedStates: description: |- AcceptedStates is a list of BundleDeployment state that are considered acceptable for this dependency. If the dependency is in one of these states, it will not block the deployment of the dependent bundle. Valid Values should match the StateRank keys, except for WaitingForDependency, which is rejected: it would unblock this bundle exactly when its dependency became blocked on a dependency of its own. If not specified, default to ["Ready"]: only fully ready dependencies are accepted Example: ["Ready", "Modified"] will accept dependencies that are either ready or have drifted from their desired state. items: type: string nullable: true type: array name: description: Name of the bundle. nullable: true type: string selector: description: Selector matching bundle's labels. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic type: object nullable: true type: array diff: description: Diff can be used to ignore the modified state of objects which are amended at runtime. nullable: true properties: comparePatches: description: ComparePatches match a resource and remove fields, or the resource itself from the check for modifications. items: description: ComparePatch matches a resource and removes fields from the check for modifications. properties: apiVersion: description: APIVersion is the apiVersion of the resource to match. nullable: true type: string jsonPointers: description: |- JSONPointers ignore diffs at the given JSON pointers, e.g. /spec/replicas. Each entry must be a non-empty pointer starting with a slash; a Kubernetes-style field path such as spec.replicas addresses nothing and is rejected. Escaping is the one the JSON patch library applies, which is laxer than RFC 6901: "~0" and "~1" are read as "~" and "/", respectively, and any other "~" sequence is left as written. items: type: string nullable: true type: array kind: description: Kind is the kind of the resource to match. nullable: true type: string name: description: |- Name is the name of the resource to match. Resources are matched by exact name first and, when the name does not match exactly, by matching it as a regular expression, so it must always be a valid Go regular expression. nullable: true type: string namespace: description: Namespace is the namespace of the resource to match. nullable: true type: string operations: description: Operations remove a JSON path from the resource. items: description: |- Operation of a ComparePatch, usually: * "remove" to remove a specific path in a resource * "ignore" to remove the entire resource from checks for modifications. properties: op: description: |- Op is the operation to perform on the matched resource. It must be one of the JSON Patch operations "add", "remove", "replace" and "test", or Fleet's own "ignore", which removes the entire resource from checks for modifications. The JSON Patch operations "copy" and "move" are not supported, because an Operation has no "from" field to encode them with. Any other value, including an empty one, makes the whole patch fail to apply. nullable: true type: string path: description: |- Path is the JSON pointer the operation applies to, e.g. /spec/replicas. It must be a non-empty pointer starting with a slash; a Kubernetes-style field path such as spec.replicas addresses nothing and is rejected. It is escaped like a JSONPointers entry, which is laxer than RFC 6901. Required unless Op is "ignore", which drops the whole resource from the comparison and never reads the path. nullable: true type: string value: description: Value is usually empty. nullable: true type: string type: object nullable: true type: array type: object nullable: true type: array type: object downstreamResources: description: |- DownstreamResources points to resources to be copied into downstream clusters, from the bundle's namespace. items: description: |- DownstreamResource contains identifiers for a resource to be copied from the parent bundle's namespace to each downstream cluster. properties: kind: type: string name: type: string type: object type: array forceSyncGeneration: description: ForceSyncGeneration is used to force a redeployment format: int64 type: integer helm: description: Helm options for the deployment, like the chart name, repo and values. properties: atomic: description: Atomic sets the --atomic flag when Helm is performing an upgrade type: boolean chart: description: |- Chart can refer to any go-getter URL or OCI registry based helm chart URL. The chart will be downloaded. nullable: true type: string disableDNS: description: DisableDNS can be used to customize Helm's EnableDNS option, which Fleet sets to `true` by default. type: boolean disableDependencyUpdate: description: DisableDependencyUpdate allows skipping chart dependencies update type: boolean disablePreProcess: description: DisablePreProcess disables template processing in values type: boolean force: description: Force allows to override immutable resources. This could be dangerous. type: boolean maxHistory: description: MaxHistory limits the maximum number of revisions saved per release by Helm. type: integer preserveOnReplace: description: |- PreserveOnReplace lists fields which are kept from the live object when an object is replaced, which happens with helm.force or correctDrift.force. A replace sends the whole object, so fields set on the server after its creation (e.g. the volumeName of a bound PersistentVolumeClaim) would otherwise be cleared, which the API server may reject. A field is only copied when the deployed manifest leaves it unset, except for a list with a mergeKey (see PreservedPath). Without helm.force or correctDrift.force, this has no effect. Rules from the bundle and from matching target customizations are combined, and all rules matching an object apply, so their paths add up; identical rules are deduplicated. Changing these rules redeploys the bundle. items: description: |- PreserveOnReplaceRule matches objects and lists the fields to keep from their live version when they are replaced. properties: apiVersion: description: |- APIVersion is the apiVersion of the objects to match, e.g. v1. It must equal the apiVersion the chart renders: apps/v1beta1 does not match an object rendered as apps/v1. minLength: 1 type: string kind: description: Kind is the kind of the objects to match, e.g. PersistentVolumeClaim. minLength: 1 type: string name: description: |- Name is the name of the objects to match, exactly. It takes precedence over NameRegex: if both are set, NameRegex is ignored. Empty, with no NameRegex, matches any name. type: string nameRegex: description: |- NameRegex is an unanchored Go regular expression matching the names of the objects to match. As it is unanchored, pvc-1 also matches my-pvc-10: use ^pvc-1$, or Name, to match one name only. It is ignored, and not validated, if Name is set. type: string namespace: description: |- Namespace is the namespace of the objects to match, exactly. Empty matches any namespace. type: string paths: description: Paths are the fields to keep from the live object. items: description: |- PreservedPath is a field kept from the live object when an object is replaced. properties: mergeKey: description: |- MergeKey, if set, merges a list of objects instead of copying it only when unset: live items whose MergeKey field has a value not found in the deployed list are appended to it. It only applies to lists of objects: live items which are not objects are not merged, although a live list is still copied whole when the deployed object leaves it unset. As long as the rule exists, an item removed from the manifest is added back from the live object on every replace. E.g. with path /spec/volumes and mergeKey name, a manifest with volumes [{name: b, ...}] and a live object with volumes [{name: z}, {name: b}, {name: a}] are replaced with volumes [{name: b, ...}, {name: z}, {name: a}]: the manifest's items come first and win, then the live items whose name the manifest lacks, in live order. type: string path: description: |- Path is a JSON pointer (RFC 6901) to the field, e.g. /spec/volumeName. A "[key]" token indicates that Fleet should iterate over the items of a list, pairing each item of the manifest (object to be deployed) with the live item, based on both having the same value of the key field. E.g. /spec/containers/[name]/volumeMounts pairs containers by name and preserves the volumeMounts of each pair. A "[key]" token must follow a field and be followed by one, so lists of lists cannot be addressed, and neither can a field whose name starts with "[" and ends with "]". The live value is copied when the deployed object leaves the field unset or null, unless MergeKey is set. Helm always sets some annotations and labels, e.g. meta.helm.sh/release-name, so /metadata/annotations and /metadata/labels are never unset: use /metadata/annotations/ to keep one annotation. Paths below /status, /apiVersion, /kind, /metadata/name, /metadata/namespace, /metadata/uid, /metadata/resourceVersion, /metadata/generation, /metadata/creationTimestamp, /metadata/deletionTimestamp and /metadata/managedFields are not allowed. minLength: 2 type: string required: - path type: object minItems: 1 type: array required: - apiVersion - kind - paths type: object nullable: true type: array releaseName: description: |- ReleaseName sets a custom release name to deploy the chart as. If not specified a release name will be generated by combining the invoking GitRepo.name + GitRepo.path. maxLength: 53 nullable: true pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ type: string repo: description: Repo is the name of the HTTPS helm repo to download the chart from. nullable: true type: string skipSchemaValidation: description: SkipSchemaValidation allows skipping schema validation against the chart values type: boolean takeOwnership: description: TakeOwnership makes helm skip the check for its own annotations type: boolean templateValues: additionalProperties: type: string description: |- Template Values passed to Helm. It is possible to specify the keys and values as go template strings. Unlike .values, content of each key will be templated first, before serializing to yaml. This allows to template complex values, like ranges and maps. templateValues keys have precedence over values keys in case of conflict. nullable: true type: object timeoutSeconds: description: TimeoutSeconds is the time to wait for Helm operations. type: integer values: description: |- Values passed to Helm. It is possible to specify the keys and values as go template strings. nullable: true type: object x-kubernetes-preserve-unknown-fields: true valuesFiles: description: ValuesFiles is a list of files to load values from. items: type: string nullable: true type: array valuesFrom: description: ValuesFrom loads the values from configmaps and secrets. items: description: 'Define helm values that can come from configmap, secret or external. Credit: https://github.com/fluxcd/helm-operator/blob/0cfea875b5d44bea995abe7324819432070dfbdc/pkg/apis/helm.fluxcd.io/v1/types_helmrelease.go#L439' properties: configMapKeyRef: description: The reference to a config map with release values. nullable: true properties: key: nullable: true type: string name: description: Name of a resource in the same namespace as the referent. nullable: true type: string namespace: nullable: true type: string type: object secretKeyRef: description: The reference to a secret with release values. nullable: true properties: key: nullable: true type: string name: description: Name of a resource in the same namespace as the referent. nullable: true type: string namespace: nullable: true type: string type: object type: object nullable: true type: array version: description: Version of the chart to download nullable: true type: string waitForJobs: description: |- WaitForJobs if set and timeoutSeconds provided, will wait until all Jobs have been completed before marking the GitRepo as ready. It will wait for as long as timeoutSeconds type: boolean type: object helmOpOptions: description: |- HelmOpOptions stores the options relative to HelmOp resources Non-nil HelmOpOptions indicate that the source of resources is a Helm chart, not a git repository. nullable: true properties: helmOpCABundle: description: |- CABundle is a PEM encoded CA bundle used to validate TLS connections to the Helm registry. It is resolved by the controller (which has access to Rancher's cattle-system CA secrets, if any) and stored here so the agent can use it without requiring access to those secrets. format: byte nullable: true type: string helmOpInsecureSkipTLSVerify: description: InsecureSkipTLSverify will use insecure HTTPS to clone the helm app resource. type: boolean helmOpSecretName: description: |- SecretName stores the secret name for storing credentials when accessing a remote helm repository defined in a HelmOp resource type: string type: object helmSecretName: description: |- HelmSecretName contains the auth secret with the credentials to access a private Helm repository. nullable: true type: string ignore: description: IgnoreOptions can be used to ignore fields when monitoring the bundle. nullable: true properties: conditions: description: Conditions is a list of conditions to be ignored when monitoring the Bundle. items: additionalProperties: type: string type: object nullable: true type: array type: object insecureSkipTLSVerify: description: InsecureSkipTLSverify will use insecure HTTPS to clone the helm app resource. type: boolean keepResources: description: KeepResources can be used to keep the deployed resources when removing the bundle type: boolean kustomize: description: |- Kustomize options for the deployment, like the dir containing the kustomization.yaml file. nullable: true properties: dir: description: |- Dir points to a custom folder for kustomize resources. This folder must contain a kustomization.yaml file. nullable: true type: string type: object labels: additionalProperties: type: string description: |- Labels are copied to the bundle and can be used in a dependsOn.selector. type: object namespace: description: |- TargetNamespace if present will assign all resource to this namespace and if any cluster scoped resource exists the deployment will fail. nullable: true type: string namespaceAnnotations: additionalProperties: type: string description: NamespaceAnnotations are annotations that will be appended to the namespace created by Fleet. nullable: true type: object namespaceLabels: additionalProperties: type: string description: NamespaceLabels are labels that will be appended to the namespace created by Fleet. nullable: true type: object overwrites: description: |- Overwrites indicates which resources, if any, come from this bundle and overwrite another existing bundle. This flag is set internally by Fleet, and should not be altered by users. items: properties: kind: type: string name: type: string namespace: type: string type: object type: array paused: description: Paused if set to true, will stop any BundleDeployments from being updated. It will be marked as out of sync. type: boolean pollingInterval: description: PollingInterval is how often to check the Helm repository for new updates. maxLength: 32 minLength: 1 nullable: true type: string x-kubernetes-validations: - message: must be a valid Go duration using units ns, us, µs, ms, s, m, h (e.g. 15s, 5m, 2h, 1h30m); units like d (days) or w (weeks) are not supported rule: self == '0' || (self.matches('^([0-9]+([.][0-9]+)?(ns|us|µs|ms|s|m|h))+$') && duration(self) <= duration('2562047h')) resources: description: |- Resources contains the resources that were read from the bundle's path. This includes the content of downloaded helm charts. items: description: BundleResource represents the content of a single resource from the bundle, like a YAML manifest. properties: content: description: The content of the resource, can be compressed. nullable: true type: string encoding: description: Encoding is either empty or "base64+gz". nullable: true type: string name: description: Name of the resource, can include the bundle's internal path. nullable: true type: string type: object nullable: true type: array rolloutStrategy: description: |- RolloutStrategy controls the rollout of bundles, by defining partitions, canaries and percentages for cluster availability. nullable: true properties: autoPartitionSize: anyOf: - type: integer - type: string description: |- A number or percentage of how to automatically partition clusters if no specific partitioning strategy is configured. default: 25% nullable: true x-kubernetes-int-or-string: true autoPartitionThreshold: description: |- AutoPartitionThreshold is the minimum number of clusters that need to be present before auto-partitioning is enabled. If the number of target clusters is less than this value, all clusters will be placed in a single partition. default: 200 nullable: true type: integer maxNew: description: |- MaxNew is the maximum number of new BundleDeployments that can be created in a single reconciliation. This limits the rate at which new deployments are staged when a bundle is first applied to many clusters. default: 50 nullable: true type: integer maxUnavailable: anyOf: - type: integer - type: string description: |- A number or percentage of clusters that can be unavailable during an update of a bundle. This follows the same basic approach as a deployment rollout strategy. Once the number of clusters meets unavailable state update will be paused. Default value is 100% which doesn't take effect on update. default: 100% nullable: true x-kubernetes-int-or-string: true maxUnavailablePartitions: anyOf: - type: integer - type: string description: |- A number or percentage of cluster partitions that can be unavailable during an update of a bundle. default: 0 nullable: true x-kubernetes-int-or-string: true partitions: description: |- A list of definitions of partitions. If any target clusters do not match the configuration they are added to partitions at the end following the autoPartitionSize. items: description: Partition defines a separate rollout strategy for a set of clusters. properties: clusterGroup: description: A cluster group name to include in this partition type: string clusterGroupSelector: description: Selector matching cluster group labels to include in this partition nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic clusterName: description: ClusterName is the name of a cluster to include in this partition type: string clusterSelector: description: Selector matching cluster labels to include in this partition properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic maxUnavailable: anyOf: - type: integer - type: string description: |- A number or percentage of clusters that can be unavailable in this partition before this partition is treated as done. default: 10% x-kubernetes-int-or-string: true name: description: A user-friendly name given to the partition used for Display (optional). nullable: true type: string type: object nullable: true type: array type: object serviceAccount: description: ServiceAccount which will be used to perform this deployment. nullable: true type: string targetCustomizationMode: default: FirstMatch description: |- TargetCustomizationMode controls how targetCustomizations from fleet.yaml are evaluated. "FirstMatch" (default) stops at the first matching entry. "AllMatches" applies all matching entries in order, merging them. enum: - FirstMatch - AllMatches type: string targetRestrictions: description: TargetRestrictions is an allow list, which controls if a bundledeployment is created for a target. items: description: |- BundleTargetRestriction is used internally by Fleet and should not be modified. It acts as an allow list, restricting BundleDeployment creation to only those clusters that are explicitly listed in the GitRepo targets. properties: clusterGroup: nullable: true type: string clusterGroupSelector: description: |- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic clusterName: nullable: true type: string clusterSelector: description: |- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic name: nullable: true type: string type: object type: array targets: description: |- Targets refer to the clusters which will be deployed to. Targets are evaluated in order and the first one to match is used. items: description: |- BundleTarget declares clusters to deploy to. Fleet will merge the BundleDeploymentOptions from customizations into this struct. properties: allowedTargetNamespaceSelector: description: |- AllowedTargetNamespaceSelector restricts deployments to namespaces matching this selector. Propagated from GitRepoRestriction and validated by the agent on the downstream cluster. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic clusterGroup: description: ClusterGroup to match a specific cluster group by name. nullable: true type: string clusterGroupSelector: description: ClusterGroupSelector is a selector to match cluster groups. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic clusterName: description: |- ClusterName to match a specific cluster by name that will be selected nullable: true type: string clusterSelector: description: |- ClusterSelector is a selector to match clusters. The structure is the standard metav1.LabelSelector format. If clusterGroupSelector or clusterGroup is specified, clusterSelector will be used only to further refine the selection after clusterGroupSelector and clusterGroup is evaluated. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic correctDrift: description: CorrectDrift specifies how drift correction should work. properties: enabled: description: Enabled correct drift if true. type: boolean force: description: Force helm rollback with --force option will be used if true. This will try to recreate all resources in the release. type: boolean keepFailHistory: description: KeepFailHistory keeps track of failed rollbacks in the helm history. type: boolean type: object createNamespace: description: |- CreateNamespace controls whether Fleet creates the target namespace on downstream clusters during Helm installs. When nil, the default behavior is to create the namespace (backward-compatible). Set to false by the controller when Policy requires a ServiceAccount and does not explicitly allow namespace creation. This does not affect namespaceLabels/ namespaceAnnotations patching, which is always attempted (when set) as the deployment's ServiceAccount and gated by downstream RBAC. nullable: true type: boolean defaultNamespace: description: |- DefaultNamespace is the namespace to use for resources that do not specify a namespace. This field is not used to enforce or lock down the deployment to a specific namespace. nullable: true type: string deleteCRDResources: description: DeleteCRDResources deletes CRDs. Warning! this will also delete all your Custom Resources. type: boolean deleteNamespace: description: DeleteNamespace can be used to delete the deployed namespace when removing the bundle type: boolean diff: description: Diff can be used to ignore the modified state of objects which are amended at runtime. nullable: true properties: comparePatches: description: ComparePatches match a resource and remove fields, or the resource itself from the check for modifications. items: description: ComparePatch matches a resource and removes fields from the check for modifications. properties: apiVersion: description: APIVersion is the apiVersion of the resource to match. nullable: true type: string jsonPointers: description: |- JSONPointers ignore diffs at the given JSON pointers, e.g. /spec/replicas. Each entry must be a non-empty pointer starting with a slash; a Kubernetes-style field path such as spec.replicas addresses nothing and is rejected. Escaping is the one the JSON patch library applies, which is laxer than RFC 6901: "~0" and "~1" are read as "~" and "/", respectively, and any other "~" sequence is left as written. items: type: string nullable: true type: array kind: description: Kind is the kind of the resource to match. nullable: true type: string name: description: |- Name is the name of the resource to match. Resources are matched by exact name first and, when the name does not match exactly, by matching it as a regular expression, so it must always be a valid Go regular expression. nullable: true type: string namespace: description: Namespace is the namespace of the resource to match. nullable: true type: string operations: description: Operations remove a JSON path from the resource. items: description: |- Operation of a ComparePatch, usually: * "remove" to remove a specific path in a resource * "ignore" to remove the entire resource from checks for modifications. properties: op: description: |- Op is the operation to perform on the matched resource. It must be one of the JSON Patch operations "add", "remove", "replace" and "test", or Fleet's own "ignore", which removes the entire resource from checks for modifications. The JSON Patch operations "copy" and "move" are not supported, because an Operation has no "from" field to encode them with. Any other value, including an empty one, makes the whole patch fail to apply. nullable: true type: string path: description: |- Path is the JSON pointer the operation applies to, e.g. /spec/replicas. It must be a non-empty pointer starting with a slash; a Kubernetes-style field path such as spec.replicas addresses nothing and is rejected. It is escaped like a JSONPointers entry, which is laxer than RFC 6901. Required unless Op is "ignore", which drops the whole resource from the comparison and never reads the path. nullable: true type: string value: description: Value is usually empty. nullable: true type: string type: object nullable: true type: array type: object nullable: true type: array type: object doNotDeploy: description: DoNotDeploy if set to true, will not deploy to this target. type: boolean downstreamResources: description: |- DownstreamResources points to resources to be copied into downstream clusters, from the bundle's namespace. items: description: |- DownstreamResource contains identifiers for a resource to be copied from the parent bundle's namespace to each downstream cluster. properties: kind: type: string name: type: string type: object type: array forceSyncGeneration: description: ForceSyncGeneration is used to force a redeployment format: int64 type: integer helm: description: Helm options for the deployment, like the chart name, repo and values. properties: atomic: description: Atomic sets the --atomic flag when Helm is performing an upgrade type: boolean chart: description: |- Chart can refer to any go-getter URL or OCI registry based helm chart URL. The chart will be downloaded. nullable: true type: string disableDNS: description: DisableDNS can be used to customize Helm's EnableDNS option, which Fleet sets to `true` by default. type: boolean disableDependencyUpdate: description: DisableDependencyUpdate allows skipping chart dependencies update type: boolean disablePreProcess: description: DisablePreProcess disables template processing in values type: boolean force: description: Force allows to override immutable resources. This could be dangerous. type: boolean maxHistory: description: MaxHistory limits the maximum number of revisions saved per release by Helm. type: integer preserveOnReplace: description: |- PreserveOnReplace lists fields which are kept from the live object when an object is replaced, which happens with helm.force or correctDrift.force. A replace sends the whole object, so fields set on the server after its creation (e.g. the volumeName of a bound PersistentVolumeClaim) would otherwise be cleared, which the API server may reject. A field is only copied when the deployed manifest leaves it unset, except for a list with a mergeKey (see PreservedPath). Without helm.force or correctDrift.force, this has no effect. Rules from the bundle and from matching target customizations are combined, and all rules matching an object apply, so their paths add up; identical rules are deduplicated. Changing these rules redeploys the bundle. items: description: |- PreserveOnReplaceRule matches objects and lists the fields to keep from their live version when they are replaced. properties: apiVersion: description: |- APIVersion is the apiVersion of the objects to match, e.g. v1. It must equal the apiVersion the chart renders: apps/v1beta1 does not match an object rendered as apps/v1. minLength: 1 type: string kind: description: Kind is the kind of the objects to match, e.g. PersistentVolumeClaim. minLength: 1 type: string name: description: |- Name is the name of the objects to match, exactly. It takes precedence over NameRegex: if both are set, NameRegex is ignored. Empty, with no NameRegex, matches any name. type: string nameRegex: description: |- NameRegex is an unanchored Go regular expression matching the names of the objects to match. As it is unanchored, pvc-1 also matches my-pvc-10: use ^pvc-1$, or Name, to match one name only. It is ignored, and not validated, if Name is set. type: string namespace: description: |- Namespace is the namespace of the objects to match, exactly. Empty matches any namespace. type: string paths: description: Paths are the fields to keep from the live object. items: description: |- PreservedPath is a field kept from the live object when an object is replaced. properties: mergeKey: description: |- MergeKey, if set, merges a list of objects instead of copying it only when unset: live items whose MergeKey field has a value not found in the deployed list are appended to it. It only applies to lists of objects: live items which are not objects are not merged, although a live list is still copied whole when the deployed object leaves it unset. As long as the rule exists, an item removed from the manifest is added back from the live object on every replace. E.g. with path /spec/volumes and mergeKey name, a manifest with volumes [{name: b, ...}] and a live object with volumes [{name: z}, {name: b}, {name: a}] are replaced with volumes [{name: b, ...}, {name: z}, {name: a}]: the manifest's items come first and win, then the live items whose name the manifest lacks, in live order. type: string path: description: |- Path is a JSON pointer (RFC 6901) to the field, e.g. /spec/volumeName. A "[key]" token indicates that Fleet should iterate over the items of a list, pairing each item of the manifest (object to be deployed) with the live item, based on both having the same value of the key field. E.g. /spec/containers/[name]/volumeMounts pairs containers by name and preserves the volumeMounts of each pair. A "[key]" token must follow a field and be followed by one, so lists of lists cannot be addressed, and neither can a field whose name starts with "[" and ends with "]". The live value is copied when the deployed object leaves the field unset or null, unless MergeKey is set. Helm always sets some annotations and labels, e.g. meta.helm.sh/release-name, so /metadata/annotations and /metadata/labels are never unset: use /metadata/annotations/ to keep one annotation. Paths below /status, /apiVersion, /kind, /metadata/name, /metadata/namespace, /metadata/uid, /metadata/resourceVersion, /metadata/generation, /metadata/creationTimestamp, /metadata/deletionTimestamp and /metadata/managedFields are not allowed. minLength: 2 type: string required: - path type: object minItems: 1 type: array required: - apiVersion - kind - paths type: object nullable: true type: array releaseName: description: |- ReleaseName sets a custom release name to deploy the chart as. If not specified a release name will be generated by combining the invoking GitRepo.name + GitRepo.path. maxLength: 53 nullable: true pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ type: string repo: description: Repo is the name of the HTTPS helm repo to download the chart from. nullable: true type: string skipSchemaValidation: description: SkipSchemaValidation allows skipping schema validation against the chart values type: boolean takeOwnership: description: TakeOwnership makes helm skip the check for its own annotations type: boolean templateValues: additionalProperties: type: string description: |- Template Values passed to Helm. It is possible to specify the keys and values as go template strings. Unlike .values, content of each key will be templated first, before serializing to yaml. This allows to template complex values, like ranges and maps. templateValues keys have precedence over values keys in case of conflict. nullable: true type: object timeoutSeconds: description: TimeoutSeconds is the time to wait for Helm operations. type: integer values: description: |- Values passed to Helm. It is possible to specify the keys and values as go template strings. nullable: true type: object x-kubernetes-preserve-unknown-fields: true valuesFiles: description: ValuesFiles is a list of files to load values from. items: type: string nullable: true type: array valuesFrom: description: ValuesFrom loads the values from configmaps and secrets. items: description: 'Define helm values that can come from configmap, secret or external. Credit: https://github.com/fluxcd/helm-operator/blob/0cfea875b5d44bea995abe7324819432070dfbdc/pkg/apis/helm.fluxcd.io/v1/types_helmrelease.go#L439' properties: configMapKeyRef: description: The reference to a config map with release values. nullable: true properties: key: nullable: true type: string name: description: Name of a resource in the same namespace as the referent. nullable: true type: string namespace: nullable: true type: string type: object secretKeyRef: description: The reference to a secret with release values. nullable: true properties: key: nullable: true type: string name: description: Name of a resource in the same namespace as the referent. nullable: true type: string namespace: nullable: true type: string type: object type: object nullable: true type: array version: description: Version of the chart to download nullable: true type: string waitForJobs: description: |- WaitForJobs if set and timeoutSeconds provided, will wait until all Jobs have been completed before marking the GitRepo as ready. It will wait for as long as timeoutSeconds type: boolean type: object ignore: description: IgnoreOptions can be used to ignore fields when monitoring the bundle. nullable: true properties: conditions: description: Conditions is a list of conditions to be ignored when monitoring the Bundle. items: additionalProperties: type: string type: object nullable: true type: array type: object keepResources: description: KeepResources can be used to keep the deployed resources when removing the bundle type: boolean kustomize: description: |- Kustomize options for the deployment, like the dir containing the kustomization.yaml file. nullable: true properties: dir: description: |- Dir points to a custom folder for kustomize resources. This folder must contain a kustomization.yaml file. nullable: true type: string type: object name: description: |- Name of target. This value is largely for display and logging. If not specified a default name of the format "target000" will be used type: string namespace: description: |- TargetNamespace if present will assign all resource to this namespace and if any cluster scoped resource exists the deployment will fail. nullable: true type: string namespaceAnnotations: additionalProperties: type: string description: NamespaceAnnotations are annotations that will be appended to the namespace created by Fleet. nullable: true type: object namespaceLabels: additionalProperties: type: string description: NamespaceLabels are labels that will be appended to the namespace created by Fleet. nullable: true type: object overwrites: description: |- Overwrites indicates which resources, if any, come from this bundle and overwrite another existing bundle. This flag is set internally by Fleet, and should not be altered by users. items: properties: kind: type: string name: type: string namespace: type: string type: object type: array serviceAccount: description: ServiceAccount which will be used to perform this deployment. nullable: true type: string yaml: description: |- YAML options, if using raw YAML these are names that map to overlays/{name} files that will be used to replace or patch a resource. nullable: true properties: overlays: description: |- Overlays is a list of names that maps to folders in "overlays/". If you wish to customize the file ./subdir/resource.yaml then a file ./overlays/myoverlay/subdir/resource.yaml will replace the base file. A file named ./overlays/myoverlay/subdir/resource_patch.yaml will patch the base file. items: type: string nullable: true type: array type: object type: object type: array valuesHash: description: |- ValuesHash is the hash of the values used to render the Helm chart. It changes when any values from fleet.yaml, values from ValuesFiles or values from target customization changes. type: string yaml: description: |- YAML options, if using raw YAML these are names that map to overlays/{name} files that will be used to replace or patch a resource. nullable: true properties: overlays: description: |- Overlays is a list of names that maps to folders in "overlays/". If you wish to customize the file ./subdir/resource.yaml then a file ./overlays/myoverlay/subdir/resource.yaml will replace the base file. A file named ./overlays/myoverlay/subdir/resource_patch.yaml will patch the base file. items: type: string nullable: true type: array type: object type: object status: properties: conditions: description: |- Conditions is a list of Wrangler conditions that describe the state of the resource. items: properties: lastTransitionTime: description: Last time the condition transitioned from one status to another. type: string lastUpdateTime: description: The last time this condition was updated. type: string message: description: Human-readable message indicating details about last transition type: string reason: description: The reason for the condition's last transition. type: string status: description: Status of the condition, one of True, False, Unknown. type: string type: description: Type of cluster condition. type: string required: - status - type type: object type: array desiredReadyClusters: description: "DesiredReadyClusters\tis the number of clusters that should be ready for bundles of this resource." type: integer display: description: Display contains a human readable summary of the status. properties: error: description: Error is true if a message is present. type: boolean message: description: Message contains the relevant message from the deployment conditions. type: string readyBundleDeployments: description: |- ReadyBundleDeployments is a string in the form "%d/%d", that describes the number of ready bundledeployments over the total number of bundledeployments. type: string state: description: |- State is the state of the resource, e.g. "GitUpdating" or the maximal BundleState according to StateRank. type: string type: object lastPollingTriggered: description: LastPollingTime is the last time the polling check was triggered format: date-time type: string perClusterResourceCounts: additionalProperties: description: ResourceCounts contains the number of resources in each state. properties: desiredReady: description: DesiredReady is the number of resources that should be ready. type: integer missing: description: Missing is the number of missing resources. type: integer modified: description: Modified is the number of resources that have been modified. type: integer notReady: description: |- NotReady is the number of not ready resources. Resources are not ready if they do not match any other state. type: integer orphaned: description: Orphaned is the number of orphaned resources. type: integer ready: description: Ready is the number of ready resources. type: integer unknown: description: Unknown is the number of resources in an unknown state. type: integer waitApplied: description: WaitApplied is the number of resources that are waiting to be applied. type: integer type: object description: PerClusterResourceCounts contains the number of resources in each state over all bundles, per cluster. type: object readyClusters: description: |- ReadyClusters is the lowest number of clusters that are ready over all the bundles of this resource. type: integer resourceCounts: description: ResourceCounts contains the number of resources in each state over all bundles. properties: desiredReady: description: DesiredReady is the number of resources that should be ready. type: integer missing: description: Missing is the number of missing resources. type: integer modified: description: Modified is the number of resources that have been modified. type: integer notReady: description: |- NotReady is the number of not ready resources. Resources are not ready if they do not match any other state. type: integer orphaned: description: Orphaned is the number of orphaned resources. type: integer ready: description: Ready is the number of ready resources. type: integer unknown: description: Unknown is the number of resources in an unknown state. type: integer waitApplied: description: WaitApplied is the number of resources that are waiting to be applied. type: integer type: object resources: description: Resources contains metadata about the resources of each bundle. items: description: Resource contains metadata about the resources of a bundle. properties: apiVersion: description: APIVersion is the API version of the resource. nullable: true type: string error: description: Error is true if any Error in the PerClusterState is true. type: boolean id: description: ID is the name of the resource, e.g. "namespace1/my-config" or "backingimagemanagers.storage.io". nullable: true type: string incompleteState: description: |- IncompleteState is true if a bundle summary has 10 or more non-ready resources or a non-ready resource has more 10 or more non-ready or modified states. type: boolean kind: description: Kind is the k8s kind of the resource. nullable: true type: string message: description: Message is the first message from the PerClusterStates. nullable: true type: string name: description: Name of the resource. nullable: true type: string namespace: description: Namespace of the resource. nullable: true type: string perClusterState: description: PerClusterState contains lists of cluster IDs for every State for this resource nullable: true properties: missing: description: Missing is a list of cluster IDs for which this a resource is in Missing state items: type: string type: array modified: description: Modified is a list of cluster IDs for which this a resource is in Modified state items: type: string type: array notReady: description: NotReady is a list of cluster IDs for which this a resource is in NotReady state items: type: string type: array orphaned: description: Orphaned is a list of cluster IDs for which this a resource is in Orphaned state items: type: string type: array pending: description: Pending is a list of cluster IDs for which this a resource is in Pending state items: type: string type: array ready: description: Ready is a list of cluster IDs for which this a resource is in Ready state items: type: string type: array unknown: description: Unknown is a list of cluster IDs for which this a resource is in Unknown state items: type: string type: array waitApplied: description: WaitApplied is a list of cluster IDs for which this a resource is in WaitApplied state items: type: string type: array type: object state: description: State is the state of the resource, e.g. "Unknown", "WaitApplied", "ErrApplied" or "Ready". type: string transitioning: description: Transitioning is true if any Transitioning in the PerClusterState is true. type: boolean type: description: Type is the type of the resource, e.g. "apiextensions.k8s.io.customresourcedefinition" or "configmap". type: string required: - perClusterState type: object type: array summary: description: Summary contains the number of bundle deployments in each state and a list of non-ready resources. properties: desiredReady: description: |- DesiredReady is the number of bundle deployments that should be ready. type: integer errApplied: description: |- ErrApplied is the number of bundle deployments that have been synced from the Fleet controller and the downstream cluster, but with some errors when deploying the bundle. type: integer modified: description: |- Modified is the number of bundle deployments that have been deployed and for which all resources are ready, but where some changes from the Git repository have not yet been synced. type: integer nonReadyResources: description: |- NonReadyClusters is a list of states, which is filled for a bundle that is not ready. items: description: |- NonReadyResource contains information about a bundle that is not ready for a given state like "ErrApplied". It contains a list of non-ready or modified resources and their states. properties: bundleState: description: State is the state of the resource, like e.g. "NotReady" or "ErrApplied". nullable: true type: string message: description: Message contains information why the bundle is not ready. nullable: true type: string modifiedStatus: description: ModifiedStatus lists the state for each modified resource. items: description: |- ModifiedStatus is used to report the status of a resource that is modified. It indicates if the modification was a create, a delete or a patch. properties: apiVersion: nullable: true type: string delete: type: boolean exist: description: Exist is true if the resource exists but is not owned by us. This can happen if a resource was adopted by another bundle whereas the first bundle still exists and due to that reports that it does not own it. type: boolean kind: nullable: true type: string missing: type: boolean name: nullable: true type: string namespace: nullable: true type: string patch: nullable: true type: string type: object nullable: true type: array name: description: Name is the name of the resource. nullable: true type: string nonReadyStatus: description: NonReadyStatus lists the state for each non-ready resource. items: description: NonReadyStatus is used to report the status of a resource that is not ready. It includes a summary. properties: apiVersion: nullable: true type: string kind: nullable: true type: string name: nullable: true type: string namespace: nullable: true type: string summary: properties: error: type: boolean message: items: type: string type: array state: type: string transitioning: type: boolean type: object uid: description: |- UID is a type that holds unique ID values, including UUIDs. Because we don't ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated. nullable: true type: string type: object nullable: true type: array type: object nullable: true type: array notReady: description: |- NotReady is the number of bundle deployments that have been deployed where some resources are not ready. type: integer outOfSync: description: |- OutOfSync is the number of bundle deployments that have been synced from Fleet controller, but not yet by the downstream agent. type: integer pending: description: |- Pending is the number of bundle deployments that are being processed by Fleet controller. type: integer ready: description: |- Ready is the number of bundle deployments that have been deployed where all resources are ready. type: integer waitApplied: description: |- WaitApplied is the number of bundle deployments that have been synced from Fleet controller and downstream cluster, but are waiting to be deployed. type: integer waitingForDependency: description: |- WaitingForDependency is the number of bundle deployments which are not deployed because at least one of the bundles they depend on has not reached an accepted state. type: integer type: object version: description: |- Version installed for the helm chart. When using * or empty version in the spec we get the latest version from the helm repository when possible type: string type: object type: object served: true storage: true subresources: status: {} --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.22.0 name: imagescans.fleet.cattle.io spec: group: fleet.cattle.io names: kind: ImageScan listKind: ImageScanList plural: imagescans singular: imagescan scope: Namespaced versions: - additionalPrinterColumns: - jsonPath: .spec.image name: Repository type: string - jsonPath: .status.latestTag name: Latest type: string name: v1alpha1 schema: openAPIV3Schema: properties: apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object spec: description: API is taken from https://github.com/fluxcd/image-reflector-controller properties: gitrepoName: description: GitRepo reference name nullable: true type: string image: description: Image is the name of the image repository nullable: true type: string interval: description: |- Interval is the length of time to wait between scans of the image repository. maxLength: 32 minLength: 1 nullable: true type: string x-kubernetes-validations: - message: must be a valid Go duration using units ns, us, µs, ms, s, m, h (e.g. 15s, 5m, 2h, 1h30m); units like d (days) or w (weeks) are not supported rule: self == '0' || (self.matches('^([0-9]+([.][0-9]+)?(ns|us|µs|ms|s|m|h))+$') && duration(self) <= duration('2562047h')) policy: description: |- Policy gives the particulars of the policy to be followed in selecting the most recent image properties: alphabetical: description: Alphabetical set of rules to use for alphabetical ordering of the tags. nullable: true properties: order: description: |- Order specifies the sorting order of the tags. Given the letters of the alphabet as tags, ascending order would select Z, and descending order would select A. nullable: true type: string type: object semver: description: |- SemVer gives a semantic version range to check against the tags available. nullable: true properties: range: description: |- Range gives a semver range for the image tag; the highest version within the range that's a tag yields the latest image. nullable: true type: string type: object type: object secretRef: description: |- SecretRef can be given the name of a secret containing credentials to use for the image registry. The secret should be created with `kubectl create secret docker-registry`, or the equivalent. nullable: true properties: name: default: "" description: |- Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string type: object x-kubernetes-map-type: atomic suspend: description: |- This flag tells the controller to suspend subsequent image scans. It does not apply to already started scans. Defaults to false. type: boolean tagName: description: TagName is the tag ref that needs to be put in manifest to replace fields nullable: true type: string required: - image - interval type: object status: properties: canonicalImageName: description: |- CanonicalName is the name of the image repository with all the implied bits made explicit; e.g., `docker.io/library/alpine` rather than `alpine`. type: string conditions: items: properties: lastTransitionTime: description: Last time the condition transitioned from one status to another. type: string lastUpdateTime: description: The last time this condition was updated. type: string message: description: Human-readable message indicating details about last transition type: string reason: description: The reason for the condition's last transition. type: string status: description: Status of the condition, one of True, False, Unknown. type: string type: description: Type of cluster condition. type: string required: - status - type type: object type: array lastScanTime: description: LastScanTime is the last time image was scanned format: date-time type: string latestDigest: description: LatestDigest is the digest of latest tag type: string latestImage: description: |- LatestImage gives the first in the list of images scanned by the image repository, when filtered and ordered according to the policy. type: string latestTag: description: Latest tag is the latest tag filtered by the policy type: string observedGeneration: format: int64 type: integer type: object type: object served: true storage: true subresources: status: {} --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.22.0 name: policies.fleet.cattle.io spec: group: fleet.cattle.io names: kind: Policy listKind: PolicyList plural: policies singular: policy scope: Namespaced versions: - name: v1alpha1 schema: openAPIV3Schema: description: |- Policy restricts what GitRepo, HelmOp, and Bundle resources in the same namespace may do. Enforced at three points in the controller stack: - GitRepo reconciler: validates and applies defaults before producing a Bundle. - HelmOp reconciler: validates and applies defaults before producing a Bundle. - Bundle reconciler: validates only (fail-only) before producing BundleDeployments. Top-level fields are checked by all three reconcilers. Sub-object fields (gitRepo, helmOp) are only read by their respective reconciler. Default* fields inside sub-objects are applied before top-level validators run. Multiple Policy objects in the same namespace are aggregated with OR/union semantics, sorted by name for determinism. properties: allowNamespaceCreation: description: |- AllowNamespaceCreation, when true, allows Fleet to create namespaces on downstream clusters during Helm installs. By default (false), when RequireServiceAccount is true, namespace creation is disabled so that tenant ServiceAccounts are not forced to hold the cluster-scoped namespaces.create verb. Operators who have secured namespace creation through other means (ValidatingAdmissionPolicy, Kyverno, etc.) can set this to true. type: boolean allowedDownstreamResources: description: |- AllowedDownstreamResources lists the Secrets and ConfigMaps that GitRepo, HelmOp, and Bundle resources may copy to downstream clusters through downstreamResources. The Fleet controller reads those objects with its own credentials, so whoever creates the resource needs no access to them. This list decides which of them may be copied. If non-empty, every Secret and ConfigMap in downstreamResources must match an entry. If empty, none may be copied when RequireServiceAccount is true, and all may be copied otherwise. items: description: |- AllowedDownstreamResource allows Secrets or ConfigMaps to be copied to downstream clusters, either by exact name or by name pattern. properties: kind: description: Kind is the kind of the allowed objects. enum: - Secret - ConfigMap type: string name: description: Name allows the object with exactly this name. minLength: 1 type: string namePattern: description: |- NamePattern is a regex pattern that allows every object whose name matches it. The pattern is anchored as ^(?:)$, so explicit ^ and $ anchors are not required. minLength: 1 type: string required: - kind type: object x-kubernetes-validations: - message: exactly one of name or namePattern must be set rule: has(self.name) != has(self.namePattern) nullable: true type: array allowedServiceAccounts: description: |- AllowedServiceAccounts lists service accounts that may be used. If non-empty, the ServiceAccount must appear in this list. When RequireServiceAccount is also true, an empty ServiceAccount is rejected regardless of this list. items: type: string nullable: true type: array apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string gitRepo: description: GitRepo contains restrictions and defaults applied only by the GitRepo reconciler. properties: allowedClientSecretNames: description: |- AllowedClientSecretNames lists client secret names that GitRepo objects may reference. items: type: string nullable: true type: array allowedRepoPatterns: description: |- AllowedRepoPatterns is a list of regex patterns restricting the Repo field of GitRepo objects. items: type: string nullable: true type: array defaultClientSecretName: description: |- DefaultClientSecretName is applied to GitRepo objects whose ClientSecretName is empty. type: string defaultServiceAccount: description: |- DefaultServiceAccount is applied to GitRepo objects whose ServiceAccount is empty, before the top-level RequireServiceAccount check runs. type: string type: object helmOp: description: HelmOp contains restrictions and defaults applied only by the HelmOp reconciler. properties: allowedChartPatterns: description: |- AllowedChartPatterns is a list of regex patterns restricting the spec.helm.chart field of HelmOp objects. items: type: string nullable: true type: array allowedHelmRepoPatterns: description: |- AllowedHelmRepoPatterns is a list of regex patterns restricting the spec.helm.repo field of HelmOp objects. items: type: string nullable: true type: array allowedHelmSecretNames: description: |- AllowedHelmSecretNames lists credential secret names that HelmOp objects may reference. items: type: string nullable: true type: array defaultHelmSecretName: description: |- DefaultHelmSecretName is applied to HelmOp objects whose HelmSecretName is empty. type: string defaultServiceAccount: description: |- DefaultServiceAccount is applied to HelmOp objects whose ServiceAccount is empty, before the top-level RequireServiceAccount check runs. type: string type: object kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object requireServiceAccount: description: |- RequireServiceAccount, when true, rejects any GitRepo, HelmOp, or Bundle whose ServiceAccount is empty after any defaulting has been applied. Combine with AllowedServiceAccounts to also restrict which account is used. type: boolean type: object served: true storage: true --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.22.0 name: schedules.fleet.cattle.io spec: group: fleet.cattle.io names: kind: Schedule listKind: ScheduleList plural: schedules singular: schedule scope: Namespaced versions: - additionalPrinterColumns: - jsonPath: .spec.schedule name: Schedule type: string - jsonPath: .spec.duration name: Duration type: string - jsonPath: .status.active name: Active type: string - jsonPath: .status.nextStartTime name: NextStart type: string name: v1alpha1 schema: openAPIV3Schema: description: Schedule represents a schedule in which deployments are allowed or not, depending on its definition. properties: apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object spec: properties: duration: maxLength: 32 minLength: 1 type: string x-kubernetes-validations: - message: must be a valid Go duration using units ns, us, µs, ms, s, m, h (e.g. 15s, 5m, 2h, 1h30m); units like d (days) or w (weeks) are not supported rule: self == '0' || (self.matches('^([0-9]+([.][0-9]+)?(ns|us|µs|ms|s|m|h))+$') && duration(self) <= duration('2562047h')) location: type: string schedule: type: string targets: description: Targets is a list of resources affected by this schedule properties: clusters: items: description: ScheduleTarget represents a resource (or group of resources) affected by a Schedule properties: clusterGroup: description: ClusterGroup is the name of a cluster group in the same namespace as the clusters. nullable: true type: string clusterGroupSelector: description: ClusterGroupSelector is a label selector to select cluster groups. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic clusterName: description: ClusterName is the name of a cluster. nullable: true type: string clusterSelector: description: ClusterSelector is a label selector to select clusters. nullable: true properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object x-kubernetes-map-type: atomic name: description: Name is the name of this target. nullable: true type: string type: object type: array type: object type: object status: properties: active: description: Active is set to true when the Schedule is actively running type: boolean conditions: description: |- Conditions is a list of Wrangler conditions that describe the state of the resource. items: properties: lastTransitionTime: description: Last time the condition transitioned from one status to another. type: string lastUpdateTime: description: The last time this condition was updated. type: string message: description: Human-readable message indicating details about last transition type: string reason: description: The reason for the condition's last transition. type: string status: description: Status of the condition, one of True, False, Unknown. type: string type: description: Type of cluster condition. type: string required: - status - type type: object type: array matchingClusters: description: MatchingClusters is the list of clusters targeted by the Schedule items: type: string type: array nextStartTime: description: NextStartTime stores the next time this Schedule will start format: date-time type: string type: object type: object served: true storage: true subresources: status: {}