Skip to content

Commit 623ee7a

Browse files
committed
Regenerate CRDs and fix pre-existing vet warning after k8s 0.36 bump
Following the kubernetes group bump to 0.36.0: - Regenerate CRDs to drop the stale `ProcMountType` feature-flag description (the feature was promoted to GA in upstream Kubernetes 1.36, so the description text was simplified). - Fix a pre-existing printf-style call to `EventRecorder.Eventf` that passed `repoName` as a vararg without a matching format directive. Go 1.26's stricter vet (now in use after the go.mod toolchain bump) flags this; older vet did not.
1 parent 3582748 commit 623ee7a

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

config/dev/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10654,7 +10654,6 @@ spec:
1065410654
procMount denotes the type of proc mount to use for the containers.
1065510655
The default value is Default which uses the container runtime defaults for
1065610656
readonly paths and masked paths.
10657-
This requires the ProcMountType feature flag to be enabled.
1065810657
Note that this field cannot be set when spec.os.name is windows.
1065910658
type: string
1066010659
readOnlyRootFilesystem:
@@ -16500,7 +16499,6 @@ spec:
1650016499
procMount denotes the type of proc mount to use for the containers.
1650116500
The default value is Default which uses the container runtime defaults for
1650216501
readonly paths and masked paths.
16503-
This requires the ProcMountType feature flag to be enabled.
1650416502
Note that this field cannot be set when spec.os.name is windows.
1650516503
type: string
1650616504
readOnlyRootFilesystem:
@@ -30818,7 +30816,6 @@ spec:
3081830816
procMount denotes the type of proc mount to use for the containers.
3081930817
The default value is Default which uses the container runtime defaults for
3082030818
readonly paths and masked paths.
30821-
This requires the ProcMountType feature flag to be enabled.
3082230819
Note that this field cannot be set when spec.os.name is windows.
3082330820
type: string
3082430821
readOnlyRootFilesystem:
@@ -36663,7 +36660,6 @@ spec:
3666336660
procMount denotes the type of proc mount to use for the containers.
3666436661
The default value is Default which uses the container runtime defaults for
3666536662
readonly paths and masked paths.
36666-
This requires the ProcMountType feature flag to be enabled.
3666736663
Note that this field cannot be set when spec.os.name is windows.
3666836664
type: string
3666936665
readOnlyRootFilesystem:

internal/controller/postgrescluster/pgbackrest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2514,7 +2514,7 @@ func (r *Reconciler) reconcileManualBackup(ctx context.Context,
25142514
for _, opt := range backupOpts {
25152515
if strings.Contains(opt, "--repo=") || strings.Contains(opt, "--repo ") {
25162516
r.Recorder.Eventf(postgresCluster, corev1.EventTypeWarning, "InvalidManualBackup",
2517-
"Option '--repo' is not allowed: please use the 'repoName' field instead.",
2517+
"Option '--repo' is not allowed for repo %q: please use the 'repoName' field instead.",
25182518
repoName)
25192519
return nil
25202520
}

0 commit comments

Comments
 (0)