-
Notifications
You must be signed in to change notification settings - Fork 465
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(fluentd): add image reference by digest #362
base: main
Are you sure you want to change the base?
Changes from all commits
d6d9e61
1d3cb61
4103eb2
3c43db7
e811288
ca82496
7e3845a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,3 +90,12 @@ Name of the configMap used for additional configuration files; allows users to o | |
{{ printf "%s-%s" "fluentd-config" ( include "fluentd.shortReleaseName" . ) }} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Fluentd image with tag/digest | ||
*/}} | ||
{{- define "fluentd.image" -}} | ||
{{- $tag := ternary "" (printf ":%s" (toString .tag)) (or (empty .tag) (eq "-" (toString .tag))) -}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. tags and hashes can coexist, where hash will always takes precedence over the tag, even if they dont match. With this info you should be able to simplify this. Although it works as it is... |
||
{{- $digest := ternary "" (printf "@%s" .digest) (empty .digest) -}} | ||
{{- printf "%s%s%s" .repository $tag $digest -}} | ||
{{- end -}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,16 @@ kind: "DaemonSet" | |
image: | ||
repository: "fluent/fluentd-kubernetes-daemonset" | ||
pullPolicy: "IfNotPresent" | ||
tag: "" | ||
tag: "" # Set to "-" to not use the default value | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I just tested and everything works fine. Just drop the comment in front of tag which is not required...
|
||
digest: "" | ||
|
||
testFramework: | ||
enabled: true | ||
image: | ||
repository: busybox | ||
pullPolicy: Always | ||
tag: latest | ||
digest: "" | ||
|
||
## Optional array of imagePullSecrets containing private registry credentials | ||
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ | ||
|
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.
Update this