Skip to content

Conversation

@DanielePalaia
Copy link
Contributor

The env variable ENVIRONMENT is checked to see if we are running agaist an openshift K8S.
This is due to run our system-tests in a pipeline against openshift.
RABBITMQ_IMAGE env variable is introduced like the cluster-operator in order to override the image of the rabbitmq cluster created by the system-tests
Also RABBITMQ_IMAGE_PULL_SECRET is introduced like the cluster-operator to override the image pull secret and allow us to run the system-tests on a commercial version

This closes #

Note to reviewers: remember to look at the commits in this PR and consider if they can be squashed
Note to contributors: remember to re-generate client set if there are any API changes

Summary Of Changes

Additional Context

@DanielePalaia DanielePalaia force-pushed the over_security_context_system_tests_openshift branch from f4cef68 to d0f6eef Compare June 1, 2022 07:50
Copy link
Contributor

@coro coro left a comment

Choose a reason for hiding this comment

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

Approved, save for the one comment, just as with the other PR.

return cluster
}

func overrideSecurityContextForOpenshift(cluster *rabbitmqv1beta1.RabbitmqCluster) *rabbitmqv1beta1.RabbitmqCluster {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment with this function signature as the other PR.

@DanielePalaia DanielePalaia force-pushed the over_security_context_system_tests_openshift branch from d0f6eef to cc78fd2 Compare June 1, 2022 10:31
Copy link
Member

@Zerpet Zerpet left a comment

Choose a reason for hiding this comment

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

Content looks good. Same comment regarding signing with your personal gmail account. I don't feel too strong about ending the subject line with a period, but it is not one of the best practices 🙂

@DanielePalaia DanielePalaia force-pushed the over_security_context_system_tests_openshift branch from cc78fd2 to 2bf0238 Compare June 1, 2022 11:57
Overriding rabbitmq cluster security context
in system-tests when running in Openshift.
RABBITMQ_IMAGE env variable is introduced to override the image
of the rabbitmq cluster created by the system-tests
RABBITMQ_IMAGE_PULL_SECRET is introduced to override
the image pull secret and allow to run the system-tests
on a commercial version.
@DanielePalaia DanielePalaia force-pushed the over_security_context_system_tests_openshift branch from 2bf0238 to d9c3f2b Compare June 1, 2022 12:09
@DanielePalaia
Copy link
Contributor Author

@Zerpet: Amended the author, put a better commit message!

Copy link
Member

@Zerpet Zerpet left a comment

Choose a reason for hiding this comment

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

:shipit:

@DanielePalaia DanielePalaia merged commit ad7d257 into main Jun 1, 2022
@DanielePalaia DanielePalaia deleted the over_security_context_system_tests_openshift branch June 1, 2022 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants