chore: Update manifests after change

This commit is contained in:
2026-03-14 19:57:07 +00:00
parent 798bc54e41
commit 45d2a9728f
5 changed files with 604 additions and 21 deletions

View File

@@ -197,13 +197,17 @@ spec:
By default, the Secret field 'ca.crt' provisioned by cert-manager will be added to the trust chain. A custom trust bundle may be specified via clientCASecretRef.
properties:
group:
description: Group of the resource being referred to.
description: |-
Group of the issuer being referred to.
Defaults to 'cert-manager.io'.
type: string
kind:
description: Kind of the resource being referred to.
description: |-
Kind of the issuer being referred to.
Defaults to 'Issuer'.
type: string
name:
description: Name of the resource being referred to.
description: Name of the issuer being referred to.
type: string
required:
- name
@@ -258,13 +262,17 @@ spec:
By default, the Secret field 'ca.crt' provisioned by cert-manager will be added to the trust chain. A custom trust bundle may be specified via serverCASecretRef.
properties:
group:
description: Group of the resource being referred to.
description: |-
Group of the issuer being referred to.
Defaults to 'cert-manager.io'.
type: string
kind:
description: Kind of the resource being referred to.
description: |-
Kind of the issuer being referred to.
Defaults to 'Issuer'.
type: string
name:
description: Name of the resource being referred to.
description: Name of the issuer being referred to.
type: string
required:
- name

View File

