crds-catalog/kustomize.toolkit.fluxcd.io/kustomization_v1beta1.json

560 lines
26 KiB
JSON
Raw Normal View History

2023-03-08 12:21:48 +00:00
{
"description": "Kustomization is the Schema for the kustomizations API.",
"properties": {
"apiVersion": {
2024-05-14 11:44:32 +00:00
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"kind": {
2024-05-14 11:44:32 +00:00
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"description": "KustomizationSpec defines the desired state of a kustomization.",
"properties": {
"decryption": {
"description": "Decrypt Kubernetes secrets before applying them on the cluster.",
"properties": {
"provider": {
"description": "Provider is the name of the decryption engine.",
"enum": [
"sops"
],
"type": "string"
},
"secretRef": {
"description": "The secret name containing the private OpenPGP keys used for decryption.",
"properties": {
"name": {
"description": "Name of the referent.",
"type": "string"
}
},
"required": [
"name"
],
"type": "object",
"additionalProperties": false
}
},
"required": [
"provider"
],
"type": "object",
"additionalProperties": false
},
"dependsOn": {
2024-05-14 11:44:32 +00:00
"description": "DependsOn may contain a meta.NamespacedObjectReference slice\nwith references to Kustomization resources that must be ready before this\nKustomization can be reconciled.",
2023-03-08 12:21:48 +00:00
"items": {
2024-05-14 11:44:32 +00:00
"description": "NamespacedObjectReference contains enough information to locate the referenced Kubernetes resource object in any\nnamespace.",
2023-03-08 12:21:48 +00:00
"properties": {
"name": {
"description": "Name of the referent.",
"type": "string"
},
"namespace": {
"description": "Namespace of the referent, when not specified it acts as LocalObjectReference.",
"type": "string"
}
},
"required": [
"name"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"force": {
"default": false,
2024-05-14 11:44:32 +00:00
"description": "Force instructs the controller to recreate resources\nwhen patching fails due to an immutable field change.",
2023-03-08 12:21:48 +00:00
"type": "boolean"
},
"healthChecks": {
"description": "A list of resources to be included in the health assessment.",
"items": {
2024-05-14 11:44:32 +00:00
"description": "NamespacedObjectKindReference contains enough information to locate the typed referenced Kubernetes resource object\nin any namespace.",
2023-03-08 12:21:48 +00:00
"properties": {
"apiVersion": {
"description": "API version of the referent, if not specified the Kubernetes preferred version will be used.",
"type": "string"
},
"kind": {
"description": "Kind of the referent.",
"type": "string"
},
"name": {
"description": "Name of the referent.",
"type": "string"
},
"namespace": {
"description": "Namespace of the referent, when not specified it acts as LocalObjectReference.",
"type": "string"
}
},
"required": [
"kind",
"name"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"images": {
2024-05-14 11:44:32 +00:00
"description": "Images is a list of (image name, new name, new tag or digest)\nfor changing image names, tags or digests. This can also be achieved with a\npatch, but this operator is simpler to specify.",
2023-03-08 12:21:48 +00:00
"items": {
"description": "Image contains an image name, a new name, a new tag or digest, which will replace the original name and tag.",
"properties": {
"digest": {
2024-05-14 11:44:32 +00:00
"description": "Digest is the value used to replace the original image tag.\nIf digest is present NewTag value is ignored.",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"name": {
"description": "Name is a tag-less image name.",
"type": "string"
},
"newName": {
"description": "NewName is the value used to replace the original name.",
"type": "string"
},
"newTag": {
"description": "NewTag is the value used to replace the original tag.",
"type": "string"
}
},
"required": [
"name"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"interval": {
"description": "The interval at which to reconcile the Kustomization.",
"type": "string"
},
"kubeConfig": {
2024-05-14 11:44:32 +00:00
"description": "The KubeConfig for reconciling the Kustomization on a remote cluster.\nWhen specified, KubeConfig takes precedence over ServiceAccountName.",
2023-03-08 12:21:48 +00:00
"properties": {
"secretRef": {
2024-05-14 11:44:32 +00:00
"description": "SecretRef holds the name to a secret that contains a 'value' key with\nthe kubeconfig file as the value. It must be in the same namespace as\nthe Kustomization.\nIt is recommended that the kubeconfig is self-contained, and the secret\nis regularly updated if credentials such as a cloud-access-token expire.\nCloud specific `cmd-path` auth helpers will not function without adding\nbinaries and credentials to the Pod that is responsible for reconciling\nthe Kustomization.",
2023-03-08 12:21:48 +00:00
"properties": {
"name": {
"description": "Name of the referent.",
"type": "string"
}
},
"required": [
"name"
],
"type": "object",
"additionalProperties": false
}
},
2024-09-30 17:30:58 +00:00
"required": [
"secretRef"
],
2023-03-08 12:21:48 +00:00
"type": "object",
"additionalProperties": false
},
"patches": {
2024-05-14 11:44:32 +00:00
"description": "Strategic merge and JSON patches, defined as inline YAML objects,\ncapable of targeting objects based on kind, label and annotation selectors.",
2023-03-08 12:21:48 +00:00
"items": {
2024-05-14 11:44:32 +00:00
"description": "Patch contains an inline StrategicMerge or JSON6902 patch, and the target the patch should\nbe applied to.",
2023-03-08 12:21:48 +00:00
"properties": {
"patch": {
2024-05-14 11:44:32 +00:00
"description": "Patch contains an inline StrategicMerge patch or an inline JSON6902 patch with\nan array of operation objects.",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"target": {
"description": "Target points to the resources that the patch document should be applied to.",
"properties": {
"annotationSelector": {
2024-05-14 11:44:32 +00:00
"description": "AnnotationSelector is a string that follows the label selection expression\nhttps://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api\nIt matches with the resource annotations.",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"group": {
2024-05-14 11:44:32 +00:00
"description": "Group is the API group to select resources from.\nTogether with Version and Kind it is capable of unambiguously identifying and/or selecting resources.\nhttps://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"kind": {
2024-05-14 11:44:32 +00:00
"description": "Kind of the API Group to select resources from.\nTogether with Group and Version it is capable of unambiguously\nidentifying and/or selecting resources.\nhttps://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"labelSelector": {
2024-05-14 11:44:32 +00:00
"description": "LabelSelector is a string that follows the label selection expression\nhttps://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api\nIt matches with the resource labels.",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"name": {
"description": "Name to match resources with.",
"type": "string"
},
"namespace": {
"description": "Namespace to select resources from.",
"type": "string"
},
"version": {
2024-05-14 11:44:32 +00:00
"description": "Version of the API Group to select resources from.\nTogether with Group and Kind it is capable of unambiguously identifying and/or selecting resources.\nhttps://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md",
2023-03-08 12:21:48 +00:00
"type": "string"
}
},
"type": "object",
"additionalProperties": false
}
},
2023-07-07 20:29:43 +00:00
"required": [
"patch"
],
2023-03-08 12:21:48 +00:00
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"patchesJson6902": {
"description": "JSON 6902 patches, defined as inline YAML objects.",
"items": {
"description": "JSON6902Patch contains a JSON6902 patch and the target the patch should be applied to.",
"properties": {
"patch": {
"description": "Patch contains the JSON6902 patch document with an array of operation objects.",
"items": {
2024-05-14 11:44:32 +00:00
"description": "JSON6902 is a JSON6902 operation object.\nhttps://datatracker.ietf.org/doc/html/rfc6902#section-4",
2023-03-08 12:21:48 +00:00
"properties": {
"from": {
2024-05-14 11:44:32 +00:00
"description": "From contains a JSON-pointer value that references a location within the target document where the operation is\nperformed. The meaning of the value depends on the value of Op, and is NOT taken into account by all operations.",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"op": {
2024-05-14 11:44:32 +00:00
"description": "Op indicates the operation to perform. Its value MUST be one of \"add\", \"remove\", \"replace\", \"move\", \"copy\", or\n\"test\".\nhttps://datatracker.ietf.org/doc/html/rfc6902#section-4",
2023-03-08 12:21:48 +00:00
"enum": [
"test",
"remove",
"add",
"replace",
"move",
"copy"
],
"type": "string"
},
"path": {
2024-05-14 11:44:32 +00:00
"description": "Path contains the JSON-pointer value that references a location within the target document where the operation\nis performed. The meaning of the value depends on the value of Op.",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"value": {
2024-05-14 11:44:32 +00:00
"description": "Value contains a valid JSON structure. The meaning of the value depends on the value of Op, and is NOT taken into\naccount by all operations.",
2023-03-08 12:21:48 +00:00
"x-kubernetes-preserve-unknown-fields": true
}
},
"required": [
"op",
"path"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"target": {
"description": "Target points to the resources that the patch document should be applied to.",
"properties": {
"annotationSelector": {
2024-05-14 11:44:32 +00:00
"description": "AnnotationSelector is a string that follows the label selection expression\nhttps://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api\nIt matches with the resource annotations.",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"group": {
2024-05-14 11:44:32 +00:00
"description": "Group is the API group to select resources from.\nTogether with Version and Kind it is capable of unambiguously identifying and/or selecting resources.\nhttps://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"kind": {
2024-05-14 11:44:32 +00:00
"description": "Kind of the API Group to select resources from.\nTogether with Group and Version it is capable of unambiguously\nidentifying and/or selecting resources.\nhttps://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"labelSelector": {
2024-05-14 11:44:32 +00:00
"description": "LabelSelector is a string that follows the label selection expression\nhttps://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api\nIt matches with the resource labels.",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"name": {
"description": "Name to match resources with.",
"type": "string"
},
"namespace": {
"description": "Namespace to select resources from.",
"type": "string"
},
"version": {
2024-05-14 11:44:32 +00:00
"description": "Version of the API Group to select resources from.\nTogether with Group and Kind it is capable of unambiguously identifying and/or selecting resources.\nhttps://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md",
2023-03-08 12:21:48 +00:00
"type": "string"
}
},
"type": "object",
"additionalProperties": false
}
},
"required": [
"patch",
"target"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"patchesStrategicMerge": {
"description": "Strategic merge patches, defined as inline YAML objects.",
"items": {
"x-kubernetes-preserve-unknown-fields": true
},
"type": "array"
},
"path": {
2024-05-14 11:44:32 +00:00
"description": "Path to the directory containing the kustomization.yaml file, or the\nset of plain YAMLs a kustomization.yaml should be generated for.\nDefaults to 'None', which translates to the root path of the SourceRef.",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"postBuild": {
2024-05-14 11:44:32 +00:00
"description": "PostBuild describes which actions to perform on the YAML manifest\ngenerated by building the kustomize overlay.",
2023-03-08 12:21:48 +00:00
"properties": {
"substitute": {
"additionalProperties": {
"type": "string"
},
2024-05-14 11:44:32 +00:00
"description": "Substitute holds a map of key/value pairs.\nThe variables defined in your YAML manifests\nthat match any of the keys defined in the map\nwill be substituted with the set value.\nIncludes support for bash string replacement functions\ne.g. ${var:=default}, ${var:position} and ${var/substring/replacement}.",
2023-03-08 12:21:48 +00:00
"type": "object"
},
"substituteFrom": {
2024-05-14 11:44:32 +00:00
"description": "SubstituteFrom holds references to ConfigMaps and Secrets containing\nthe variables and their values to be substituted in the YAML manifests.\nThe ConfigMap and the Secret data keys represent the var names and they\nmust match the vars declared in the manifests for the substitution to happen.",
2023-03-08 12:21:48 +00:00
"items": {
2024-05-14 11:44:32 +00:00
"description": "SubstituteReference contains a reference to a resource containing\nthe variables name and value.",
2023-03-08 12:21:48 +00:00
"properties": {
"kind": {
"description": "Kind of the values referent, valid values are ('Secret', 'ConfigMap').",
"enum": [
"Secret",
"ConfigMap"
],
"type": "string"
},
"name": {
2024-05-14 11:44:32 +00:00
"description": "Name of the values referent. Should reside in the same namespace as the\nreferring resource.",
2023-03-08 12:21:48 +00:00
"maxLength": 253,
"minLength": 1,
"type": "string"
}
},
"required": [
"kind",
"name"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
}
},
"type": "object",
"additionalProperties": false
},
"prune": {
"description": "Prune enables garbage collection.",
"type": "boolean"
},
"retryInterval": {
2024-05-14 11:44:32 +00:00
"description": "The interval at which to retry a previously failed reconciliation.\nWhen not specified, the controller uses the KustomizationSpec.Interval\nvalue to retry failures.",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"serviceAccountName": {
2024-05-14 11:44:32 +00:00
"description": "The name of the Kubernetes service account to impersonate\nwhen reconciling this Kustomization.",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"sourceRef": {
"description": "Reference of the source where the kustomization file is.",
"properties": {
"apiVersion": {
"description": "API version of the referent",
"type": "string"
},
"kind": {
"description": "Kind of the referent",
"enum": [
"GitRepository",
"Bucket"
],
"type": "string"
},
"name": {
"description": "Name of the referent",
"type": "string"
},
"namespace": {
"description": "Namespace of the referent, defaults to the Kustomization namespace",
"type": "string"
}
},
"required": [
"kind",
"name"
],
"type": "object",
"additionalProperties": false
},
"suspend": {
2024-05-14 11:44:32 +00:00
"description": "This flag tells the controller to suspend subsequent kustomize executions,\nit does not apply to already started executions. Defaults to false.",
2023-03-08 12:21:48 +00:00
"type": "boolean"
},
"targetNamespace": {
2024-05-14 11:44:32 +00:00
"description": "TargetNamespace sets or overrides the namespace in the\nkustomization.yaml file.",
2023-03-08 12:21:48 +00:00
"maxLength": 63,
"minLength": 1,
"type": "string"
},
"timeout": {
2024-05-14 11:44:32 +00:00
"description": "Timeout for validation, apply and health checking operations.\nDefaults to 'Interval' duration.",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"validation": {
2024-05-14 11:44:32 +00:00
"description": "Validate the Kubernetes objects before applying them on the cluster.\nThe validation strategy can be 'client' (local dry-run), 'server'\n(APIServer dry-run) or 'none'.\nWhen 'Force' is 'true', validation will fallback to 'client' if set to\n'server' because server-side validation is not supported in this scenario.",
2023-03-08 12:21:48 +00:00
"enum": [
"none",
"client",
"server"
],
"type": "string"
}
},
"required": [
"interval",
"prune",
"sourceRef"
],
"type": "object",
"additionalProperties": false
},
"status": {
"default": {
"observedGeneration": -1
},
"description": "KustomizationStatus defines the observed state of a kustomization.",
"properties": {
"conditions": {
"items": {
2024-09-30 17:30:58 +00:00
"description": "Condition contains details for one aspect of the current state of this API Resource.",
2023-03-08 12:21:48 +00:00
"properties": {
"lastTransitionTime": {
2024-05-14 11:44:32 +00:00
"description": "lastTransitionTime is the last time the condition transitioned from one status to another.\nThis should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.",
2023-03-08 12:21:48 +00:00
"format": "date-time",
"type": "string"
},
"message": {
2024-05-14 11:44:32 +00:00
"description": "message is a human readable message indicating details about the transition.\nThis may be an empty string.",
2023-03-08 12:21:48 +00:00
"maxLength": 32768,
"type": "string"
},
"observedGeneration": {
2024-05-14 11:44:32 +00:00
"description": "observedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.",
2023-03-08 12:21:48 +00:00
"format": "int64",
"minimum": 0,
"type": "integer"
},
"reason": {
2024-05-14 11:44:32 +00:00
"description": "reason contains a programmatic identifier indicating the reason for the condition's last transition.\nProducers of specific condition types may define expected values and meanings for this field,\nand whether the values are considered a guaranteed API.\nThe value should be a CamelCase string.\nThis field may not be empty.",
2023-03-08 12:21:48 +00:00
"maxLength": 1024,
"minLength": 1,
"pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
"type": "string"
},
"status": {
"description": "status of the condition, one of True, False, Unknown.",
"enum": [
"True",
"False",
"Unknown"
],
"type": "string"
},
"type": {
2024-09-30 17:30:58 +00:00
"description": "type of condition in CamelCase or in foo.example.com/CamelCase.",
2023-03-08 12:21:48 +00:00
"maxLength": 316,
"pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
"type": "string"
}
},
"required": [
"lastTransitionTime",
"message",
"reason",
"status",
"type"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"lastAppliedRevision": {
2024-05-14 11:44:32 +00:00
"description": "The last successfully applied revision.\nThe revision format for Git sources is <branch|tag>/<commit-sha>.",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"lastAttemptedRevision": {
"description": "LastAttemptedRevision is the revision of the last reconciliation attempt.",
"type": "string"
},
"lastHandledReconcileAt": {
2024-05-14 11:44:32 +00:00
"description": "LastHandledReconcileAt holds the value of the most recent\nreconcile request value, so a change of the annotation value\ncan be detected.",
2023-03-08 12:21:48 +00:00
"type": "string"
},
"observedGeneration": {
"description": "ObservedGeneration is the last reconciled generation.",
"format": "int64",
"type": "integer"
},
"snapshot": {
"description": "The last successfully applied revision metadata.",
"properties": {
"checksum": {
"description": "The manifests sha1 checksum.",
"type": "string"
},
"entries": {
"description": "A list of Kubernetes kinds grouped by namespace.",
"items": {
2024-05-14 11:44:32 +00:00
"description": "Snapshot holds the metadata of namespaced\nKubernetes objects",
2023-03-08 12:21:48 +00:00
"properties": {
"kinds": {
"additionalProperties": {
"type": "string"
},
"description": "The list of Kubernetes kinds.",
"type": "object"
},
"namespace": {
"description": "The namespace of this entry.",
"type": "string"
}
},
"required": [
"kinds"
],
"type": "object",
"additionalProperties": false
},
"type": "array"
}
},
"required": [
"checksum",
"entries"
],
"type": "object",
"additionalProperties": false
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object"
}