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

fix: generated secret name should follow release name #10

Conversation

coreydaley
Copy link
Member

@coreydaley coreydaley commented Apr 17, 2024

The generated backend auth secret and the values.yaml file seem to be run under different contexts which will not allow the use of common.names.fullname to get the name of the current release of the chart. The secret will always grab the name of the redhat-developer-hub chart. So instead we should use the .Release.Name which will always be the release name for both.

Ref: https://issues.redhat.com/browse/RHIDP-2034

@coreydaley coreydaley requested a review from a team as a code owner April 17, 2024 15:46
@openshift-ci openshift-ci bot requested review from kadel and tumido April 17, 2024 15:46
@coreydaley coreydaley force-pushed the 2024-04-17-RHIDP-2034-fix-secret-name branch from 3f03766 to 02e578b Compare April 17, 2024 15:48
@nickboldt
Copy link
Member

any concerns with running this on k8s vs. OSD (sandbox) vs. OCP vs. ROSA vs. clusterbot ...?

if not then LGTM.

The generated backend auth secret and the values.yaml file
seem to be run under different contexts which will not allow
the use of `common.names.fullname` to get the name of the
current release of the chart. The secret will always grab the name
of the redhat-developer-hub chart. So instead we should use the
`.Release.Name` which will always be the release name for both.
@coreydaley coreydaley force-pushed the 2024-04-17-RHIDP-2034-fix-secret-name branch from 02e578b to 68ac643 Compare April 17, 2024 16:44
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@coreydaley coreydaley changed the title RHIDP-2034: Fix generated secret name fix: generated secret name should follow release name Apr 17, 2024
@coreydaley
Copy link
Member Author

I ran it on ROSA, I create a clusterbot and try it also.

Copy link
Member

@nickboldt nickboldt left a comment

Choose a reason for hiding this comment

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

seems legit, but haven't tested.

@coreydaley
Copy link
Member Author

@nickboldt
Verified working on sandbox, ROSA, clusterbot and minikube

@nickboldt nickboldt merged commit c362ede into redhat-developer:main Apr 17, 2024
4 checks passed
@nickboldt
Copy link
Member

nickboldt commented Apr 17, 2024

will this change affect new helm chart releases for 1.0.z, 1.1.z, and 1.2.0?

Or is there anything we need to do to cherrypick for previous releases?

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