@@ -287,6 +287,60 @@ spec:
bootstrapFrom:
description: BootstrapFrom defines a source to bootstrap from.
properties:
azureBlob:
description: |-
AzureBlob defines the configuration to restore from Azure Blob compatible storage.
This field takes precedence over the Volume source.
properties:
containerName:
description: ContainerName is the name of the storage container.
type: string
prefix:
description: 'Prefix indicates a folder/subfolder in the container. For example: mariadb/ or mariadb/backups. A trailing slash ''/'' is added if not provided.'
type: string
serviceURL:
description: 'ServiceURL is the full URL for connecting to Azure, usually in the form: http(s)://<account>.blob.core.windows.net/.'
type: string
storageAccountKey:
description: StorageAccountKey is a reference to a Secret key containing the Azure Blob Storage Storage account Key. Pairs with StorageAccountKey for static credential authentication
properties:
key:
type: string
name:
default: ""
type: string
required:
- key
type: object
x-kubernetes-map-type: atomic
storageAccountName:
description: StorageAccountName is the name of the storage account. Pairs with StorageAccountKey for static credential authentication
type: string
tls:
description: TLS provides the configuration required to establish TLS connections with Azure Blob Storage.
properties:
caSecretKeyRef:
description: |-
CASecretKeyRef is a reference to a Secret key containing a CA bundle in PEM format used to establish TLS connections with S3.
By default, the system trust chain will be used, but you can use this field to add more CAs to the bundle.
properties:
key:
type: string
name:
default: ""
type: string
required:
- key
type: object
x-kubernetes-map-type: atomic
enabled:
description: Enabled is a flag to enable TLS.
type: boolean
type: object
required:
- containerName
- serviceURL
type: object
backupContentType:
description: |-
BackupContentType is the backup content type available in the source to bootstrap from.
@@ -308,8 +362,30 @@ spec:
description: Name of the referent.
type: string
type: object
logLevel:
default: info
description: LogLevel to be used in the mariadb-operator container of the restoration Job. It defaults to 'info'.
enum:
- debug
- info
- warn
- error
- dpanic
- panic
- fatal
type: string
pointInTimeRecoveryRef:
description: |-
PointInTimeRecoveryRef is a reference to a PointInTimeRecovery object.
Providing this field implies restoring the PhysicalBackup referenced in the PointInTimeRecovery object and replaying the
archived binary logs up to the point-in-time restoration target, defined by the targetRecoveryTime field.
properties:
name:
default: ""
type: string
type: object
restoreJob:
description: RestoreJob defines additional properties for the Job used to perform the restoration.
description: RestoreJob defines additional properties for the restoration Job.
properties:
affinity:
description: Affinity to be used in the Pod.
@@ -724,7 +800,7 @@ spec:
type: object
stagingStorage:
description: |-
StagingStorage defines the temporary storage used to keep external backups (i.e. S3) while they are being processed.
StagingStorage defines the temporary storage used to keep external backups and binary logs (i.e. S3) while they are being processed.
It defaults to an emptyDir volume, meaning that the backups will be temporarily stored in the node where the Job is scheduled.
properties:
persistentVolumeClaim:
@@ -1061,6 +1137,12 @@ spec:
database:
description: Database is the name of the initial Database.
type: string
enableServiceLinks:
description: |-
EnableServiceLinks indicates whether information about services should be injected into pod's
environment variables, matching the syntax of Docker links. Defaults to true if not specified.
Set to false to disable injection of service link environment variables.
type: boolean
env:
description: Env represents the environment variables to be injected in a container.
items:
@@ -2408,7 +2490,7 @@ spec:
maxScaleRef:
description: |-
MaxScaleRef is a reference to a MaxScale resource to be used with the current MariaDB.
Providing this field implies delegating high availability tasks such as primary failover to MaxScale.
Providing this reference implies delegating high availability tasks such as primary failover to MaxScale.
properties:
name:
type: string
@@ -3130,6 +3212,15 @@ spec:
type: array
x-kubernetes-list-type: atomic
type: object
pointInTimeRecoveryRef:
description: |-
PointInTimeRecoveryRef is a reference to a PointInTimeRecovery resource to be used with the current MariaDB.
Providing this reference implies configuring binary logs in the MariaDB instance and binary log archival in the sidecar agent.
properties:
name:
default: ""
type: string
type: object
port:
default: 3306
description: Port where the instances will be listening for connections.
@@ -3217,6 +3308,9 @@ spec:
externalTrafficPolicy:
description: ExternalTrafficPolicy Service field.
type: string
loadBalancerClass:
description: LoadBalancerClass Service field.
type: string
loadBalancerIP:
description: LoadBalancerIP Service field.
type: string
@@ -4674,6 +4768,9 @@ spec:
externalTrafficPolicy:
description: ExternalTrafficPolicy Service field.
type: string
loadBalancerClass:
description: LoadBalancerClass Service field.
type: string
loadBalancerIP:
description: LoadBalancerIP Service field.
type: string
@@ -4755,6 +4852,9 @@ spec:
externalTrafficPolicy:
description: ExternalTrafficPolicy Service field.
type: string
loadBalancerClass:
description: LoadBalancerClass Service field.
type: string
loadBalancerIP:
description: LoadBalancerIP Service field.
type: string
@@ -5170,13 +5270,17 @@ spec:
By default, the Secret field 'ca.crt' provisioned by cert-manager will be added to the trust chain. A custom trust bundle may be specified via clientCASecretRef.
properties:
group:
description: Group of the resource being referred to.
description: |-
Group of the issuer being referred to.
Defaults to 'cert-manager.io'.
type: string
kind:
description: Kind of the resource being referred to.
description: |-
Kind of the issuer being referred to.
Defaults to 'Issuer'.
type: string
name:
description: Name of the resource being referred to.
description: Name of the issuer being referred to.
type: string
required:
- name
@@ -5225,13 +5329,17 @@ spec:
By default, the Secret field 'ca.crt' provisioned by cert-manager will be added to the trust chain. A custom trust bundle may be specified via serverCASecretRef.
properties:
group:
description: Group of the resource being referred to.
description: |-
Group of the issuer being referred to.
Defaults to 'cert-manager.io'.
type: string
kind:
description: Kind of the resource being referred to.
description: |-
Kind of the issuer being referred to.
Defaults to 'Issuer'.
type: string
name:
description: Name of the resource being referred to.
description: Name of the issuer being referred to.
type: string
required:
- name
@@ -5482,6 +5590,110 @@ spec:
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
type: object
ephemeral:
description: 'Refer to the Kubernetes docs: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.35/#ephemeralvolumesource-v1-core.'
properties:
volumeClaimTemplate:
description: VolumeClaimTemplate defines a template to customize PVC objects.
properties:
accessModes:
items:
type: string
type: array
x-kubernetes-list-type: atomic
metadata:
description: Metadata to be added to the PVC metadata.
properties:
annotations:
additionalProperties:
type: string
description: Annotations to be added to children resources.
type: object
labels:
additionalProperties:
type: string
description: Labels to be added to children resources.
type: object
type: object
resources:
description: VolumeResourceRequirements describes the storage resource requirements for a volume.
properties:
limits:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: |-
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
selector:
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.
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
storageClassName:
type: string
type: object
type: object
hostPath:
description: 'Refer to the Kubernetes docs: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.35/#hostpathvolumesource-v1-core'
properties:
@@ -5657,6 +5869,34 @@ spec:
description: State is a per Pod representation of the Galera state file (grastate.dat).
type: object
type: object
pointInTimeRecovery:
description: PointInTimeRecovery is the status of the point-in-time-recovery process.
properties:
gtidStrictModePaused:
description: GtidStrictModePaused indicates that gtid_strict_mode has been temporarily paused to replay binlogs.
type: boolean
lastArchivedBinaryLog:
description: LastArchivedBinaryLog is name of the last archived binary log.
type: string
lastArchivedGtid:
description: LastArchivedGtid is the last archived GTID.
type: string
lastArchivedPosition:
description: LastArchivedPosition is the position of last archived binary log event.
format: int32
type: integer
lastArchivedTime:
description: LastArchivedTime is the time of the last archived binary log event.
format: date-time
type: string
serverId:
description: ServerId identifies the server whose binary logs are being archived.
format: int32
type: integer
storageReadyForArchival:
description: StorageReadyForArchival indicates that the storage is ready for archival, meaning that the sidecar agent can start archiving the binary logs.
type: boolean
type: object
replicas:
description: Replicas indicates the number of current instances.
format: int32

