Skip to content

Commit a86512e

Browse files
committed
Add the activeDeadlineSeconds attribute to the backup pod
1 parent 09a7aa7 commit a86512e

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

api/v1alpha1/backup_types.go

+4
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ type BackupSpec struct {
132132
// +optional
133133
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:advanced"}
134134
InheritMetadata *Metadata `json:"inheritMetadata,omitempty"`
135+
// ActiveDeadlineSeconds defines the maximum amount of time in seconds that the Backup Job can run.
136+
// +optionsl
137+
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:number","urn:alm:descriptor:com.tectonic.ui:advanced"}
138+
ActiveDeadlineSeconds int32 `json:"activeDeadlineSeconds,omitempty"`
135139
}
136140

137141
// BackupStatus defines the observed state of Backup

config/crd/bases/k8s.mariadb.com_backups.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ spec:
5555
spec:
5656
description: BackupSpec defines the desired state of Backup
5757
properties:
58+
activeDeadlineSeconds:
59+
description: ActiveDeadlineSeconds defines the maximum amount of time
60+
in seconds that the Backup Job can run.
61+
format: int32
62+
type: integer
5863
affinity:
5964
description: Affinity to be used in the Pod.
6065
properties:

deploy/charts/mariadb-operator-crds/templates/crds.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ spec:
5454
spec:
5555
description: BackupSpec defines the desired state of Backup
5656
properties:
57+
activeDeadlineSeconds:
58+
description: ActiveDeadlineSeconds defines the maximum amount of time
59+
in seconds that the Backup Job can run.
60+
format: int32
61+
type: integer
5762
affinity:
5863
description: Affinity to be used in the Pod.
5964
properties:

0 commit comments

Comments
 (0)