Skip to content

Commit

Permalink
Merge pull request #8437 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…8414-to-release-1.4

[release-1.4] 🐛 Use local kustomize version in create-local-repository.py
  • Loading branch information
k8s-ci-robot committed Mar 31, 2023
2 parents b6ea2c9 + ecd736f commit e8a88b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/clusterctl/hack/create-local-repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def create_local_repositories():
components_file = p.get('componentsFile')
assert components_file is not None, 'invalid configuration for provider {}: please provide componentsFile value'.format(provider)

components_yaml = execCmd(['kustomize', 'build', os.path.join(repo, config_folder)])
execCmd(['make', 'kustomize'])
components_yaml = execCmd(['./hack/tools/bin/kustomize', 'build', os.path.join(repo, config_folder)])
components_path = write_local_repository(provider, next_version, components_file, components_yaml, metadata_file)

yield name, type, next_version, components_path
Expand Down

0 comments on commit e8a88b6

Please sign in to comment.