View File

@@ -652,6 +652,12 @@ spec:
description: ServiceName to be used in the Connection.
type: string
type: object
enableServiceLinks:
description: |-
EnableServiceLinks indicates whether information about services should be injected into pod's
environment variables, matching the syntax of Docker links. Defaults to true if not specified.
Set to false to disable injection of service link environment variables.
type: boolean
env:
description: Env represents the environment variables to be injected in a container.
items:
@@ -737,6 +743,9 @@ spec:
externalTrafficPolicy:
description: ExternalTrafficPolicy Service field.
type: string
loadBalancerClass:
description: LoadBalancerClass Service field.
type: string
loadBalancerIP:
description: LoadBalancerIP Service field.
type: string
@@ -816,6 +825,9 @@ spec:
externalTrafficPolicy:
description: ExternalTrafficPolicy Service field.
type: string
loadBalancerClass:
description: LoadBalancerClass Service field.
type: string
loadBalancerIP:
description: LoadBalancerIP Service field.
type: string
@@ -1894,13 +1906,17 @@ spec:
By default, the Secret field 'ca.crt' provisioned by cert-manager will be added to the trust chain. A custom trust bundle may be specified via adminCASecretRef.
properties:
group:
description: Group of the resource being referred to.
description: |-
Group of the issuer being referred to.
Defaults to 'cert-manager.io'.
type: string
kind:
description: Kind of the resource being referred to.
description: |-
Kind of the issuer being referred to.
Defaults to 'Issuer'.
type: string
name:
description: Name of the resource being referred to.
description: Name of the issuer being referred to.
type: string
required:
- name
@@ -1936,13 +1952,17 @@ spec:
By default, the Secret field 'ca.crt' provisioned by cert-manager will be added to the trust chain. A custom trust bundle may be specified via listenerCASecretRef.
properties:
group:
description: Group of the resource being referred to.
description: |-
Group of the issuer being referred to.
Defaults to 'cert-manager.io'.
type: string
kind:
description: Kind of the resource being referred to.
description: |-
Kind of the issuer being referred to.
Defaults to 'Issuer'.
type: string
name:
description: Name of the resource being referred to.
description: Name of the issuer being referred to.
type: string
required:
- name

View File

