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

Add imageContentSources to eaas-create-ephemeral-cluster-hypershift-aws #1594

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amisstea
Copy link
Contributor

The user may choose to pass the value as a quoted string with explicit newlines ("\n") or by using the "|" operator, among other options. A tool like yq is therefore necessary since basic variable expansion within a heredoc isn't adequate at preventing issues with malformed yaml.

As a result. the container image was changed to one which provides both the yq and kubectl binaries. This is a more upstream friendly image since it's publicly pullable.

The user may choose to pass the value as a quoted string with explicit
newlines ("\n") or by using the "|" operator, among other options. A tool
like `yq` is therefore necessary since basic variable expansion within a
heredoc isn't adequate at preventing issues with malformed yaml.

As a result. the container image was changed to one which provides both the
`yq` and `kubectl` binaries. This is a more upstream friendly image
since it's publicly pullable.

Signed-off-by: Alex Misstear <[email protected]>
@amisstea
Copy link
Contributor Author

@hmariset please review

Copy link
Contributor

@hmariset hmariset left a comment

Choose a reason for hiding this comment

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

/lgtm

@amisstea
Copy link
Contributor Author

/retest

@amisstea
Copy link
Contributor Author

@konflux-ci/build-maintainers I need some help getting this added to the merge queue. Please review and merge, if possible. Thanks!

@@ -6,7 +6,8 @@ spec:
description: >-
This StepAction provisions an ephemeral cluster using Hypershift with 3 worker nodes in AWS.
It does so by creating a ClusterTemplateInstance in a space on an EaaS cluster.
image: registry.redhat.io/openshift4/ose-cli@sha256:15da03b04318bcc842060b71e9dd6d6c2595edb4e8fdd11b0c6781eeb03ca182
image: public.ecr.aws/bitnami/kubectl:1.31.2@sha256:df433ab6de9adfb0223df79167719099726f946a68c1784d7739a8b6b63cd137
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a list of allowed registries for step images: https://github.com/release-engineering/rhtap-ec-policy/blob/ba7c0a249386ac15df6495e31140de7fb038187f/data/rule_data.yml#L10

Side note, we'll need to extend the CI check to take StepActions into account as well

Copy link
Contributor

Choose a reason for hiding this comment

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

Side note, we'll need to extend the CI check to take StepActions into account as well

Filed https://issues.redhat.com/browse/EC-1010

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, good point. I'll have a look for an alternate image from those allowed registries/orgs.

Copy link
Contributor

Choose a reason for hiding this comment

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

quay.io/konflux-ci/appstudio-utils might work, it contains both yq and kubectl and other tasks already use it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I opened #1597 to upgrade the oc/kubectl version in the appstudio-utils image. I'll update this image ref once the new image is built and released.

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.

3 participants