-
Notifications
You must be signed in to change notification settings - Fork 43
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
make oauth image and cert generator image configurable via env vars #589
make oauth image and cert generator image configurable via env vars #589
Conversation
565ae31
to
facc957
Compare
cert-generator-image: | ||
description: 'Image used to generate RayCluster certificates' | ||
required: true | ||
default: 'registry.redhat.io/ubi9:latest' | ||
oauth-proxy-image: | ||
description: 'Image used to run OAuth proxy' | ||
required: true | ||
default: 'registry.redhat.io/openshift4/ose-oauth-proxy:latest' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I remember correctly GitHub doesn't allow more than 10 input parameters for GH action.
Can we use defaults in the build?
Makefile
Outdated
OAUTH_IMAGE ?= registry.redhat.io/openshift4/ose-oauth-proxy:latest | ||
CERT_GENERATOR_IMAGE ?= registry.redhat.io/ubi9:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SHA is needed for disconnected clusters, so I think it should be preferred.
601603b
to
63623f5
Compare
gh workflow run tag-and-build.yml --repo ${{ github.event.inputs.codeflare-repository-organization }}/codeflare-operator --ref ${{ github.ref }} --field is-stable=${{ github.event.inputs.is-stable }} --field version=${{ github.event.inputs.operator-version }} --field replaces=${{ github.event.inputs.replaces }} --field codeflare-sdk-version=${{ github.event.inputs.codeflare-sdk-version }} --field appwrapper-version=${{ github.event.inputs.appwrapper-version }} --field kuberay-version=${{ github.event.inputs.kuberay-version }} --field kueue-version=${{ github.event.inputs.kueue-version }} --field quay-organization=${{ github.event.inputs.quay-organization }} --field community-operators-prod-fork-organization=${{ github.event.inputs.codeflare-repository-organization }} --field community-operators-prod-organization=${{ github.event.inputs.community-operators-prod-organization }} | ||
gh workflow run tag-and-build.yml --repo ${{ github.event.inputs.codeflare-repository-organization }}/codeflare-operator \ | ||
--ref ${{ github.ref }} \ | ||
--field is-stable=${{ github.event.inputs.is-stable }} \ | ||
--field version=${{ github.event.inputs.operator-version }} \ | ||
--field replaces=${{ github.event.inputs.replaces }} \ | ||
--field codeflare-sdk-version=${{ github.event.inputs.codeflare-sdk-version }} \ | ||
--field appwrapper-version=${{ github.event.inputs.appwrapper-version }} \ | ||
--field kuberay-version=${{ github.event.inputs.kuberay-version }} \ | ||
--field kueue-version=${{ github.event.inputs.kueue-version }} \ | ||
--field quay-organization=${{ github.event.inputs.quay-organization }} \ | ||
--field community-operators-prod-fork-organization=${{ github.event.inputs.codeflare-repository-organization }} \ | ||
--field community-operators-prod-organization=${{ github.event.inputs.community-operators-prod-organization }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK this change is not needed, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not, but I left it in to improve readability. The line was extremely long
Can you remove https://github.com/project-codeflare/codeflare-operator/blob/main/config/e2e/config.yaml#L10 |
Signed-off-by: Kevin <[email protected]>
63623f5
to
098b397
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sutaakar The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
a8b6591
into
project-codeflare:main
Issue link
https://issues.redhat.com/browse/RHOAIENG-8552
What changes have been made
I've made the cert generator image and oauthproxy image build time configurable
Verification steps
run operator and verify that the images specified via make build are respected in the resulting RayCluster
Checks
Note
There was also discussion about making these configurable at deployment time. I think the only difference would be whether we would need to re-release CFO to update the vs the RHODS/ODH operator. I lean towards leaving it on our end via build args but I'm open to suggestions