Skip to content
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

fix tfctl install --export not separating yaml objects properly #909

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

matheuscscp
Copy link
Contributor

Hi, I'm trying to fix tfctl install --export so I can deploy tf-controller via plain k8s manifests, like Flux (vs the HelmRelease offered in the guides).

After fixing this --- issue this is the only error left:

➜  tf-controller git:(fix-tfctl-install) ✗ k apply -f tfctrl.yml
serviceaccount/tf-controller unchanged
serviceaccount/tf-runner unchanged
role.rbac.authorization.k8s.io/tf-leader-election-role unchanged
clusterrole.rbac.authorization.k8s.io/tf-manager-role configured
clusterrole.rbac.authorization.k8s.io/tf-runner-role unchanged
rolebinding.rbac.authorization.k8s.io/tf-leader-election-rolebinding unchanged
clusterrolebinding.rbac.authorization.k8s.io/tf-cluster-reconciler unchanged
clusterrolebinding.rbac.authorization.k8s.io/tf-manager-rolebinding unchanged
clusterrolebinding.rbac.authorization.k8s.io/tf-runner-rolebinding unchanged
deployment.apps/tf-controller configured
The CustomResourceDefinition "terraforms.infra.contrib.fluxcd.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
➜  tf-controller git:(fix-tfctl-install) ✗ 

@matheuscscp
Copy link
Contributor Author

matheuscscp commented Aug 30, 2023

Seems like the error is because kubectl apply generates that last-applied-configuration annotation and it is too big for the CRD, but kubectl apply --server-side works. And it looks like Flux relies heavily in server-side apply, so this should be fine.

Pls merge this PR 🙏

@chanwit
Copy link
Collaborator

chanwit commented Aug 30, 2023

@matheuscscp Thank you so much for spotting this!

@chanwit chanwit merged commit a4633fd into flux-iac:main Aug 30, 2023
@matheuscscp matheuscscp deleted the fix-tfctl-install branch August 30, 2023 11:21
@matheuscscp
Copy link
Contributor Author

@chanwit would it be possible to cut a release with this? maybe v0.16.0-rc.3? I just learned about GHSA-6hvv-j432-23cv and would like to upgrade by re-installing tf-controller using this fix in the CLI 🙏

@chanwit
Copy link
Collaborator

chanwit commented Aug 30, 2023

Yep, very soon.
We're waiting for this one #910 to merge and cut the release.

@matheuscscp
Copy link
Contributor Author

@chanwit could you pls cut a release? 🙏 Thanks in advance!

@chanwit
Copy link
Collaborator

chanwit commented Sep 18, 2023

We planned to do so this week.
Sorry for the delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants