Skip to content

Commit

Permalink
Fix create local repository hack
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziopandini committed Dec 3, 2020
1 parent 259f233 commit 51427d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/clusterctl/hack/create-local-repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@
'componentsFile': 'bootstrap-components.yaml',
'nextVersion': 'v0.3.8',
'type': 'BootstrapProvider',
'configFolder': 'bootstrap/kubeadm/config',
'configFolder': 'bootstrap/kubeadm/config/default',
},
'control-plane-kubeadm': {
'componentsFile': 'control-plane-components.yaml',
'nextVersion': 'v0.3.8',
'type': 'ControlPlaneProvider',
'configFolder': 'controlplane/kubeadm/config',
'configFolder': 'controlplane/kubeadm/config/default',
},
'infrastructure-docker': {
'componentsFile': 'infrastructure-components.yaml',
'nextVersion': 'v0.3.8',
'type': 'InfrastructureProvider',
'configFolder': 'test/infrastructure/docker/config',
'configFolder': 'test/infrastructure/docker/config/default',
},
}

Expand Down Expand Up @@ -147,7 +147,7 @@ def create_local_repositories():
assert p is not None, 'invalid configuration: please specify the configuration for the {} provider'.format(provider)

repo = p.get('repo', '.')
config_folder = p.get('configFolder', 'config')
config_folder = p.get('configFolder', 'config/default')

next_version = p.get('nextVersion')
assert next_version is not None, 'invalid configuration for provider {}: please provide nextVersion value'.format(provider)
Expand Down

0 comments on commit 51427d3

Please sign in to comment.