Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

GitOps refactor #93

Merged
merged 19 commits into from
Apr 4, 2022
Merged

GitOps refactor #93

merged 19 commits into from
Apr 4, 2022

Conversation

yubozhao
Copy link
Contributor

No description provided.

Comment on lines 40 to 44
"type": {
"required": True,
"default": "terraform",
"help_message": "The type of deployment project to use",
}
Copy link
Contributor Author

@yubozhao yubozhao Mar 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change it to template_type

v = cerberus.Validator()
validated_spec = v.validated(copied_operator_spec, schema=operator_schema)
if validated_spec is None:
raise InvalidDeploymentConfig(config_errors=v.errors)
self.operator_spec = validated_spec

def generate(self):
self.operator.generate(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check the template type

Comment on lines 132 to 137
build_docker_image(
image_tag=image_tag,
context_path=dockercontext_path,
dockerfile=dockerfile_path,
additional_build_args=build_args,
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be determined by the push flag, if user decided not to push, we can also create a docker image file in the current directory (that could be a flag too)

Comment on lines 101 to 109
@click.option("--registry-password")
@click.option("--registry-username")
@click.option("--debug", is_flag=True, default=False)
def build(
bento_tag,
deployment_config_file,
push,
overwrite_deployable,
registry_username,
registry_password,
debug,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already have debug functionality setup for all commands. Its sets an env-var to signify it and changes logging mode to debug

bentoctl/cli/__init__.py Outdated Show resolved Hide resolved
bento_name=self.bento.tag.name,
spec=self.operator_spec,
)
self.operator_spec["repository_name"] = self.bento.tag.name
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jjmachan make sure we need this, check it with lambda

@yubozhao yubozhao marked this pull request as ready for review April 4, 2022 20:13
@yubozhao yubozhao merged commit 39b8943 into main Apr 4, 2022
@yubozhao yubozhao deleted the gitops-refactor branch April 4, 2022 20:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants