Skip config file on remote k8s case
This commit is contained in:
parent
81b60cc17e
commit
2e8878c055
@ -142,12 +142,14 @@ class K8sDeployerConfigGenerator(DeployerConfigGenerator):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
def generate(self, deployment_dir: Path):
|
def generate(self, deployment_dir: Path):
|
||||||
# Check the file isn't already there
|
# No need to do this for the remote k8s case
|
||||||
# Get the config file contents
|
if self.type == "k8s-kind":
|
||||||
content = generate_kind_config(deployment_dir)
|
# Check the file isn't already there
|
||||||
if opts.o.debug:
|
# Get the config file contents
|
||||||
print(f"kind config is: {content}")
|
content = generate_kind_config(deployment_dir)
|
||||||
config_file = deployment_dir.joinpath(constants.kind_config_filename)
|
if opts.o.debug:
|
||||||
# Write the file
|
print(f"kind config is: {content}")
|
||||||
with open(config_file, "w") as output_file:
|
config_file = deployment_dir.joinpath(constants.kind_config_filename)
|
||||||
output_file.write(content)
|
# Write the file
|
||||||
|
with open(config_file, "w") as output_file:
|
||||||
|
output_file.write(content)
|
||||||
|
Loading…
Reference in New Issue
Block a user