Skip to content

Commit

Permalink
set verify k8s workflow for get configg directly
Browse files Browse the repository at this point in the history
Signed-off-by: Javan lacerda <[email protected]>
  • Loading branch information
javanlacerda committed Jul 10, 2024
1 parent d84c0d1 commit cc3c40f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 290 deletions.
30 changes: 5 additions & 25 deletions .github/workflows/verify-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,31 +39,13 @@ jobs:
- name: Install kubeval
run: go install github.com/instrumenta/[email protected]

- run: kubeval config/*.yaml
- name: Run kubeval for deployment
run: kubeval config/deployment.yaml

verify-k8s-deployment:
runs-on: ubuntu-latest
strategy:
fail-fast: false # Keep running if one leg fails.
matrix:
issuer:
- "OIDC Issuer"
- "Meta Issuer"

include:
- issuer: "OIDC Issuer"
issuer-config: |
oidc-issuers:
https://kubernetes.default.svc:
issuer-url: https://kubernetes.default.svc
client-id: sigstore
type: kubernetes
- issuer: "Meta Issuer"
issuer-config: |
meta-issuers:
https://kubernetes.*.svc:
client-id: sigstore
type: kubernetes
env:
# https://github.com/google/go-containerregistry/pull/125 allows insecure registry for
# '*.local' hostnames. This works both for `ko` and our own tag-to-digest resolution logic,
Expand Down Expand Up @@ -121,7 +103,6 @@ jobs:
port: 2112
targetPort: 2112
EOF
# Overwrite the configuration to be what we need for KinD.
cat <<EOF > config/fulcio-config.yaml
apiVersion: v1
Expand All @@ -131,9 +112,7 @@ jobs:
namespace: fulcio-system
data:
config.yaml: |-
{
${{ matrix.issuer-config }}
}
$(tail -n+15 config/config.yaml | sed 's/^/ /')
server.yaml: |-
host: 0.0.0.0
port: 5555
Expand All @@ -145,7 +124,8 @@ jobs:
ct-log-url: ""
log_type: prod
EOF
cat config/fulcio-config.yaml
# Create secret needed to use fileca
cat <<EOF > config/fulcio-secret.yaml
apiVersion: v1
Expand Down
125 changes: 0 additions & 125 deletions config/fulcio-config.yaml

This file was deleted.

140 changes: 0 additions & 140 deletions federation/main.go

This file was deleted.

0 comments on commit cc3c40f

Please sign in to comment.