Make run eases local interactive tests #1566
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Using
make run RUN_YAML=my-k8s-ako-sample-here.yml
you get:RUN_YAML
file applied after the CRDs are installed and the manager is started, so it will try to enforce the given state.No need for ad-hoc scripts to get the same.
It relies on:
make install-crds
to install the latest versions of the CRDs.make install-credentials
to create the root Atlas Operator credentials secret off yourMCLI_
env vars. Remember to have those setup in advance in your terminal.set-namespace
rule ensures the namespace set by$(OPERATOR_NAMESPACE)
is in place.If
RUN_YAML
is not passed in,make run
will only launch the manager binary without any initial Kubernetes definitions in place. You should go to another terminal to apply Kubernetes YAMLs.You can call
make run ...
several times in a row but, depending on your testing state, you might find issues with leftover state in Kubernetes or Atlas. To wipe prior Kubernetes state you can do 'make stop-kindand
make run` will relaunch kind on its own.All Submissions: