Skip to content

Conversation

@terc1997
Copy link
Contributor

Issue

N/A

Test

A simple test was run to verify if it's going to patch the namespace:

from kubernetes import config
from kubernetes.client import api_client
from openshift import dynamic
from mas.devops.ocp import createNamespace

dynClient = dynamic.DynamicClient(
    api_client.ApiClient(configuration=config.load_kube_config())
)

createNamespace(dynClient=dynClient,namespace="mas-fvt91x-core")
createNamespace(dynClient=dynClient,namespace="mas-fvt91x-core",kyvernoLabel="audit")
createNamespace(dynClient=dynClient,namespace="mas-fvt91x-core",kyvernoLabel="audit") #second time to make sure that is not going to throw an error

Results

image

@terc1997 terc1997 marked this pull request as ready for review September 10, 2025 20:22
@durera durera added this pull request to the merge queue Sep 11, 2025
Merged via the queue into stable with commit ec4bec8 Sep 11, 2025
2 checks passed
@durera durera deleted the fix-kyverno-label branch September 11, 2025 10:31
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.

2 participants