Skip to content

[v11] helm: support passing raw config in teleport-kube-agent#20449

Merged
hugoShaka merged 2 commits intobranch/v11from
hugo/backport-20129-to-branch/v11
Jan 24, 2023
Merged

[v11] helm: support passing raw config in teleport-kube-agent#20449
hugoShaka merged 2 commits intobranch/v11from
hugo/backport-20129-to-branch/v11

Conversation

@hugoShaka
Copy link
Copy Markdown
Contributor

Backport of #20129

I had no conflict during backport, this is extremely suspicious given the number of changes, but tests are still passing and I did not find any outstanding issues.

This commit implements arbitrary configuration passing to Teleport, like what was done for the `teleport-cluster` in #18857. This allows users to deploy services or set fields the chart does not support.

The huge snapshot diffs are caused by order changes in the config (the YAML export orders keys alphabetically). I validated that the old and new snapshots were strictly equivalent with the following python snippet:

```python
import yaml
import pathlib
import deepdiff

old = yaml.safe_load(Path("./config-snapshot.old").open())
new = yaml.safe_load(Path("./config-snapshot.new").open())

old_content = { k: yaml.safe_load(yaml.safe_load(v[1])["data"]["teleport.yaml"]) for (k,v) in old.items() }
new_content = { k: yaml.safe_load(yaml.safe_load(v[1])["data"]["teleport.yaml"]) for (k,v) in new.items() }

diff = deepdiff.DeepDiff(old_content, new_content)
print(diff)
```
@hugoShaka hugoShaka enabled auto-merge (squash) January 24, 2023 20:57
@hugoShaka hugoShaka merged commit 9d16af5 into branch/v11 Jan 24, 2023
@hugoShaka hugoShaka deleted the hugo/backport-20129-to-branch/v11 branch January 25, 2023 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants