-
Notifications
You must be signed in to change notification settings - Fork 129
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(shield): add support for windows host-shield #2184
base: main
Are you sure you want to change the base?
Conversation
251959f
to
031a16a
Compare
031a16a
to
ce0db6c
Compare
{{/* | ||
Same as "shield.fullname" but for Windows | ||
*/}} | ||
{{- define "shield.windows.fullname" -}} | ||
{{- if .Values.fullname_override }} | ||
{{- printf "%s-%s" "windows" .Values.fullname_override | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- $name := (include "shield.name" .) }} | ||
{{- if contains $name .Release.Name }} | ||
{{- printf "%s-%s" "windows" .Release.Name | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- printf "%s-%s-%s" "windows" .Release.Name $name | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
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.
Not needed...u can simply use the shield.fullname
passing host-windows
.
It will also help to keep consistency between object naming<RELEASE-NAME>-<COMPONENT>
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 did it on purpose to have windows
as a prefix, otherwise we could end up with the same name when release name + component is too long
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.
@mavimo @aroberts87 we were discussing that to keep a sort of naming standard it could make sense to have somthing like <RELEASE-NAME>-windows-<COMPONENT>
. Do you agree?
What this PR does / why we need it:
Checklist
feat(agent,node-analyzer,sysdig-deploy):
)