-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Javan lacerda <[email protected]>
- Loading branch information
1 parent
f26ebac
commit 10c7da8
Showing
1 changed file
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,14 +39,24 @@ jobs: | |
- name: Install kubeval | ||
run: go install github.com/instrumenta/[email protected] | ||
|
||
- name: Run kubeval for deployment | ||
run: kubeval config/*.yaml | ||
- run: kubeval config/*.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: | | ||
"OIDCIssuers": {"https://kubernetes.default.svc": {"IssuerURL": "https://kubernetes.default.svc","ClientID": "sigstore","Type": "kubernetes"}} | ||
- issuer: "Meta Issuer" | ||
issuer-config: | | ||
"MetaIssuers": {"https://kubernetes.*.svc": {"ClientID": "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, | ||
|
@@ -104,6 +114,7 @@ jobs: | |
port: 2112 | ||
targetPort: 2112 | ||
EOF | ||
# Overwrite the configuration to be what we need for KinD. | ||
cat <<EOF > config/fulcio-config.yaml | ||
apiVersion: v1 | ||
|
@@ -112,16 +123,10 @@ jobs: | |
name: fulcio-config | ||
namespace: fulcio-system | ||
data: | ||
config.yaml: |- | ||
oidc-issuers: | ||
https://kubernetes.default.svc: | ||
issuer-url: https://kubernetes.default.svc | ||
client-id: sigstore | ||
type: kubernetes | ||
meta-issuers: | ||
https://kubernetes.*.svc: | ||
client-id: sigstore | ||
type: kubernetes | ||
config.json: |- | ||
{ | ||
${{ matrix.issuer-config }} | ||
} | ||
server.yaml: |- | ||
host: 0.0.0.0 | ||
port: 5555 | ||
|
@@ -133,7 +138,7 @@ 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 | ||
|