@@ -276,6 +276,11 @@ spec:
immediate:
description: Immediate indicates whether the first backup should be taken immediately after creating the PhysicalBackup.
type: boolean
onDemand:
description: |-
OnDemand is an identifier used to trigger an on-demand backup.
If the identifier is different than the one tracked under status.lastScheduleOnDemand, a new physical backup will be triggered.
type: string
suspend:
default: false
description: Suspend defines whether the schedule is active or not.
@@ -489,6 +494,58 @@ spec:
storage:
description: Storage defines the final storage for backups.
properties:
azureBlob:
description: AzureBlob defines the configuration to store backups in a AzureBlob compatible storage.
properties:
containerName:
description: ContainerName is the name of the storage container.
type: string
prefix:
description: 'Prefix indicates a folder/subfolder in the container. For example: mariadb/ or mariadb/backups. A trailing slash ''/'' is added if not provided.'
type: string
serviceURL:
description: 'ServiceURL is the full URL for connecting to Azure, usually in the form: http(s)://<account>.blob.core.windows.net/.'
type: string
storageAccountKey:
description: StorageAccountKey is a reference to a Secret key containing the Azure Blob Storage Storage account Key. Pairs with StorageAccountKey for static credential authentication
properties:
key:
type: string
name:
default: ""
type: string
required:
- key
type: object
x-kubernetes-map-type: atomic
storageAccountName:
description: StorageAccountName is the name of the storage account. Pairs with StorageAccountKey for static credential authentication
type: string
tls:
description: TLS provides the configuration required to establish TLS connections with Azure Blob Storage.
properties:
caSecretKeyRef:
description: |-
CASecretKeyRef is a reference to a Secret key containing a CA bundle in PEM format used to establish TLS connections with S3.
By default, the system trust chain will be used, but you can use this field to add more CAs to the bundle.
properties:
key:
type: string
name:
default: ""
type: string
required:
- key
type: object
x-kubernetes-map-type: atomic
enabled:
description: Enabled is a flag to enable TLS.
type: boolean
type: object
required:
- containerName
- serviceURL
type: object
persistentVolumeClaim:
description: PersistentVolumeClaim is a Kubernetes PVC specification.
properties:
@@ -896,6 +953,9 @@ spec:
description: LastScheduleCheckTime is the last time that the schedule was checked.
format: date-time
type: string
lastScheduleOnDemand:
description: LastScheduleOnDemand is the last on-demand schedule identifier.
type: string
lastScheduleTime:
description: LastScheduleTime is the last time that a backup was scheduled.
format: date-time

View File

