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

Example core-dns operator using declarative pattern #7

Merged
merged 7 commits into from
Jun 24, 2019

Conversation

justinsb
Copy link
Contributor

@justinsb justinsb commented Apr 29, 2019

Strawman for discussion in meeting tomorrow!

cc @dholbach

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 29, 2019
@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Apr 29, 2019
@justinsb justinsb changed the title Example core-dns operator using declarative pattern WIP: Example core-dns operator using declarative pattern Apr 29, 2019
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 29, 2019
We use crane to build the image without docker; we build our own
manifest to keep it simpler.
@dholbach
Copy link
Member

Thanks for your work on this @justinsb!

I tried playing around with this. Could it be that a Dockerfile is missing (make docker-build)?

@stealthybox
Copy link
Contributor

I got it running

mkdir -p $GOPATH/src/sigs.k8s.io/
cd $GOPATH/src/sigs.k8s.io/
git clone git@github.com:kubernetes-sigs/addon-operators.git
hub checkout https://github.com/kubernetes-sigs/addon-operators/pull/7

export GO111MODULE=on
go mod download
go mod vendor

make
kind create cluster --image kindest/node:v1.14.0
make install
~/go/src/sigs.k8s.io/addon-operators/coredns strawman_coredns* 6s
❯ k get crd
NAME                    CREATED AT
coredns.addons.k8s.io   2019-04-30T15:43:43Z

~/go/src/sigs.k8s.io/addon-operators/coredns strawman_coredns*
❯ k get coredns.addons.k8s.io
No resources found.

@johnsonj
Copy link
Contributor

johnsonj commented May 8, 2019

I've added an example of Patch (as in kustomize patch) to this operator: justinsb#1

@stealthybox
Copy link
Contributor

/lgtm

@justinsb @johnsonj @dholbach :
I think we should merge this implementation.
I like that it works from a manifests as a starting point.
IMHO, we should work on making that backend pluggable next (ie: cluster bundle / git / ORAS).
That will move us toward tools and libs that can be used by cluster-management tools to install the operators/rbac as well.

@johnsonj maybe re-open justinsb#1 on this repo after we merge this?

@k8s-ci-robot
Copy link
Contributor

@stealthybox: changing LGTM is restricted to assignees, and only kubernetes-sigs/addon-operators repo collaborators may be assigned issues.

In response to this:

/lgtm

@justinsb @johnsonj @dholbach :
I think we should merge this implementation.
I like that it works from a manifests as a starting point.
IMHO, we should work on making that backend pluggable next (ie: cluster bundle / git / ORAS).
That will move us toward tools and libs that can be used by cluster-management tools to install the operators/rbac as well.

@johnsonj maybe re-open justinsb#1 on this repo after we merge this?

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@dholbach
Copy link
Member

Can we merge this, or is there more feedback to be resolved first?

@atoato88
Copy link
Contributor

I'm interested in this PR and checked that works on my env.
But this PR doesn't have a test like "Golden File Tests".
I would like to add it after merged this PR, is it OK?

@johnsonj
Copy link
Contributor

johnsonj commented Jun 20, 2019 via email

@justinsb justinsb changed the title WIP: Example core-dns operator using declarative pattern Example core-dns operator using declarative pattern Jun 21, 2019
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 21, 2019
@justinsb
Copy link
Contributor Author

Removed the WIP label. Does someone want to add lgtm and start our engines? :-)

@stealthybox
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: justinsb, stealthybox

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [justinsb,stealthybox]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@stealthybox
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 24, 2019
@k8s-ci-robot k8s-ci-robot merged commit 91536b3 into kubernetes-sigs:master Jun 24, 2019
@stealthybox
Copy link
Contributor

Does someone want to add lgtm and start our engines? :-)

Let the games begin! 🎉 💥

@johnsonj
Copy link
Contributor

awesome!

/lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants