Skip to content

We must not create the namespace nor operator group when gitOpsSubNamespace is empty or null#50

Merged
mbaldessari merged 2 commits into
validatedpatterns:mainfrom
mbaldessari:fix-anotherissue
Mar 13, 2026
Merged

We must not create the namespace nor operator group when gitOpsSubNamespace is empty or null#50
mbaldessari merged 2 commits into
validatedpatterns:mainfrom
mbaldessari:fix-anotherissue

Conversation

@mbaldessari
Copy link
Copy Markdown
Contributor

Otherwise the old operator with the new chart will try and actually push
the namespace + operatorgroup policies with names like this:

  • complianceType: mustonlyhave
    objectDefinition:
    apiVersion: v1
    kind: Namespace
    metadata: {}
  • complianceType: mustonlyhave
    objectDefinition:
    apiVersion: operators.coreos.com/v1
    kind: OperatorGroup
    metadata:
    name: -operator-group

And they will never be compliant

…espace is empty or null

Otherwise the old operator with the new chart will try and actually push
the namespace + operatorgroup policies with names like this:

  - complianceType: mustonlyhave
    objectDefinition:
      apiVersion: v1
      kind: Namespace
      metadata: {}
  - complianceType: mustonlyhave
    objectDefinition:
      apiVersion: operators.coreos.com/v1
      kind: OperatorGroup
      metadata:
        name: -operator-group

And they will never be compliant
@mbaldessari mbaldessari merged commit 963caca into validatedpatterns:main Mar 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant