Reissue PAT if roles changed
[ZITADOPER-1]
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
package v1alpha1
|
||||
|
||||
const (
|
||||
ConditionTypeReady string = "Ready"
|
||||
ConditionTypeBackupRestored string = "BackupRestored"
|
||||
ConditionTypeReplicationConfigured string = "ReplicationConfigured"
|
||||
ConditionTypeComplete string = "Complete"
|
||||
ConditionTypeReady string = "Ready"
|
||||
ConditionTypePATUpToDate string = "PATUpToDate"
|
||||
|
||||
ConditionReasonRolesChanged string = "RolesChanged"
|
||||
ConditionReasonPATUpToDate string = "UpToDate"
|
||||
|
||||
ConditionReasonDeploymentNotReady string = "DeploymentNotReady"
|
||||
ConditionReasonDeploymentReady string = "DeploymentReady"
|
||||
|
||||
@@ -66,6 +66,13 @@ func (d *MachineUserStatus) SetCondition(condition metav1.Condition) {
|
||||
meta.SetStatusCondition(&d.Conditions, condition)
|
||||
}
|
||||
|
||||
func (d *MachineUserStatus) GetConditionStatus(conditionType string) bool {
|
||||
if d.Conditions == nil {
|
||||
d.Conditions = make([]metav1.Condition, 0)
|
||||
}
|
||||
return meta.IsStatusConditionTrue(d.Conditions, conditionType)
|
||||
}
|
||||
|
||||
//+kubebuilder:object:root=true
|
||||
//+kubebuilder:subresource:status
|
||||
|
||||
|
||||
Reference in New Issue
Block a user