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

When using a custom template and clusterctl needs to be upgraded it appends the output to the template #137

Closed
jsturtevant opened this issue Jun 3, 2022 · 0 comments · Fixed by #138

Comments

@jsturtevant
Copy link
Contributor

Issue

Use clusterctl one version behind (1.1.3 in this case) and then generate the template and you will get:

---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AzureClusterIdentity
metadata:
  labels:
    clusterctl.cluster.x-k8s.io/move-hierarchy: "true"
  name: cluster-identity
  namespace: default
spec:
  allowedNamespaces: {}
  clientID: 50b6d626-3907-42f7-b262-95318b9c4602
  clientSecret:
    name: cluster-identity-secret
    namespace: default
  tenantID: 72f988bf-86f1-41af-91ab-2d7cd011db47
  type: ServicePrincipal
�[33m
New clusterctl version available: v1.1.3 -> v1.1.4
https://github.com/kubernetes-sigs/cluster-api/releases/tag/v1.1.4
�[0m

This causes the template to fail AzureClusterIdnetity.

Possible fixes

Workaround is to upgrade the clusterctl version.

The clusterctl logs this to stderr so could not stream that:

output, err := newVersionChecker(configClient.Variables()).Check()

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 a pull request may close this issue.

1 participant