Skip to content

Commit

Permalink
Rename autogenerated PolicyExceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
fhielpos committed Feb 6, 2025
1 parent 5aae6d5 commit f94d3cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ Dockerfile.cross
*~

# DS_Store files
*..DS_Store
*.DS_Store
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Rename autogenerated PolicyExceptions.

## [0.1.4] - 2025-01-31

### Changed
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/policymanifest_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
// Set labels.
kyvernoPolicyException.Labels = generateLabels()
kyvernoPolicyException.Labels[GSPolicy] = polman.ObjectMeta.Labels[GSPolicy]
Expand Down

0 comments on commit f94d3cc

Please sign in to comment.