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

rollouts: scripts and dev guide for running with kind #3888

Merged
merged 2 commits into from
Mar 16, 2023

Conversation

natasha41575
Copy link
Contributor

This PR adds make targets for developing rollouts with Kind, and updates the dev guide to add instructions for development with kind.

Fixes #3887

@natasha41575 natasha41575 requested a review from droot March 15, 2023 22:23
@natasha41575 natasha41575 requested a review from a team as a code owner March 15, 2023 22:23
@natasha41575 natasha41575 force-pushed the rollouts/kind branch 2 times, most recently from d375576 to 0f237a2 Compare March 15, 2023 22:29
Copy link
Contributor

@droot droot left a comment

Choose a reason for hiding this comment

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

Looks good, I have some minor suggestions.

rollouts/Makefile Outdated Show resolved Hide resolved
.PHONY: run-in-kind
run-in-kind: manifests kustomize ## Run the rollouts-controller-manager in a kind cluster named rollouts-management-cluster
kind delete cluster --name=rollouts-management-cluster
kind create cluster --name=rollouts-management-cluster
Copy link
Contributor

Choose a reason for hiding this comment

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

one suggestion: we should invoke these commands with a kubeconfig location to avoid manipulating the default kubectl context. And then use KUBECONFIG=/path/to/kubeconfig/mgmt-cluster kubectl ... format for all the commands.

And we can use a standard directory path say .tests/kube/ and also add that path to .gitignore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed this to use ~/.kube/admin-cluster because that's what we did in the guide for running the admin cluster with config-controller.

rollouts/Makefile Outdated Show resolved Hide resolved
verbs:
- get
- list
- watch
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for adding this: I completely missed these.

@natasha41575 natasha41575 requested a review from droot March 16, 2023 19:43
@natasha41575 natasha41575 merged commit 0a89c06 into kptdev:main Mar 16, 2023
@natasha41575 natasha41575 deleted the rollouts/kind branch March 16, 2023 21:05
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.

rollouts: automated tooling to spin up kind clusters
2 participants