-
Notifications
You must be signed in to change notification settings - Fork 14
start recreation of project on kubebuilder v4 #244
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
Conversation
61a21d0
to
f385aaa
Compare
|
||
.PHONY: deploy | ||
deploy-kustomize: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config. | ||
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG_PATH}:${TAG} | ||
$(KUSTOMIZE) build config/default | kubectl apply --namespace `cat .id` -f - |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how do you specify the namespace to deploy this now that "--namespace was removed"?
We need it so more than 1 person can run integration tests in parallel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dbc_end2end_test.go (line 58) relies on this namespace
|
||
.PHONY: undeploy | ||
undeploy-kustomize: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion. | ||
$(KUSTOMIZE) build config/default | kubectl delete --namespace `cat .id` --ignore-not-found=$(ignore-not-found) -f - |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here with namespace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kubebuilder v3 vs v4 code. It didn't do the right thing before and won't work after either. We just have it b/c kubebuilder template creates it
|
||
.PHONY: integration-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how do we run integration tests in the new code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they don't run right now. I need to make a helm install process to setup the chart prior to running the existing tests
LeaderElection: enableLeaderElection, | ||
LeaderElectionID: "32151587.atlas.infoblox.com", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok to change the electionid? what processes creates the leaders in k8s?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't notice that. Probably fine to change it, but reverting this back
https://book.kubebuilder.io/migration/migration_guide_gov3_to_gov4