-
Notifications
You must be signed in to change notification settings - Fork 18
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
Conversation
Signed-off-by: Ryan Cook <rcook@redhat.com>
cdc9f30
to
b54efc7
Compare
Signed-off-by: Ryan Cook <rcook@redhat.com>
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.
/lgtm just a few comments
.github/workflows/main.yml
Outdated
@@ -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 |
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.
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
.github/workflows/main.yml
Outdated
- name: Build and Deploy operator container | ||
run: make docker-build docker-push deploy | ||
- name: Deploy operator container | ||
run: IMG=ttl.sh/securesign make deploy |
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.
Same as above
.github/workflows/main.yml
Outdated
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 |
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.
see above
.github/workflows/main.yml
Outdated
- 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 |
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.
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
.github/workflows/main.yml
Outdated
|
||
- name: delete the cluster | ||
run: eksctl delete cluster --name rhtas-eks-${GITHUB_SHA} --region us-east-2 --wait | ||
if: always() |
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.
linting, newline
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.
/lgtm
[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:
Approvers can indicate their approval by writing |
Beginning process of defining testing of EKS against main.