cyberark / conjur-authn-k8s-client

Authentication sidecar for Conjur Kubernetes integration.
https://www.conjur.org
Apache License 2.0
11 stars 14 forks source link

Run only authn-k8s applications for OpenShift(next) Jenkins CI #442

Closed diverdane closed 2 years ago

diverdane commented 2 years ago

Desired Outcome

Builds on Conjur OSS in OpenShift v(next) don't fail with the following error:

 `helm.go:81: [debug] serviceaccounts "test-app-summon-sidecar" already exists`

Implemented Changes

The E2E workflow test scripts in this repo are designed to run either authn-k8s applications exclusively, or jwt authentication applications exclusively (depending upon whether the --jwt flag is selected or not). If an authn-k8s application is being deployed (e.g. summon-sidecar), and its equivalent jwt authentication based application is also deployed (e.g. summon-sidecar-jwt), then there will be K8s resource name conflicts for resources in the app-test Namespace.

The Jenkins CI runs for OpenShift "next" platform version was not using the --ci-apps flag, and was not explicitly selecting applications to be deployed via the --apps flag. Because of this, both authn-k8s applications and jwt based applications were being deployed, resulting in K8s resource name conflicts.

To fix this, the following changes are made:

Connected Issue/Story

N/A

Definition of Done

Changelog

Test coverage

Documentation

Behavior

Security