Skip to content

cmd: add build subcommand#49

Merged
hongchaodeng merged 1 commit intooperator-framework:masterfrom
hongchaodeng:build
Feb 23, 2018
Merged

cmd: add build subcommand#49
hongchaodeng merged 1 commit intooperator-framework:masterfrom
hongchaodeng:build

Conversation

@hongchaodeng
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread commands/operator-sdk/cmd/build.go Outdated
This image will automatically set in the deployment manifests in output artifacts.

After build completes, the image would be built locally in docker. Then it needs to
be pushed to remote registry. For example:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe having For example: to start in a new line?

...
For example:
...

Comment thread commands/operator-sdk/cmd/build.go Outdated
var buildCmd = &cobra.Command{
Use: "build <image>",
Short: "Compiles code and builds artifacts",
Long: `The operator-sdk build command compiles the code and builds the artifacts
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure how detail the command description needs to be. the termartifacts might need a bit more descriptions either here or some other doc.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The artifacts in my mind is something produced in the software development process. It includes executables, documentation, deployment scripts, etc.

Let me think more about it if we want to say that right now.

@hongchaodeng
Copy link
Copy Markdown
Contributor Author

I have made the description very explicit and clear so that it will give users a clear picture.

@fanminshi
Copy link
Copy Markdown
Contributor

lgtm defer to @hasbro17

Comment thread commands/operator-sdk/cmd/build.go Outdated
and generates Kubernetes manifests.

<image> is the container image to be built, e.g. "quay.io/example/operator:v0.0.1".
This image will automatically set in the deployment manifests.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

will be automatically

@hasbro17
Copy link
Copy Markdown
Contributor

LGTM after nit

@hongchaodeng hongchaodeng merged commit 720cdae into operator-framework:master Feb 23, 2018
@hongchaodeng hongchaodeng deleted the build branch February 23, 2018 21:32
@fanminshi fanminshi mentioned this pull request Feb 24, 2018
21 tasks
m1kola pushed a commit to m1kola/operator-sdk that referenced this pull request Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants