Repository navigation
Add resource overrides to openadservice - #23
Conversation
|
I just tested it for my use case as described in #25 and it works! test-service:
openadservice:
...
overrides:
deployment:
spec:
template:
spec:
hostIPC: true
serviceAccountName: test-account |
|
@cgeller, would you like to review? |
cgeller
left a comment
There was a problem hiding this comment.
Not tested within a cluster but conceptionally looks good! We should also bump the version to at least 1.2.1 right?
Already done .. I only forgot to submit the review .. sorry |
Would even go for 1.3.0. Question remains, how do we handle all downstream services? Prepare a PR to dev environment, but potentially keep that merge on hold until the crowd is ready? Or directly push it down all people's throats? 😄 |
Do we really need these changes immediately in all downstream services? If yes, we should stay with 1.2.0 .. if not, I would move to 1.3.0 but would not force the update right now! Otherwise we will lost the crowd ;-) |
Isn't is okay to move to 1.3.0 but only update those downstream services where this implementation is needed? Or what are the disadvantages of updating only selected services? If we did it this way, then we could already continue the implementation in those services where we need this feature. 🙂 |
|
The problem is that the consistency check demand |
Would it make sense to change the check and check for versions higher than a given version, e.g. vX.Y ? |
|
Yes, I like the idea. |
|
FYI @cgeller @lukaszanger Helmfile also has the |
Implemented here, feel free to review! |
…server and Zenoh router charts
Co-authored-by: Christian Geller <88664444+cgeller@users.noreply.github.com>
Services occasionally need Kubernetes fields that the base chart does not expose. Add resource overrides so these fields can be configured without introducing a dedicated chart value for each one.
The chart renders each resource, then applies
mergeOverwritebefore emitting YAML. Override values take precedence: maps merge recursively, while lists are replaced in full. Overrides also work underinstances.overrides.deploymenttargets the Deployment,overrides.serviceapplies to both internal and external Services, andoverrides.configMapapplies to all generated ConfigMaps. Overrides modify resources that the chart already generates; they do not enable otherwise absent resources.Examples
These values are shown under
openadserviceas used by a dependent chart. When installing the base chart directly, omit that wrapper.Access the node's network namespace while retaining Kubernetes service DNS:
Resulting Deployment fragment:
The generated containers, volumes, and other Deployment fields are preserved.
Enable client-IP session affinity on generated Services:
Each generated Service gains
spec.sessionAffinity: ClientIP, preserving its existing type, selectors, and ports.Make generated ConfigMaps immutable:
Each generated ConfigMap gains top-level
immutable: true, preserving its generated data. Subsequent data changes require replacing the ConfigMap.Validation
Helm lint and rendering checks passed for the examples above, both Service types, all three ConfigMap sources, exact ConfigMap data preservation, per-instance inheritance/isolation, and list replacement.
This PR is based on main and is independent of the dedicated host-network value in #22.