@@ -91,11 +91,11 @@ type RoleParameters struct {
9191 // +optional
9292 ConfigurationParameters * []RoleConfigurationParameter `json:"configurationParameters,omitempty"`
9393
94- // PasswordResetToken can be set to any string to trigger a one-time password reset.
95- // Useful after restoring a database from a snapshot, where roles already exist in the DB but
96- // the connection secret may be empty. Change the token value to trigger another reset .
94+ // PasswordReset controls behaviour when the role exists in the database but the connection
95+ // secret has no password.
96+ // When true, a new password is generated and written to the connection secret .
9797 // +optional
98- PasswordResetToken * string `json:"passwordResetToken ,omitempty"`
98+ PasswordReset * bool `json:"passwordReset ,omitempty"`
9999}
100100
101101// RoleConfigurationParameter is a role configuration parameter.
@@ -111,10 +111,6 @@ type RoleObservation struct {
111111 PrivilegesAsClauses []string `json:"privilegesAsClauses,omitempty"`
112112 // ConfigurationParameters represents the applied configuration parameters for the PostgreSQL role.
113113 ConfigurationParameters * []RoleConfigurationParameter `json:"configurationParameters,omitempty"`
114- // LastPasswordResetToken tracks the passwordResetToken value at which the last password reset was applied.
115- // Used to prevent repeated resets when spec.forProvider.passwordResetToken is set.
116- // +optional
117- LastPasswordResetToken * string `json:"lastPasswordResetToken,omitempty"`
118114}
119115
120116// +kubebuilder:object:root=true
0 commit comments