Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

fix: update name rule logic to ignore incorrect kinds #957

Merged
merged 5 commits into from
Jul 12, 2023
Merged

Conversation

hadar-co
Copy link
Contributor

No description provided.

@hadar-co hadar-co requested a review from myishay July 11, 2023 12:33
royhadad
royhadad previously approved these changes Jul 11, 2023
@@ -1891,6 +1891,8 @@ rules:
not:
enum:
- Kustomization
- ClusterRole
Copy link
Contributor

Choose a reason for hiding this comment

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

This means ClusterRole can omit the name field altogether, I think this should be separated into 2 cases:

  1. enforce the name field for all relevant resources
  2. enforce the name field format only for some of those resources

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch! @royhadad

myishay
myishay previously approved these changes Jul 11, 2023
Copy link
Contributor

@myishay myishay left a comment

Choose a reason for hiding this comment

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

👑

@myishay myishay dismissed their stale review July 11, 2023 13:22

I agree with Roy

@hadar-co hadar-co requested a review from royhadad July 11, 2023 15:36
Copy link
Contributor

@royhadad royhadad left a comment

Choose a reason for hiding this comment

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

I see some problems here, call me

royhadad
royhadad previously approved these changes Jul 12, 2023
pkg/defaultRules/defaultRules.yaml Show resolved Hide resolved
@hadar-co hadar-co merged commit c9b7710 into main Jul 12, 2023
@delete-merged-branch delete-merged-branch bot deleted the name-rule-fix branch July 12, 2023 09:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants