cleaning up debug statements
@@ -69,7 +69,6 @@ steps:
go get github.com/AlekSi/gocov-xml
go get -u gopkg.in/matm/v1/gocov-html
go get golang.org/x/tools/cmd/cover
- pwd
displayName: 'Install kubebuilder, kustomize and set environment'
env:
GO111MODULE: on
@@ -107,32 +106,13 @@ steps:
workingDirectory: '$(MODULE_PATH)'
- script: |
- cat go.mod
set -e
GO111MODULE="on" go get sigs.k8s.io/kind@v0.7.0
- cat go.mod
kind create cluster
export KUBECONFIG=$(kind get kubeconfig-path --name="kind")
kubectl cluster-info
- # kubectl create namespace cert-manager
- # kubectl label namespace cert-manager cert-manager.io/disable-validation=true
- # kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v0.12.0/cert-manager.yaml
- # kubectl create namespace azureoperator-system
- # kubectl --namespace azureoperator-system \
- # create secret generic azureoperatorsettings \
- # --from-literal=AZURE_CLIENT_ID=${AZURE_CLIENT_ID} \
- # --from-literal=AZURE_CLIENT_SECRET=${AZURE_CLIENT_SECRET} \
- # --from-literal=AZURE_SUBSCRIPTION_ID=${AZURE_SUBSCRIPTION_ID} \
- # --from-literal=AZURE_TENANT_ID=${AZURE_TENANT_ID}
- #create image and load it into cluster
- # IMG="docker.io/controllertest:1" make docker-build
- # kind load docker-image docker.io/controllertest:1 --loglevel "trace"
make install
kubectl get namespaces
- # kubectl -n cert-manager rollout status deployment.v1.apps/cert-manager
- # kubectl get pods --namespace cert-manager
- # echo "all the pods should be running"
- #make deploy
make test-existing-controllers
continueOnError: 'false'
displayName: 'Set kind cluster and Run int tests'
