GarageReplication v1beta1¶
API version: garage.rajsingh.info/v1beta1. Scope: Namespaced.
The custom-resource guide explains operational behavior. The JSON schemas are the validation source of truth.
Spec¶
GarageReplicationSpec defines the desired state of GarageReplication. GarageReplication copies objects between two independent Garage clusters through their S3 APIs, for replication and migration. It is not a backup: there are no point-in-time snapshots and no restore, and in mode Mirror a deletion or an overwrite on the source reaches the destination on the next run. Each run executes one Kubernetes Job per bucket in the GarageReplication's namespace, so the Jobs need network access to both S3 endpoints. Only objects (and their user metadata) are copied: buckets, keys, permissions, quotas, website and lifecycle configuration are not. Deleting a GarageReplication never deletes object data on either side.
| Field path | Type | Constraints | Description |
|---|---|---|---|
buckets |
array of object | required; min items: 1; max items: 50 | Buckets lists the buckets to replicate, keyed by destination bucket. |
buckets[].destination |
string | required; min length: 3; max length: 63; pattern: "^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$" | Destination is the bucket name (global alias) on the destination cluster. It is the list key, so destinations are unique. |
buckets[].source |
string | required; min length: 3; max length: 63; pattern: "^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$" | Source is the bucket name (global alias) on the source cluster. |
destination |
object | required; validation: exactly one of clusterRef or endpoint must be set; validation: clusterRef.kubeConfigSecretRef is not supported | Destination is the cluster objects are written to. Its credentials need read and write permission on the destination buckets. Destination buckets must already exist: replication never creates buckets. A destination bucket can be written by only one GarageReplication. |
destination.clusterRef |
object | ClusterRef references a GarageCluster (operator-managed or a management handle). The S3 endpoint and region are resolved from it. A cross-namespace reference requires a GarageReferenceGrant in the cluster's namespace that allows kind GarageReplication. | |
destination.clusterRef.kubeConfigSecretRef |
object | KubeConfigSecretRef is reserved for a future remote Kubernetes client integration. It is currently rejected by admission because the operator does not use it. | |
destination.clusterRef.kubeConfigSecretRef.key |
string | required | The key of the secret to select from. Must be a valid secret key. |
destination.clusterRef.kubeConfigSecretRef.name |
string | default: "" | 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 |
destination.clusterRef.kubeConfigSecretRef.optional |
boolean | Specify whether the Secret or its key must be defined | |
destination.clusterRef.name |
string | required; max length: 253 | Name of the GarageCluster resource. |
destination.clusterRef.namespace |
string | max length: 63 | Namespace of the GarageCluster. Defaults to the referencing resource's namespace. Cross-namespace references require a GarageReferenceGrant where supported by the owning resource. GarageNode and GarageAdminToken reject them. |
destination.credentialsSecretRef |
object | required; validation: accessKeyIdKey and secretAccessKeyKey must be different | CredentialsSecretRef references a Secret in the GarageReplication's namespace holding an S3 access key. The Secret must carry the label garage.rajsingh.info/replication-credentials: "true" (for a GarageKey, set it in spec.secretTemplate.labels). The access key ID is sent to the endpoint, so without this opt-in the right to create a GarageReplication would amount to reading any Secret, or using any other application's key. The default data keys match the Secret generated for a GarageKey. |
destination.credentialsSecretRef.accessKeyIdKey |
string | default: "access-key-id"; min length: 1; max length: 253; pattern: "^[-._a-zA-Z0-9]+$" | AccessKeyIDKey is the data key holding the access key ID. |
destination.credentialsSecretRef.name |
string | required; min length: 1; max length: 253; pattern: "^[a-z0-9]([-a-z0-9][a-z0-9])?(\.[a-z0-9]([-a-z0-9][a-z0-9])?)*$" | Name of the Secret in the GarageReplication's namespace. |
destination.credentialsSecretRef.secretAccessKeyKey |
string | default: "secret-access-key"; min length: 1; max length: 253; pattern: "^[-._a-zA-Z0-9]+$" | SecretAccessKeyKey is the data key holding the secret access key. |
destination.endpoint |
object | Endpoint is an S3 endpoint of any Garage cluster, inside or outside Kubernetes. | |
destination.endpoint.caBundleRef |
object | CABundleRef references a ConfigMap holding a PEM CA bundle used, in addition to the system trust store, to verify the endpoint's TLS certificate. | |
destination.endpoint.caBundleRef.key |
string | default: "ca.crt"; min length: 1; max length: 253; pattern: "^[-._a-zA-Z0-9]+$" | Key of the ConfigMap holding the PEM bundle. |
destination.endpoint.caBundleRef.name |
string | required; min length: 1; max length: 253; pattern: "^[a-z0-9]([-a-z0-9][a-z0-9])?(\.[a-z0-9]([-a-z0-9][a-z0-9])?)*$" | Name of the ConfigMap. |
destination.endpoint.region |
string | default: "garage"; min length: 1; max length: 128; pattern: "^[A-Za-z0-9_.-]+$" | Region is the Garage s3_region used for request signing. |
destination.endpoint.url |
string | required; min length: 1; max length: 2048; pattern: "^https?://[^\s/?#@]+/?$" | URL of the S3 API: scheme and host (with an optional port) only, e.g. https://s3.example.com or http://garage.ns.svc:3900. Buckets are addressed path-style below it, so it has no path, query, fragment or credentials. |
failedJobsHistoryLimit |
integer | default: 3; format: "int32"; min: 0; max: 50 | FailedJobsHistoryLimit is the number of finished failed Jobs to keep. |
mirror |
object | Mirror configures mode Mirror. Required when mode is Mirror and rejected otherwise. | |
mirror.maxDeleteSize |
string | max length: 32; pattern: "^[0-9]+(\.[0-9]+)?[KMGTkmgt]?$" | MaxDeleteSize caps the total size of the destination objects one run may delete per bucket, in bytes with an optional K, M, G or T suffix (binary multiples: KiB, MiB, GiB, TiB), e.g. "10G". Once reached the run stops and fails with reason MaxDeletesExceeded, like maxDeletes. Empty means no size cap. |
mirror.maxDeletes |
integer | required; format: "int64"; min: 1 | MaxDeletes caps the number of destination objects one run may delete per bucket. Once reached the run stops and fails with reason MaxDeletesExceeded; deletions done before that point are kept. |
mode |
string | default: "Copy"; enum: ["Copy", "Mirror"] | Mode controls whether changes on the source can remove data on the destination. - Copy: copy new and changed objects. Source deletions are not propagated. Changed objects are overwritten on the destination. - Mirror: the destination reflects the source, including deletions, capped by mirror.maxDeletes per bucket and run. The first run waits for the trigger-sync annotation. |
podTemplate |
object | PodTemplate customizes the replication Pods. | |
podTemplate.affinity |
object | Affinity for the Pods. | |
podTemplate.affinity.nodeAffinity |
object | Describes node affinity scheduling rules for the pod. | |
podTemplate.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution |
array of object | 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. | |
podTemplate.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference |
object | required | A node selector term, associated with the corresponding weight. |
podTemplate.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions |
array of object | A list of node selector requirements by node's labels. | |
podTemplate.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions[].key |
string | required | The label key that the selector applies to. |
podTemplate.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions[].operator |
string | required | Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. |
podTemplate.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions[].values |
array of string | 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. | |
podTemplate.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields |
array of object | A list of node selector requirements by node's fields. | |
podTemplate.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields[].key |
string | required | The label key that the selector applies to. |
podTemplate.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields[].operator |
string | required | Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. |
podTemplate.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields[].values |
array of string | 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. | |
podTemplate.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].weight |
integer | required; format: "int32" | Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. |
podTemplate.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution |
object | 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. | |
podTemplate.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms |
array of object | required | Required. A list of node selector terms. The terms are ORed. |
podTemplate.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions |
array of object | A list of node selector requirements by node's labels. | |
podTemplate.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions[].key |
string | required | The label key that the selector applies to. |
podTemplate.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions[].operator |
string | required | Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. |
podTemplate.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions[].values |
array of string | 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. | |
podTemplate.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields |
array of object | A list of node selector requirements by node's fields. | |
podTemplate.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields[].key |
string | required | The label key that the selector applies to. |
podTemplate.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields[].operator |
string | required | Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. |
podTemplate.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields[].values |
array of string | 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. | |
podTemplate.affinity.podAffinity |
object | Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). | |
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution |
array of object | 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. | |
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm |
object | required | Required. A pod affinity term, associated with the corresponding weight. |
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector |
object | A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. | |
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions |
array of object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | |
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].key |
string | required | key is the label key that the selector applies to. |
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].operator |
string | required | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. |
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].values |
array of string | 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. | |
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchLabels |
map of string | 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. | |
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.matchLabelKeys |
array of string | 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. |
|
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.mismatchLabelKeys |
array of string | 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. |
|
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector |
object | 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. | |
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions |
array of object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | |
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].key |
string | required | key is the label key that the selector applies to. |
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].operator |
string | required | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. |
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].values |
array of string | 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. | |
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchLabels |
map of string | 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. | |
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaces |
array of string | 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". | |
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.topologyKey |
string | required | 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. |
podTemplate.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].weight |
integer | required; format: "int32" | weight associated with matching the corresponding podAffinityTerm, in the range 1-100. |
podTemplate.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution |
array of object | 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. | |
podTemplate.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector |
object | A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. | |
podTemplate.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions |
array of object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | |
podTemplate.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].key |
string | required | key is the label key that the selector applies to. |
podTemplate.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].operator |
string | required | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. |
podTemplate.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].values |
array of string | 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. | |
podTemplate.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchLabels |
map of string | 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. | |
podTemplate.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].matchLabelKeys |
array of string | 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. |
|
podTemplate.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].mismatchLabelKeys |
array of string | 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. |
|
podTemplate.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector |
object | 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. | |
podTemplate.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions |
array of object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | |
podTemplate.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].key |
string | required | key is the label key that the selector applies to. |
podTemplate.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].operator |
string | required | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. |
podTemplate.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].values |
array of string | 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. | |
podTemplate.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchLabels |
map of string | 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. | |
podTemplate.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaces |
array of string | 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". | |
podTemplate.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].topologyKey |
string | required | 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. |
podTemplate.affinity.podAntiAffinity |
object | Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). | |
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution |
array of object | 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. | |
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm |
object | required | Required. A pod affinity term, associated with the corresponding weight. |
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector |
object | A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. | |
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions |
array of object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | |
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].key |
string | required | key is the label key that the selector applies to. |
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].operator |
string | required | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. |
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].values |
array of string | 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. | |
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchLabels |
map of string | 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. | |
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.matchLabelKeys |
array of string | 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. |
|
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.mismatchLabelKeys |
array of string | 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. |
|
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector |
object | 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. | |
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions |
array of object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | |
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].key |
string | required | key is the label key that the selector applies to. |
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].operator |
string | required | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. |
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].values |
array of string | 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. | |
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchLabels |
map of string | 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. | |
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaces |
array of string | 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". | |
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.topologyKey |
string | required | 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. |
podTemplate.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].weight |
integer | required; format: "int32" | weight associated with matching the corresponding podAffinityTerm, in the range 1-100. |
podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution |
array of object | 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. | |
podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector |
object | A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. | |
podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions |
array of object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | |
podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].key |
string | required | key is the label key that the selector applies to. |
podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].operator |
string | required | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. |
podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].values |
array of string | 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. | |
podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchLabels |
map of string | 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. | |
podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].matchLabelKeys |
array of string | 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. |
|
podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].mismatchLabelKeys |
array of string | 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. |
|
podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector |
object | 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. | |
podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions |
array of object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | |
podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].key |
string | required | key is the label key that the selector applies to. |
podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].operator |
string | required | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. |
podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].values |
array of string | 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. | |
podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchLabels |
map of string | 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. | |
podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaces |
array of string | 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". | |
podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].topologyKey |
string | required | 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. |
podTemplate.annotations |
map of string | Annotations added to the Pods. | |
podTemplate.labels |
map of string | Labels added to the Pods. | |
podTemplate.nodeSelector |
map of string | NodeSelector for the Pods. | |
podTemplate.priorityClassName |
string | max length: 253 | PriorityClassName for the Pods. |
podTemplate.tolerations |
array of object | Tolerations for the Pods. | |
podTemplate.tolerations[].effect |
string | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. | |
podTemplate.tolerations[].key |
string | 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. | |
podTemplate.tolerations[].operator |
string | 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). | |
podTemplate.tolerations[].tolerationSeconds |
integer | format: "int64" | 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. |
podTemplate.tolerations[].value |
string | Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. | |
resources |
object | Resources for the replication container. | |
resources.claims |
array of object | 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. | |
resources.claims[].name |
string | required | 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. |
resources.claims[].request |
string | 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. | |
resources.limits |
map of integer or string | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | |
resources.requests |
map of integer or string | 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/ | |
retry |
object | Retry bounds retries and duration of each per-bucket Job. | |
retry.activeDeadlineSeconds |
integer | default: 21600; format: "int64"; min: 60 | ActiveDeadlineSeconds bounds the duration of a per-bucket Job. |
retry.backoffLimit |
integer | default: 2; format: "int32"; min: 0; max: 10 | BackoffLimit is the number of Pod retries of a per-bucket Job. Each retry restarts the bucket's comparison; already copied objects are skipped. |
schedule |
string | max length: 128 | Schedule is a cron expression (standard 5-field syntax, descriptors such as @hourly, optional CRON_TZ= prefix; UTC otherwise). Without a schedule, runs happen only through the garage.rajsingh.info/trigger-sync annotation (one-shot mode, e.g. for migrations). |
source |
object | required; validation: exactly one of clusterRef or endpoint must be set; validation: clusterRef.kubeConfigSecretRef is not supported | Source is the cluster objects are read from. Its credentials only need read permission on the source buckets. |
source.clusterRef |
object | ClusterRef references a GarageCluster (operator-managed or a management handle). The S3 endpoint and region are resolved from it. A cross-namespace reference requires a GarageReferenceGrant in the cluster's namespace that allows kind GarageReplication. | |
source.clusterRef.kubeConfigSecretRef |
object | KubeConfigSecretRef is reserved for a future remote Kubernetes client integration. It is currently rejected by admission because the operator does not use it. | |
source.clusterRef.kubeConfigSecretRef.key |
string | required | The key of the secret to select from. Must be a valid secret key. |
source.clusterRef.kubeConfigSecretRef.name |
string | default: "" | 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 |
source.clusterRef.kubeConfigSecretRef.optional |
boolean | Specify whether the Secret or its key must be defined | |
source.clusterRef.name |
string | required; max length: 253 | Name of the GarageCluster resource. |
source.clusterRef.namespace |
string | max length: 63 | Namespace of the GarageCluster. Defaults to the referencing resource's namespace. Cross-namespace references require a GarageReferenceGrant where supported by the owning resource. GarageNode and GarageAdminToken reject them. |
source.credentialsSecretRef |
object | required; validation: accessKeyIdKey and secretAccessKeyKey must be different | CredentialsSecretRef references a Secret in the GarageReplication's namespace holding an S3 access key. The Secret must carry the label garage.rajsingh.info/replication-credentials: "true" (for a GarageKey, set it in spec.secretTemplate.labels). The access key ID is sent to the endpoint, so without this opt-in the right to create a GarageReplication would amount to reading any Secret, or using any other application's key. The default data keys match the Secret generated for a GarageKey. |
source.credentialsSecretRef.accessKeyIdKey |
string | default: "access-key-id"; min length: 1; max length: 253; pattern: "^[-._a-zA-Z0-9]+$" | AccessKeyIDKey is the data key holding the access key ID. |
source.credentialsSecretRef.name |
string | required; min length: 1; max length: 253; pattern: "^[a-z0-9]([-a-z0-9][a-z0-9])?(\.[a-z0-9]([-a-z0-9][a-z0-9])?)*$" | Name of the Secret in the GarageReplication's namespace. |
source.credentialsSecretRef.secretAccessKeyKey |
string | default: "secret-access-key"; min length: 1; max length: 253; pattern: "^[-._a-zA-Z0-9]+$" | SecretAccessKeyKey is the data key holding the secret access key. |
source.endpoint |
object | Endpoint is an S3 endpoint of any Garage cluster, inside or outside Kubernetes. | |
source.endpoint.caBundleRef |
object | CABundleRef references a ConfigMap holding a PEM CA bundle used, in addition to the system trust store, to verify the endpoint's TLS certificate. | |
source.endpoint.caBundleRef.key |
string | default: "ca.crt"; min length: 1; max length: 253; pattern: "^[-._a-zA-Z0-9]+$" | Key of the ConfigMap holding the PEM bundle. |
source.endpoint.caBundleRef.name |
string | required; min length: 1; max length: 253; pattern: "^[a-z0-9]([-a-z0-9][a-z0-9])?(\.[a-z0-9]([-a-z0-9][a-z0-9])?)*$" | Name of the ConfigMap. |
source.endpoint.region |
string | default: "garage"; min length: 1; max length: 128; pattern: "^[A-Za-z0-9_.-]+$" | Region is the Garage s3_region used for request signing. |
source.endpoint.url |
string | required; min length: 1; max length: 2048; pattern: "^https?://[^\s/?#@]+/?$" | URL of the S3 API: scheme and host (with an optional port) only, e.g. https://s3.example.com or http://garage.ns.svc:3900. Buckets are addressed path-style below it, so it has no path, query, fragment or credentials. |
successfulJobsHistoryLimit |
integer | default: 1; format: "int32"; min: 0; max: 50 | SuccessfulJobsHistoryLimit is the number of finished successful Jobs to keep. |
suspend |
boolean | Suspend stops starting new runs. A run already in progress finishes; delete its Jobs to stop it immediately. | |
transfer |
object | Transfer tunes the copy. | |
transfer.bandwidthLimit |
string | max length: 32; pattern: "^[0-9]+(\.[0-9]+)?[KMGkmg]?$" | BandwidthLimit caps the transfer rate of each per-bucket Job in bytes per second, with an optional K, M, G suffix (binary multiples: KiB/s, MiB/s, GiB/s), e.g. "50M". Empty means unlimited. |
transfer.checkers |
integer | default: 8; format: "int32"; min: 1; max: 128 | Checkers is the number of objects compared in parallel per bucket. |
transfer.concurrency |
integer | default: 4; format: "int32"; min: 1; max: 64 | Concurrency is the number of objects transferred in parallel per bucket. |
transfer.maxConcurrentBuckets |
integer | default: 1; format: "int32"; min: 1; max: 50 | MaxConcurrentBuckets is the number of buckets replicated in parallel. |
verification |
string | default: "None"; enum: ["None", "Check"] | Verification runs a comparison of source and destination after each successful copy. Check compares sizes and MD5 hashes (size only for multipart objects without a stored MD5) and fails the run on any difference. |
Cross-field validation¶
-
mirror must be set if and only if mode is Mirror:
has(self.mirror) == (has(self.mode) && self.mode == 'Mirror') -
a bucket cannot be replicated onto itself: source and destination are the same endpoint:
!(has(self.source.endpoint) && has(self.destination.endpoint) && self.source.endpoint.url == self.destination.endpoint.url) || self.buckets.all(b, b.source != b.destination)
Status¶
GarageReplicationStatus defines the observed state of GarageReplication.
| Field path | Type | Constraints | Description |
|---|---|---|---|
buckets |
array of object | Buckets reports per-bucket results, keyed by destination bucket. | |
buckets[].activeJob |
string | ActiveJob is the Job currently replicating this bucket. | |
buckets[].destination |
string | required | Destination bucket; the list key. |
buckets[].hold |
string | enum: ["SourceEmpty", "MaxDeletesExceeded", "AwaitingTrigger"] | Hold is set when this bucket must not run again without a person asking. Scheduled runs skip a held bucket. Only the trigger-sync annotation releases it; editing the spec does not. |
buckets[].lastCompletionTime |
string | format: "date-time" | LastCompletionTime is when LastJob finished. |
buckets[].lastError |
string | enum: ["AuthFailed", "BucketNotFound", "EndpointUnreachable", "SourceEmpty", "MaxDeletesExceeded", "VerificationFailed", "DeadlineExceeded", "TransferErrors", "Unknown"] | LastError is a fixed reason for a failed LastJob. |
buckets[].lastJob |
string | LastJob is the last finished Job recorded for this bucket. | |
buckets[].lastMode |
string | LastMode is the mode LastJob ran in. A Mirror bucket whose last Job did not run in Mirror mode waits for a trigger-sync (hold AwaitingTrigger) before its first Mirror run. | |
buckets[].lastResult |
string | enum: ["Succeeded", "Failed", "Cancelled"] | LastResult is the outcome of LastJob. |
buckets[].lastRunId |
string | LastRunID is the run of LastJob. | |
buckets[].lastStatistics |
object | LastStatistics are the copy engine's counters for LastJob. Unset when the engine reported none (e.g. the Pod was killed). | |
buckets[].lastStatistics.bytes |
integer | required; format: "int64" | Bytes is the number of bytes written to the destination. |
buckets[].lastStatistics.checks |
integer | required; format: "int64" | Checks is the number of objects compared and found up to date. |
buckets[].lastStatistics.deletes |
integer | required; format: "int64" | Deletes is the number of destination objects deleted (Mirror). |
buckets[].lastStatistics.differences |
integer | format: "int64" | Differences is the number of differences found by verification. |
buckets[].lastStatistics.elapsedSeconds |
integer | required; format: "int64" | ElapsedSeconds is the duration of the copy. |
buckets[].lastStatistics.errors |
integer | required; format: "int64" | Errors is the number of errors. |
buckets[].lastStatistics.transfers |
integer | required; format: "int64" | Transfers is the number of objects written to the destination. |
buckets[].lastSuccessfulTime |
string | format: "date-time" | LastSuccessfulTime is when the last successful Job for this bucket finished. |
buckets[].lastVerification |
string | enum: ["Passed", "Failed"] | LastVerification is the verification outcome when verification ran. |
buckets[].source |
string | required | Source bucket. |
conditions |
array of object | Conditions: Ready (configuration resolved; reasons include CredentialsNotAllowed and DestinationConflict), Synced (every bucket succeeded in the last run on the current configuration), Suspended. | |
conditions[].lastTransitionTime |
string | required; format: "date-time" | lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. |
conditions[].message |
string | required; max length: 32768 | message is a human readable message indicating details about the transition. This may be an empty string. |
conditions[].observedGeneration |
integer | format: "int64"; min: 0 | observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. |
conditions[].reason |
string | required; min length: 1; max length: 1024; pattern: "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$" | reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. |
conditions[].status |
string | required; enum: ["True", "False", "Unknown"] | status of the condition, one of True, False, Unknown. |
conditions[].type |
string | required; max length: 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 of condition in CamelCase or in foo.example.com/CamelCase. |
currentRun |
object | CurrentRun describes the run in progress. | |
currentRun.buckets |
array of string | Buckets lists the destination buckets taking part in the run. | |
currentRun.completionTime |
string | format: "date-time" | CompletionTime is when the run finished. |
currentRun.id |
string | required | ID identifies the run; it is part of the Job names. |
currentRun.reason |
string | required; enum: ["Initial", "Scheduled", "Triggered"] | Reason is why the run started. |
currentRun.result |
string | enum: ["Succeeded", "Failed", "Cancelled"] | Result is Succeeded when every bucket of the run succeeded, else Failed. |
currentRun.specHash |
string | SpecHash identifies the configuration the run started with. | |
currentRun.startTime |
string | required; format: "date-time" | StartTime is when the run started. |
currentRun.trigger |
string | Trigger is the trigger-sync annotation value that started the run. | |
lastOperation |
object | LastOperation records the outcome of the last trigger-sync annotation. | |
lastOperation.error |
string | Error contains the error message when Succeeded is false | |
lastOperation.succeeded |
boolean | Succeeded indicates the operation completed without error | |
lastOperation.triggeredAt |
string | format: "date-time" | TriggeredAt is when the operation was triggered |
lastOperation.type |
string | Type is the operation type (e.g. "Snapshot", "Repair:Blocks", "Scrub:start") | |
lastRun |
object | LastRun describes the most recent finished run. | |
lastRun.buckets |
array of string | Buckets lists the destination buckets taking part in the run. | |
lastRun.completionTime |
string | format: "date-time" | CompletionTime is when the run finished. |
lastRun.id |
string | required | ID identifies the run; it is part of the Job names. |
lastRun.reason |
string | required; enum: ["Initial", "Scheduled", "Triggered"] | Reason is why the run started. |
lastRun.result |
string | enum: ["Succeeded", "Failed", "Cancelled"] | Result is Succeeded when every bucket of the run succeeded, else Failed. |
lastRun.specHash |
string | SpecHash identifies the configuration the run started with. | |
lastRun.startTime |
string | required; format: "date-time" | StartTime is when the run started. |
lastRun.trigger |
string | Trigger is the trigger-sync annotation value that started the run. | |
lastScheduleTime |
string | format: "date-time" | LastScheduleTime is the start time of the most recent run. |
lastSuccessfulSyncTime |
string | format: "date-time" | LastSuccessfulSyncTime is when the most recent run in which every bucket succeeded finished. |
lastSyncTime |
string | format: "date-time" | LastSyncTime is when the most recent run finished, whatever its result. |
nextSyncTime |
string | format: "date-time" | NextSyncTime is when the next scheduled run starts. Unset without a schedule or while suspended. |
observedGeneration |
integer | format: "int64" | ObservedGeneration is the last observed generation. |
phase |
string | enum: ["Pending", "Idle", "Syncing", "Suspended", "Failed"] | Phase summarizes the state. |