From 719eff53b24927adc408520d5e9df433c01e94ac Mon Sep 17 00:00:00 2001 From: isindir Date: Fri, 8 Nov 2019 12:24:22 +0000 Subject: [PATCH] release fix-name-length-limitation (#3) --- .circleci/config.yml | 16 +++++++++++++++- chart/sops-secrets-operator/Chart.yaml | 4 ++-- chart/sops-secrets-operator/values.yaml | 2 +- go.mod | 3 ++- version/version.go | 2 +- 5 files changed, 21 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6d17cabc..f44035e4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,7 +11,7 @@ jobs: K8S_VERSION: v1.15.2 KIND_VERSION: v0.4.0 HELM_VERSION: v2.14.3 - GOLANG_VERSION: 1.12.9 + GOLANG_VERSION: 1.13.4 OPERATOR_SDK_VERSION: 0.10.0 SOPS_VERSION: 3.3.1 @@ -172,6 +172,20 @@ jobs: echo "Expected number of secrets in sops namespace is 3 - Failed" exit 1 fi + # Delete to check GC works + kubectl delete -f 00init.enc.yaml --namespace sops + sleep 15 + kubectl get sops --namespace sops + echo + kubectl get secrets --namespace sops + echo + export SECRETS_NUMBER=$( kubectl get secrets --namespace sops \ + | awk '$0!~/default-token/ && $0!~/NAME/ { print $1; }' \ + | wc -l ) + if [[ $SECRETS_NUMBER -ne 0 ]]; then + echo "Expected number of secrets in sops namespace is 0 - Failed" + exit 1 + fi rm -fr $GNUPGHOME - run: name: Run Tests diff --git a/chart/sops-secrets-operator/Chart.yaml b/chart/sops-secrets-operator/Chart.yaml index 813d9369..0dd34803 100644 --- a/chart/sops-secrets-operator/Chart.yaml +++ b/chart/sops-secrets-operator/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 -version: 0.1.5 -appVersion: 0.0.7 +version: 0.1.6 +appVersion: 0.0.8 description: sops secrets operator name: sops-secrets-operator sources: diff --git a/chart/sops-secrets-operator/values.yaml b/chart/sops-secrets-operator/values.yaml index 41b0845f..a6d98d0b 100644 --- a/chart/sops-secrets-operator/values.yaml +++ b/chart/sops-secrets-operator/values.yaml @@ -6,7 +6,7 @@ replicaCount: 1 image: repository: isindir/sops-secrets-operator - tag: 0.0.7 + tag: 0.0.8 pullPolicy: AlwaysPull imagePullSecrets: [] diff --git a/go.mod b/go.mod index 26fe2bcc..65a60715 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,6 @@ module github.com/isindir/sops-secrets-operator require ( github.com/Azure/azure-sdk-for-go v30.0.0+incompatible // indirect - github.com/NYTimes/gziphandler v1.0.1 // indirect github.com/aws/aws-sdk-go v1.19.41 // indirect github.com/dimchansky/utfbom v1.1.0 // indirect github.com/fatih/color v1.7.0 // indirect @@ -48,3 +47,5 @@ replace ( ) replace github.com/operator-framework/operator-sdk => github.com/operator-framework/operator-sdk v0.10.0 + +go 1.13 diff --git a/version/version.go b/version/version.go index 6e511a2f..6f594dc8 100644 --- a/version/version.go +++ b/version/version.go @@ -2,5 +2,5 @@ package version var ( // Version of the operator - Version = "0.0.7" + Version = "0.0.8" )