Skip to content

Commit

Permalink
overrides: Allow clairpostgres to have resource overrides (PROJQUAY-6805
Browse files Browse the repository at this point in the history
)

- This patch makes sure that the component kind matches that found in the label of the clairpostgres component
  • Loading branch information
jonathankingfc committed Mar 18, 2024
1 parent 9c764aa commit 4bb5a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/middleware/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func Process(quay *v1.QuayRegistry, qctx *quaycontext.QuayRegistryContext, obj c
if dep, ok := obj.(*appsv1.Deployment); ok {
// override any environment variable being provided through the component
// Override.Env property. XXX this does not include InitContainers.
component := labels.Set(objectMeta.GetAnnotations()).Get("quay-component")
component := strings.ReplaceAll(labels.Set(objectMeta.GetAnnotations()).Get("quay-component"), "-", "")
kind := v1.ComponentKind(component)
if v1.ComponentIsManaged(quay.Spec.Components, kind) {
for _, oenv := range v1.GetEnvOverrideForComponent(quay, kind) {
Expand Down

0 comments on commit 4bb5a7d

Please sign in to comment.