Skip to content

Latest commit

 

History

History
78 lines (56 loc) · 1.86 KB

WorkflowDemo.org

File metadata and controls

78 lines (56 loc) · 1.86 KB

Kubernetes Conformance Workflow Demo

Launch Cluster

Using kind

cd ~/apisnoop/kind
kind create cluster --config kind+apisnoop.yaml

Clone K8s repo

mkdir -p ~/go/src/k8s.io
cd $_
git clone --depth 1 https://github.com/kubernetes/kubernetes.git

Clone Conformance Workflow

cd ~/
git clone https://github.com/apisnoop/ticket-writing.git

Review Cluster & apisnoop

kubectl get nodes -owide
kubectl get pods -A

Walk through Service Account e2e tests

cd ~/go/src/k8s.io/kubernetes
grep ginkgo.It test/e2e/auth/service_accounts.go
grep framework.ConformanceIt test/e2e/auth/service_accounts.go

Switch to Conformance workflow for Service Account Token

Check workflow document for ServiceAccountToken endpoint

Run e2e test for Service Account Token

Watch namespaces used for e2e tests

kubectl get ns -w

Run e2e test

cd ~/go/src/k8s.io/kubernetes
export KUBECONFIG=~/.kube/config
export TEST_NAME="should create a serviceAccountToken and ensure a successful TokenReview"
go test ./test/e2e -ginkgo.v -v -timeout=0 -ginkgo.focus="$TEST_NAME"

Check on the go build

htop

Review apisnoop findings

Check workflow document for ServiceAccountToken endpoint