Skip to content

Commit

Permalink
Rename conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
bouskaJ committed Feb 15, 2024
1 parent 363a896 commit 09f781f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion controllers/ctlog/actions/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ const (
ComponentName = "ctlog"
RBACName = "ctlog"

CertCondition = "FulcioCert"
CertCondition = "FulcioCertAvailable"
)
2 changes: 1 addition & 1 deletion controllers/fulcio/actions/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ const (
ServiceMonitorName = "fulcio-metrics"
RBACName = "fulcio"

CertCondition = "FulcioCert"
CertCondition = "FulcioCertAvailable"
)
2 changes: 1 addition & 1 deletion controllers/fulcio/actions/generate_cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (g generateCert) Handle(ctx context.Context, instance *v1alpha1.Fulcio) *ac

config, err := g.setupCert(instance)
if err != nil {
if !meta.IsStatusConditionFalse(instance.Status.Conditions, "FulcioCert") {
if !meta.IsStatusConditionFalse(instance.Status.Conditions, CertCondition) {
meta.SetStatusCondition(&instance.Status.Conditions, metav1.Condition{
Type: CertCondition,
Status: metav1.ConditionFalse,
Expand Down
6 changes: 3 additions & 3 deletions controllers/rekor/actions/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const (
RedisComponentName = "rekor-redis"
UIComponentName = "rekor-ui"
BackfillRedisCronJobName = "backfill-redis"
UICondition = "RekorUi"
ServerCondition = "Server"
RedisCondition = "Redis"
UICondition = "UiAvailable"
ServerCondition = "ServerAvailable"
RedisCondition = "RedisAvailable"
)
3 changes: 1 addition & 2 deletions controllers/tuf/actions/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ package actions
const (
ComponentName = "tuf"
DeploymentName = "tuf"

RBACName = "tuf"
RBACName = "tuf"
)

0 comments on commit 09f781f

Please sign in to comment.