Expected Behavior
Following the standalone install doc, running setup-grafeas.sh and setup-kritis.sh installs correctly on all released k8s versions.
(I've tested and this does work on 1.17 and 1.18, so it seems the issue is limited to 1.19)
Actual Behavior
kritis-preinstall fails with the following log
time="2020-10-01T16:17:20Z" level=info msg="contents of /var/run/secrets/kubernetes.io/serviceaccount/namespace: default"
time="2020-10-01T16:17:20Z" level=info msg="running preinstall\nversion v0.2.2\ncommit: bea073f2a2f299af94363dc399b7780fde8f2afc"
Error from server (NotFound): certificatesigningrequests.certificates.k8s.io "tls-webhook-secret-cert" not found
Error from server (NotFound): secrets "tls-webhook-secret" not found
time="2020-10-01T16:17:21Z" level=info msg="[cfssl genkey -]"
time="2020-10-01T16:17:21Z" level=info msg="{\"csr\":\"-----BEGIN CERTIFICATE REQUEST-----...-----END CERTIFICATE REQUEST-----\\n\",\"key\":\"-----BEGIN EC PRIVATE KEY-----...-----END EC PRIVATE KEY-----\\n\"}\n"
time="2020-10-01T16:17:21Z" level=info msg="[cfssljson -bare server]"
time="2020-10-01T16:17:21Z" level=info
apiVersion: certificates.k8s.io/v1beta1
kind: CertificateSigningRequest
metadata:
name: tls-webhook-secret-cert
labels:
kritis.grafeas.io/install: ""
spec:
groups:
- system:authenticated
request: <REDACTED>
usages:
- digital signature
- key encipherment
- server auth
time="2020-10-01T16:17:22Z" level=info msg="[kubectl apply -f -]"
time="2020-10-01T16:17:22Z" level=info msg="certificatesigningrequest.certificates.k8s.io/tls-webhook-secret-cert created\n"
time="2020-10-01T16:17:22Z" level=info msg="[kubectl certificate approve tls-webhook-secret-cert]"
time="2020-10-01T16:17:22Z" level=info msg="No resources found\n"
time="2020-10-01T16:17:22Z" level=error msg="error: no kind \"CertificateSigningRequest\" is registered for version \"certificates.k8s.io/v1\" in scheme \"k8s.io/kubectl/pkg/scheme/scheme.go:28\"\n"
time="2020-10-01T16:17:22Z" level=fatal msg="exit status 1"
Steps to Reproduce the Problem
Environment
- Windows Version10.0.19041 Build 19041 (using wsl 1 to run shell scripts)
- helm v3.3.1
- kubectl v1.18.0
- minikube v1.13.0
minikube start --kubernetes-version="v1.19.0"
git clone https://github.com/grafeas/kritis
cd ./kritis/docs/standalone
./setup_grafeas.sh
./setup_kritis.sh
kubectl logs kritis-preinstall
Expected Behavior
Following the standalone install doc, running
setup-grafeas.shandsetup-kritis.shinstalls correctly on all released k8s versions.(I've tested and this does work on 1.17 and 1.18, so it seems the issue is limited to 1.19)
Actual Behavior
kritis-preinstall fails with the following log
Steps to Reproduce the Problem
Environment