Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename autogenerated PolicyExceptions #184

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

fhielpos
Copy link
Member

@fhielpos fhielpos commented Feb 6, 2025

No description provided.

@fhielpos fhielpos requested a review from a team as a code owner February 6, 2025 14:26
@fhielpos fhielpos self-assigned this Feb 6, 2025
Copy link
Contributor

@stone-z stone-z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once CI is happy

@@ -93,7 +93,7 @@ func (r *PolicyManifestReconciler) Reconcile(ctx context.Context, req ctrl.Reque
// Set kyvernoPolicyException destination namespace.
kyvernoPolicyException.Namespace = r.DestinationNamespace
// Set kyvernoPolicyException name.
kyvernoPolicyException.Name = fmt.Sprintf("gs-kpo-%s-exceptions", polman.ObjectMeta.Name)
kyvernoPolicyException.Name = fmt.Sprintf("gs-kpo-%s", polman.ObjectMeta.Name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine with me. Just kpo would also be sufficient. Is the name meaningful anywhere (I assume/hope not)? If not, the prefix could even be configurable.

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