Skip to content

feat: Add tf-controller #1532

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

Merged
merged 2 commits into from
Sep 15, 2022
Merged

feat: Add tf-controller #1532

merged 2 commits into from
Sep 15, 2022

Conversation

yiannistri
Copy link
Collaborator

@yiannistri yiannistri commented Sep 15, 2022

Added tf-controller to Tiltfile for WGE via a helm_remote extension. It currently uses the default Helm chart values. The extensions pulls in the Helm charts in ./helm which is why this has been added to .gitignore

@yiannistri yiannistri added the exclude from release notes Use this label to exclude a PR from the release notes label Sep 15, 2022
@yiannistri yiannistri requested a review from chanwit September 15, 2022 17:11
@yiannistri yiannistri requested a review from a team September 15, 2022 17:14
Tiltfile Outdated
@@ -11,6 +11,9 @@ if not os.path.exists("../cluster-bootstrap-controller"):
if not os.path.exists("../cluster-controller"):
fail("You need to git clone https://github.com/weaveworks/cluster-controller to a directory next to this")

if not os.path.exists("../tf-controller"):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not crazy about being opinionated about directories. Can we instead keep a local copy of a helm chart in the repo?

Copy link
Collaborator Author

@yiannistri yiannistri Sep 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather avoid duplication. Maybe we can add the HelmRepository/HelmRelease resources instead and let flux install it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about using the helm_remote extension instead? I tested it locally and it seems to work.

load('ext://helm_remote', 'helm_remote')

helm_remote('tf-controller',
            repo_name='tf-controller',
            repo_url='https://weaveworks.github.io/tf-controller',
            namespace='flux-system')

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good idea 👍 I tried with a directory of kustomizations and that worked too but I think we can keep it simple and use this extension ^^ instead.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also worried about things changing unexpectedly when main gets pulled on tf-controller

@yiannistri yiannistri merged commit 738fbfd into main Sep 15, 2022
@yiannistri yiannistri deleted the add-tf-controller-to-tilt branch September 15, 2022 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude from release notes Use this label to exclude a PR from the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants