-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat: Custom labels and annotations for namespace. #702
feat: Custom labels and annotations for namespace. #702
Conversation
83049e3
to
50e68d5
Compare
50e68d5
to
c570c02
Compare
I have tested adding custom labels and annotations with |
I have validated that this fixes #683 if You could say, well "what about if it's null and namespace.create is true?" That scenario doesn't make a ton of sense to me, so I think it's worth skipping it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good from my end :)
Also makes it possible to simply disable namespace creation for clusters where ownership of the namespace needs to lie elsewhere for policy or structural reasons. Signed-off-by: Christopher Pitstick <[email protected]>
c570c02
to
b1f7666
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #702 +/- ##
==========================================
+ Coverage 86.51% 87.05% +0.53%
==========================================
Files 19 19
Lines 1587 1321 -266
==========================================
- Hits 1373 1150 -223
+ Misses 173 128 -45
- Partials 41 43 +2 see 18 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
This PR
Allows custom labels and annotations to be added to a namespace. It also makes it possible to simply disable namespace creation for clusters where ownership of the namespace needs to lie elsewhere for policy or structural reasons.
Related Issues
Re-implements #678
Notes
Note 1
Fully rendered
namespace.yaml
after runningmake helm-package
(Extracted from/charts/open-feature-operator-v0.7.1.tgz
usingtar -xvf open-feature-operator-v0.7.1.tgz
)Note 2
This does not need to utilize any of the special directives of strip-kustomize-helm.sh because it is not referenced in the helm overlay kustomization
Note 3
I side-stepped the issue that #678 has with the confusion between
namespace.name
anddefaultNamespace
by simply leavingdefaultNamespace
in place and not adding another name field. It is slightly awkward because now we have anamespace
section and a standalonedefaultNamespace
variable. However, I don't believe it's worth breaking backwards compatibility over this.Follow-up Tasks
defaultNamespace
is set tonull
#683. I believe this PR does fix it.How to test
namespace.create: true
setnull
and test with create to be true/false (if false, create namespace externally from the helm chart)