-
Notifications
You must be signed in to change notification settings - Fork 330
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
Relax HostTailer CRD and add default attributes if not specified #1834
Comments
I'm not quite sure I understand the issue here. @sebastiangaiser -- this is a modified version of the example you've provided: logging:
enabled: true
hostTailer:
enabled: true
name: hosttailer
image:
repository: fluent/fluent-bit
tag: 3.1.9
pullPolicy: IfNotPresent
# workloadMetaOverrides:
# labels:
# asdf: asdf I wonder if it is not enough to use either |
@cmontemuino sorry I probably didn't get you. My problem is that the
So e.g. the image should be added automatically if not specified, also an empty or not specified |
Ok, I was looking at it the wrong way 😄. With the current state of affairs (i.e., the "required" element from CRDs), the Helm Chart is missing a validation to enforce
|
TBH for me, adding the validation would only let the install fail "earlier" but in the end it would fail anyway. As an example, we deploy that via a Flux |
Describe the bug:
When deploying a
HostTailer
custom resource some fields needs to be specified, e.g. fileTailers.But other field(s), e.g.
.spec.workloadMetaOverrides
needs to be specified, even if I don't want to add annotations or labels to the resource.I tried to workaround this in the Helm chart in #1833 but even passing an empty object doesn't work out, too.
Expected behaviour:
The operator should inject
.spec.workloadMetaOverrides
automatically if not specified and the validation for this setting should be adjusted. In addition the Helm chart should provide the possibility to overwrite these settings (should already be the case then).Steps to reproduce the bug:
Install the operator via the Helm chart with the following values:
Additional context:
There might be other field(s) also from other custom resources having a similar behavior, so these should be adjusted the same way.
Environment details:
/kind bug
The text was updated successfully, but these errors were encountered: