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

EKS support and testing #194

Merged
merged 15 commits into from
Feb 16, 2024
Merged

EKS support and testing #194

merged 15 commits into from
Feb 16, 2024

Conversation

cooktheryan
Copy link
Collaborator

@cooktheryan cooktheryan commented Feb 15, 2024

Beginning process of defining testing of EKS against main.

Signed-off-by: Ryan Cook <rcook@redhat.com>
Signed-off-by: Ryan Cook <rcook@redhat.com>
@cooktheryan cooktheryan force-pushed the eks branch 3 times, most recently from cdc9f30 to b54efc7 Compare February 16, 2024 03:08
Signed-off-by: Ryan Cook <rcook@redhat.com>
@cooktheryan cooktheryan changed the title WIP: Eks support and testing EKS support and testing Feb 16, 2024
Copy link
Contributor

@Gregory-Pereira Gregory-Pereira left a comment

Choose a reason for hiding this comment

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

/lgtm just a few comments

@@ -25,6 +26,22 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- name: Build operator container
run: IMG=ttl.sh/securesign make docker-build docker-push
Copy link
Contributor

Choose a reason for hiding this comment

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

image should named to reflect the operator. Additionally TTLSH images are tagged with the time you wish the ephemeral image to exist, ex: ttl.sh/securesign/secure-sign-operator:1h

- name: Build and Deploy operator container
run: make docker-build docker-push deploy
- name: Deploy operator container
run: IMG=ttl.sh/securesign make deploy
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/aws/deploy.yaml

- name: Deploy operator container
run: IMG=ttl.sh/securesign make deploy
Copy link
Contributor

Choose a reason for hiding this comment

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

see above

- name: Deploy RTHAS
run: |
sed -i 's|"https://your-oidc-issuer-url"|${{ secrets.testing_keycloak }}|g' config/samples/rhtas_v1alpha1_securesign.yaml
sed -i 's|"trusted-artifact-signer"|"sigstore"|g' config/samples/rhtas_v1alpha1_securesign.yaml
Copy link
Contributor

Choose a reason for hiding this comment

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

This one produces multiple hits:

 cat rhtas_v1alpha1_securesign.yaml| grep "trusted-artifact-signer"
    app.kubernetes.io/part-of: trusted-artifact-signer
                app.kubernetes.io/part-of: trusted-artifact-signer

I suggest using yq instead, or further restrict the sed command:

OIDC_ISSUER=https://$(oc get route keycloak -n keycloak-system | tail -n 1 | awk '{print $2}')/auth/realms/sigstore
OIDC_ISSUER="$OIDC_ISSUER"  yq '.spec.fulcio.config.OIDCIssuers[strenv(OIDC_ISSUER)].ClientID = "sigstore" style="double"' -i config/samples/rhtas_v1alpha1_securesign.yaml


- name: delete the cluster
run: eksctl delete cluster --name rhtas-eks-${GITHUB_SHA} --region us-east-2 --wait
if: always()
Copy link
Contributor

Choose a reason for hiding this comment

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

linting, newline

Copy link
Contributor

@Gregory-Pereira Gregory-Pereira left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link

openshift-ci bot commented Feb 16, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cooktheryan, Gregory-Pereira

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:
  • OWNERS [Gregory-Pereira,cooktheryan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cooktheryan cooktheryan merged commit c275a22 into main Feb 16, 2024
7 checks passed
@cooktheryan cooktheryan deleted the eks branch February 16, 2024 21:42
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.

2 participants