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

flux bootstrap github fails for repositories with custom properties #4958

Closed
Tracked by #4947
stefanprodan opened this issue Aug 28, 2024 Discussed in #4957 · 1 comment · Fixed by #4959
Closed
Tracked by #4947

flux bootstrap github fails for repositories with custom properties #4958

stefanprodan opened this issue Aug 28, 2024 Discussed in #4957 · 1 comment · Fixed by #4959
Assignees
Labels
area/bootstrap Bootstrap related issues and pull requests bug Something isn't working

Comments

@stefanprodan
Copy link
Member

Discussed in #4957

Originally posted by andreistefanzx August 28, 2024
When using the flux bootstrap github command with a repository that has custom properties, the command fails with the following error:

✗ failed to get Git repository "https://github.com/ORG_NAME/REPO_NAME": provider error: json: cannot unmarshal array into Go struct field Repository.custom_properties of type string

Command used:

flux bootstrap github \
  --components-extra=image-reflector-controller,image-automation-controller \
  --owner="OWNER" \
  --repository="REPO_NAME" \
  --path=k8s/clusters/prod/CLUSTER_NAME \
  --branch="main" \
  --registry=REGISTRY_NAME \
  --toleration-keys=TOLERATION_NAME \
  --network-policy=true \
  --token-auth
@stefanprodan stefanprodan added bug Something isn't working area/bootstrap Bootstrap related issues and pull requests labels Aug 28, 2024
@stefanprodan stefanprodan self-assigned this Aug 28, 2024
@stefanprodan stefanprodan changed the title flux bootstrap github fails for repositories with custom custom properties flux bootstrap github fails for repositories with custom properties Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bootstrap Bootstrap related issues and pull requests bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant