-
Notifications
You must be signed in to change notification settings - Fork 18
Use the helm release namespace by default instead of creating a new one #116
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #116 +/- ##
==========================================
+ Coverage 72.05% 72.57% +0.52%
==========================================
Files 37 26 -11
Lines 2340 1462 -878
==========================================
- Hits 1686 1061 -625
+ Misses 654 401 -253 🚀 New features to boost your workflow:
|
avtakkar
left a comment
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.
Thanks for your PR. Just left a few comments wondering if it can be done another way to retain the namespace variable.
| {{- end }} | ||
|
|
||
| {{- define "peerd.namespace" -}} | ||
| {{- if .Values.peerd.namespace.k8s }} |
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.
Can we set this to {{ .Release.Namespace }} instead?
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.
I tried a CI run on Azure and peerd-ns is not cleaned up anymore after the run.
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.
This is now fixed.
| apiVersion: v1 | ||
| kind: Namespace | ||
| metadata: | ||
| name: {{ include "peerd.namespace" . }} |
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.
This template can then be retained.
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.
It is now re-instated.
Peerd helm charts now use helm release namespace instead of creating a new namespace on its own.
Resolves #68