move everything to src
All checks were successful
Build and Publish / build-release (push) Successful in 8m29s
All checks were successful
Build and Publish / build-release (push) Successful in 8m29s
This commit is contained in:
25
pkg/condition/pat.go
Normal file
25
pkg/condition/pat.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package conditions
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
|
||||
zitadelv1alpha1 "gitea.corredorconect.com/software-engineering/zitadel-resources-operator/api/v1alpha1"
|
||||
)
|
||||
|
||||
func SetPatOutOfDate(c Conditioner) {
|
||||
c.SetCondition(metav1.Condition{
|
||||
Type: zitadelv1alpha1.ConditionTypePATUpToDate,
|
||||
Status: metav1.ConditionFalse,
|
||||
Reason: zitadelv1alpha1.ConditionReasonRolesChanged,
|
||||
Message: "PAT out of date",
|
||||
})
|
||||
}
|
||||
|
||||
func SetPatUpToDate(c Conditioner) {
|
||||
c.SetCondition(metav1.Condition{
|
||||
Type: zitadelv1alpha1.ConditionTypePATUpToDate,
|
||||
Status: metav1.ConditionTrue,
|
||||
Reason: zitadelv1alpha1.ConditionReasonPATUpToDate,
|
||||
Message: "PAT up to date",
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user