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

NT: Allow the definition of multiple imagePullSecrets. #216

Merged

Conversation

jward-bw
Copy link
Contributor

Currently you can only specify a single imagePullSecret in the ContainerImage, for the SolrImage in SolrCloudSpec. This allows a user to define any number of imagePullSecrets, which is required if initContainers or sidecarContainers need different imagePullSecrets to the SolrImage.

@jward-bw jward-bw force-pushed the NT-allow-multiple-imagePullSecrets branch 3 times, most recently from 76f14ec to d6d2ec1 Compare February 15, 2021 12:05
@jward-bw jward-bw closed this Feb 15, 2021
@jward-bw jward-bw reopened this Feb 15, 2021
@jward-bw
Copy link
Contributor Author

Sorry for the multiple failed runs, didn't read the docs enough on building the manifests.

@jward-bw
Copy link
Contributor Author

Was I supposed to add helm/solr-operator/crds/crds.yaml to my commit? A diff that size smells suspiscious.

Copy link
Contributor

@HoustonPutman HoustonPutman left a comment

Choose a reason for hiding this comment

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

Great start!

Would you mind adding a test for this? And also implement the functionality in the prometheusExporter code as well?

The helm chart change is definitely odd. Are you using the kustomize version specified in hack/install_dependencies.sh?

@jward-bw jward-bw force-pushed the NT-allow-multiple-imagePullSecrets branch from 1a4b8f7 to d429a8a Compare February 16, 2021 10:21
@jward-bw
Copy link
Contributor Author

Are you using the kustomize version specified in hack/install_dependencies.sh?

Yep that was the issue, I had an older version installed.

... implement the functionality in the prometheusExporter code as well?

Done!

Would you mind adding a test for this?

Sorry this is my first time writing go code, and I'm not familiar with the testing structure. Where should tests for these changes go?

@jward-bw jward-bw force-pushed the NT-allow-multiple-imagePullSecrets branch from e5ef571 to b64bc5c Compare February 16, 2021 10:51
Copy link
Contributor

@HoustonPutman HoustonPutman left a comment

Choose a reason for hiding this comment

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

Ok the code looks great!

As for the tests, here is some help:

You can do the same thing for the prometheus exporter tests:

These tests aren't actually making sure that it runs correctly, it makes sure that the resulting statefulSet object that is created looks as it should. So you just need to make sure that the pod Template in the statefulset has the correct imagePullSecrets section.

@jward-bw jward-bw force-pushed the NT-allow-multiple-imagePullSecrets branch from eeae254 to 395e5a5 Compare February 17, 2021 11:49
@jward-bw
Copy link
Contributor Author

As for the tests, here is some help:

Thanks so much for the pointers Houston, let me know if I've missed anything.

Copy link
Contributor

@HoustonPutman HoustonPutman left a comment

Choose a reason for hiding this comment

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

Don't think you've missed anything! This looks great, feature & tests. 👌

Thanks for the contribution! Hopefully the first of many 😉

@HoustonPutman HoustonPutman merged commit 7cc1221 into apache:main Feb 17, 2021
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