-
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.
set verify k8s workflow for get configg directly
Signed-off-by: Javan lacerda <[email protected]>
- Loading branch information
1 parent
d84c0d1
commit e56abdb
Showing
3 changed files
with
5 additions
and
288 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,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, | ||
|
@@ -122,6 +104,8 @@ jobs: | |
targetPort: 2112 | ||
EOF | ||
# Create variable for keep the fulcio config | ||
fulcio-config=$(cat config/config.yaml) | ||
# Overwrite the configuration to be what we need for KinD. | ||
cat <<EOF > config/fulcio-config.yaml | ||
apiVersion: v1 | ||
|
@@ -131,9 +115,7 @@ jobs: | |
namespace: fulcio-system | ||
data: | ||
config.yaml: |- | ||
{ | ||
${{ matrix.issuer-config }} | ||
} | ||
$fulcio-config | ||
server.yaml: |- | ||
host: 0.0.0.0 | ||
port: 5555 | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.