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

Allow a default to be set for imagePullSecrets on operator scope #926

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

coro
Copy link
Contributor

@coro coro commented Jan 6, 2022

Summary Of Changes

This change allows for the operator to set a configurable list of imagePullSecrets
as the default to use on all Pods created in RabbitmqClusters. If a RabbitmqClusterSpec
does not specify imagePullSecrets, the operator will use the value of the environment variable
DEFAULT_IMAGE_PULL_SECRETS if set to update the RabbitmqClusterSpec.

This closes #870

Note to reviewers: remember to look at the commits in this PR and consider if they can be squashed

Additional Context

This is a follow-on PR from #858

Local Testing

Please ensure you run the unit, integration and system tests before approving the PR.

To run the unit and integration tests:

$ make unit-tests integration-tests

You will need to target a k8s cluster and have the operator deployed for running the system tests.

For example, for a Kubernetes context named dev-bunny:

$ kubectx dev-bunny
$ make destroy deploy-dev
# wait for operator to be deployed
$ make system-tests

This change allows for the operator to set a configurable list of imagePullSecrets
as the default to use on all Pods created in RabbitmqClusters. If a RabbitmqClusterSpec
does not specify imagePullSecrets, the operator will use the value of the environment variable
`DEFAULT_IMAGE_PULL_SECRETS` if set to update the RabbitmqClusterSpec.

This closes #870
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.

Provide a way to configure the default image pull secrets based on env. variables.
3 participants