Skip to content

Commit

Permalink
lint: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhra Deshpande committed Oct 10, 2024
1 parent f8d1fc9 commit 4b6fb6c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apis/quay/v1/quayregistry_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type ComponentKind string
// Follow a list of constants representing all supported components.
const (
ComponentQuay ComponentKind = "quay"
ComponentPostgres ComponentKind = "postgres"
ComponentPostgres ComponentKind = "postgres"
ComponentClair ComponentKind = "clair"
ComponentClairPostgres ComponentKind = "clairpostgres"
ComponentRedis ComponentKind = "redis"
Expand Down Expand Up @@ -170,7 +170,7 @@ const (
ConditionTypeRolloutBlocked ConditionType = "RolloutBlocked"
ConditionComponentsCreated ConditionType = "ComponentsCreated"
ComponentQuayReady ConditionType = "ComponentQuayReady"
ComponentPostgresReady ConditionType = "ComponentPostgresReady"
ComponentPostgresReady ConditionType = "ComponentPostgresReady"
ComponentClairReady ConditionType = "ComponentClairReady"
ComponentClairPostgresReady ConditionType = "ComponentClairPostgresReady"
ComponentRedisReady ConditionType = "ComponentRedisReady"
Expand Down
2 changes: 1 addition & 1 deletion controllers/quay/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ func (r *QuayRegistryReconciler) checkNeedsPostgresUpgradeForComponent(
upgradeField *bool
}{
v1.ComponentClairPostgres: {"clair-postgres", &qctx.NeedsClairPgUpgrade},
v1.ComponentPostgres: {"quay-database", &qctx.NeedsPgUpgrade},
v1.ComponentPostgres: {"quay-database", &qctx.NeedsPgUpgrade},
}

info, ok := componentInfo[component]
Expand Down
4 changes: 2 additions & 2 deletions pkg/kustomize/kustomize.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ func ComponentImageFor(component v1.ComponentKind) (types.Image, error) {
v1.ComponentQuay: componentImagePrefix + "QUAY",
v1.ComponentClair: componentImagePrefix + "CLAIR",
v1.ComponentRedis: componentImagePrefix + "REDIS",
v1.ComponentPostgres: componentImagePrefix + "QUAY_POSTGRES",
v1.ComponentPostgres: componentImagePrefix + "QUAY_POSTGRES",
v1.ComponentClairPostgres: componentImagePrefix + "CLAIR_POSTGRES",
}
defaultImagesFor := map[v1.ComponentKind]string{
v1.ComponentQuay: "quay.io/projectquay/quay",
v1.ComponentClair: "quay.io/projectquay/clair",
v1.ComponentRedis: "docker.io/library/redis",
v1.ComponentPostgres: "quay.io/sclorg/postgresql-13-c9s",
v1.ComponentPostgres: "quay.io/sclorg/postgresql-13-c9s",
v1.ComponentClairPostgres: "quay.io/sclorg/postgresql-15-c9s",
}

Expand Down

0 comments on commit 4b6fb6c

Please sign in to comment.