@@ -0,0 +1,255 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.20.0
name: pointintimerecoveries.k8s.mariadb.com
spec:
group: k8s.mariadb.com
names:
kind: PointInTimeRecovery
listKind: PointInTimeRecoveryList
plural: pointintimerecoveries
shortNames:
- pitr
singular: pointintimerecovery
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .spec.physicalBackupRef.name
name: Physical Backup
type: string
- jsonPath: .status.lastRecoverableTime
name: Last Recoverable Time
type: string
- jsonPath: .spec.strictMode
name: Strict Mode
type: boolean
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: PointInTimeRecovery is the Schema for the pointintimerecoveries API. It contains binlog archival and point-in-time restoration settings.
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: PointInTimeRecoverySpec defines the desired state of PointInTimeRecovery. It contains binlog archive and point-in-time restoration settings.
properties:
archiveTimeout:
default: 1h
description: |-
ArchiveTimeout defines the maximum duration for the binary log archival.
If this duration is exceeded, the sidecar agent will log an error and it will be retried in the next archive cycle.
It defaults to 1 hour.
type: string
compression:
description: |-
Compression algorithm to be used for compressing the binary logs.
This field is immutable, it cannot be updated after creation.
enum:
- none
- bzip2
- gzip
type: string
physicalBackupRef:
description: PhysicalBackupRef is a reference to a PhysicalBackup object that will be used as base backup.
properties:
name:
default: ""
type: string
type: object
storage:
description: PointInTimeRecoveryStorage is the storage where the point in time recovery data will be stored
properties:
azureBlob:
description: AzureBlob is the Azure Blob Storage where the binary logs will be kept.
properties:
containerName:
description: ContainerName is the name of the storage container.
type: string
prefix:
description: 'Prefix indicates a folder/subfolder in the container. For example: mariadb/ or mariadb/backups. A trailing slash ''/'' is added if not provided.'
type: string
serviceURL:
description: 'ServiceURL is the full URL for connecting to Azure, usually in the form: http(s)://<account>.blob.core.windows.net/.'
type: string
storageAccountKey:
description: StorageAccountKey is a reference to a Secret key containing the Azure Blob Storage Storage account Key. Pairs with StorageAccountKey for static credential authentication
properties:
key:
type: string
name:
default: ""
type: string
required:
- key
type: object
x-kubernetes-map-type: atomic
storageAccountName:
description: StorageAccountName is the name of the storage account. Pairs with StorageAccountKey for static credential authentication
type: string
tls:
description: TLS provides the configuration required to establish TLS connections with Azure Blob Storage.
properties:
caSecretKeyRef:
description: |-
CASecretKeyRef is a reference to a Secret key containing a CA bundle in PEM format used to establish TLS connections with S3.
By default, the system trust chain will be used, but you can use this field to add more CAs to the bundle.
properties:
key:
type: string
name:
default: ""
type: string
required:
- key
type: object
x-kubernetes-map-type: atomic
enabled:
description: Enabled is a flag to enable TLS.
type: boolean
type: object
required:
- containerName
- serviceURL
type: object
s3:
description: S3 is the S3-compatible storage where the binary logs will be kept.
properties:
accessKeyIdSecretKeyRef:
description: AccessKeyIdSecretKeyRef is a reference to a Secret key containing the S3 access key id.
properties:
key:
type: string
name:
default: ""
type: string
required:
- key
type: object
x-kubernetes-map-type: atomic
bucket:
description: Bucket is the name Name of the bucket to store backups.
type: string
endpoint:
description: Endpoint is the S3 API endpoint without scheme.
type: string
prefix:
description: 'Prefix indicates a folder/subfolder in the bucket. For example: mariadb/ or mariadb/backups. A trailing slash ''/'' is added if not provided.'
type: string
region:
description: Region is the S3 region name to use.
type: string
secretAccessKeySecretKeyRef:
description: AccessKeyIdSecretKeyRef is a reference to a Secret key containing the S3 secret key.
properties:
key:
type: string
name:
default: ""
type: string
required:
- key
type: object
x-kubernetes-map-type: atomic
sessionTokenSecretKeyRef:
description: SessionTokenSecretKeyRef is a reference to a Secret key containing the S3 session token.
properties:
key:
type: string
name:
default: ""
type: string
required:
- key
type: object
x-kubernetes-map-type: atomic
ssec:
description: |-
SSEC is a reference to a Secret containing the SSE-C (Server-Side Encryption with Customer-Provided Keys) key.
The secret must contain a 32-byte key (256 bits) in the specified key.
This enables server-side encryption where you provide and manage the encryption key.
properties:
customerKeySecretKeyRef:
description: |-
CustomerKeySecretKeyRef is a reference to a Secret key containing the SSE-C customer-provided encryption key.
The key must be a 32-byte (256-bit) key encoded in base64.
properties:
key:
type: string
name:
default: ""
type: string
required:
- key
type: object
x-kubernetes-map-type: atomic
required:
- customerKeySecretKeyRef
type: object
tls:
description: TLS provides the configuration required to establish TLS connections with S3.
properties:
caSecretKeyRef:
description: |-
CASecretKeyRef is a reference to a Secret key containing a CA bundle in PEM format used to establish TLS connections with S3.
By default, the system trust chain will be used, but you can use this field to add more CAs to the bundle.
properties:
key:
type: string
name:
default: ""
type: string
required:
- key
type: object
x-kubernetes-map-type: atomic
enabled:
description: Enabled is a flag to enable TLS.
type: boolean
type: object
required:
- bucket
- endpoint
type: object
type: object
strictMode:
description: |-
StrictMode controls the behavior when a point-in-time restoration cannot reach the exact target time:
When enabled: Returns an error and avoids replaying binary logs if target time is not reached.
When disabled (default): Replays available binary logs until the last recoverable time. It logs logs an error if target time is not reached.
type: boolean
required:
- physicalBackupRef
- storage
type: object
status:
description: PointInTimeRecoveryStatus represents the current status of the point-in-time-recovery.
properties:
lastRecoverableTime:
description: LastRecoverableTime is the most recent recoverable time based on the current state of physical backups and archived binary logs.
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}