Skip to content

Commit 7ee1053

Browse files
author
CloudNativePG Automated Updates
committed
chore: sync API
1 parent 7fe38f2 commit 7ee1053

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

pkg/api/v1/cluster_types.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -795,8 +795,10 @@ type ManagedRoles struct {
795795
// +optional
796796
ByStatus map[RoleStatus][]string `json:"byStatus,omitempty"`
797797

798-
// CannotReconcile lists roles that cannot be reconciled in PostgreSQL,
799-
// with an explanation of the cause
798+
// CannotReconcile lists roles that cannot be reconciled, with an
799+
// explanation of the cause. Failures may originate in PostgreSQL
800+
// (e.g. dropping a role that owns objects) or in Kubernetes (e.g.
801+
// the referenced password Secret cannot be fetched).
800802
// +optional
801803
CannotReconcile map[string][]string `json:"cannotReconcile,omitempty"`
802804

@@ -2569,8 +2571,10 @@ type RoleConfiguration struct {
25692571
// +optional
25702572
Ensure EnsureOption `json:"ensure,omitempty"`
25712573

2572-
// Secret containing the password of the role (if present)
2573-
// If null, the password will be ignored unless DisablePassword is set
2574+
// Secret containing the password of the role (if present).
2575+
// If null, the password will be ignored unless DisablePassword is set.
2576+
// When set, the secret must follow the `kubernetes.io/basic-auth` format
2577+
// and contain both a `username` and a `password` field.
25742578
// +optional
25752579
PasswordSecret *LocalObjectReference `json:"passwordSecret,omitempty"`
25762580

0 commit comments

Comments
 (0)