Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile,hack/image: build and release targets for helm and ansible binaries #3363

Conversation

joelanford
Copy link
Member

Description of the change:
Add build targets and rules for the ansible-operator and helm-operator binaries

Motivation for the change:
For 1.0, we want to remove the operator-sdk run local command. To continue supporting running helm and ansible operators locally, we will need these binaries to be released so that upcoming make run targets for those operator types can download and run the operator binaries locally.

Checklist

If the pull request includes user-facing changes, extra documentation is required:

build/helm-operator-%-s390x-linux-gnu: GOARGS = GOOS=linux GOARCH=s390x
build/helm-operator-%-linux-gnu: GOARGS = GOOS=linux

build/operator-%: $(SOURCES) ## Build the operator-sdk binary
Copy link
Member

@estroz estroz Jul 8, 2020

Choose a reason for hiding this comment

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

Can we make this more specific?

Suggested change
build/operator-%: $(SOURCES) ## Build the operator-sdk binary
build/operator-sdk$%: $(SOURCES) ## Build the operator-sdk binary

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried that, but it resulted in a weird build error I couldn't figure out how to solve. I'm not a Makefile guru by any means though, so suggestions welcome.

Copy link
Member

@estroz estroz Jul 8, 2020

Choose a reason for hiding this comment

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

Fixed the above to specify the right target ($%). That still doesn't work. Let me look into this.

Copy link
Member

Choose a reason for hiding this comment

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

This is not a blocker, just a cosmetic nit.

build/operator-%: $(SOURCES) ## Build the operator-sdk binary
$(Q)$(GOARGS) go build $(GO_BUILD_ARGS) -o $@ $(SDK_BUILD_PATH)

build/ansible-%: $(SOURCES) ## Build the ansible-operator binary
Copy link
Member

Choose a reason for hiding this comment

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

Can we make this more specific? Ditto for helm.

Suggested change
build/ansible-%: $(SOURCES) ## Build the ansible-operator binary
build/ansible-operator%: $(SOURCES) ## Build the ansible-operator binary

Copy link
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

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

/lgtm /approve.

I am ok with 👍 / Also, I understand that it will be moved to be done in the ansible/helm repo as well when they exist.

@estroz estroz added this to the v0.19.0 milestone Jul 8, 2020
Copy link
Member

@estroz estroz left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 8, 2020
@joelanford joelanford merged commit 351d223 into operator-framework:master Jul 8, 2020
@joelanford joelanford deleted the release-helm-ansible-binaries branch July 8, 2020 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants