Skip to content

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

Merged
merged 3 commits into from
Jul 2, 2024
Merged

Conversation

drewwells
Copy link
Contributor

@drewwells drewwells force-pushed the kubebuilderv4 branch 15 times, most recently from 61a21d0 to f385aaa Compare July 1, 2024 21:11
@drewwells drewwells marked this pull request as ready for review July 1, 2024 21:11

.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 -
Copy link
Contributor

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

Copy link
Contributor

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 -
Copy link
Contributor

Choose a reason for hiding this comment

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

same here with namespace

Copy link
Contributor Author

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
Copy link
Contributor

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?

Copy link
Contributor Author

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",
Copy link
Contributor

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?

Copy link
Contributor Author

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

@drewwells drewwells merged commit 546b093 into main Jul 2, 2024
3 checks passed
@drewwells drewwells deleted the kubebuilderv4 branch July 2, 2024 16:17
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.

2 participants