From 76b4e5e30b8df10b0e24c6737909158da1e08021 Mon Sep 17 00:00:00 2001 From: rimas Date: Tue, 15 Oct 2019 16:40:59 +0100 Subject: [PATCH] fix makefile, update chart version --- Makefile | 4 ++-- README.md | 6 +++--- chart/kubenab/Chart.yaml | 4 ++-- deployment/kubenab-deployment.yaml | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index ba6cd7d..1904210 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # You can disable this by setting `STRIP_DEBUG=""` STRIP_DEBUG ?=-tags 'strip_debug' # OUT_DIR sets the Path where the kubenab Build Artifact will be puttet -OUT_DIR ?=../../bin +OUT_DIR ?=../../../bin GIT_HASH=$(shell git rev-parse HEAD) BUILD_DATE=$(shell date -u '+%Y-%m-%d_%I:%M:%S%p') APP_VERSION=$(shell git describe --abbrev=0 --tags) @@ -22,4 +22,4 @@ build: git fetch --tags @echo "++ Building kubenab go binary..." mkdir -p bin - cd cmd/kubenab && go build $(STRIP_DEBUG) -a --installsuffix cgo --ldflags="-s -X main.AppVersion=$(APP_VERSION) -X main.BuildDate=$(BUILD_DATE) -X main.GitHash=$(GIT_HASH)" -o $(OUT_DIR)kubenab + cd cmd/kubenab && go build $(STRIP_DEBUG) -a --installsuffix cgo --ldflags="-s -X main.AppVersion=$(APP_VERSION) -X main.BuildDate=$(BUILD_DATE) -X main.GitHash=$(GIT_HASH)" -o $(OUT_DIR)/kubenab diff --git a/README.md b/README.md index 5ccd503..8b5d737 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Kubenab is Kubernetes Admission webhook to enforce pulling of docker images from ### Prerequisites -Kubernetes 1.9.0 or above with the `admissionregistration.k8s.io/v1beta1` API enabled. Verify that by the following command: +Kubernetes 1.12.0 or above with the `admissionregistration.k8s.io/v1beta1` API enabled. Verify that by the following command: ``` kubectl api-versions | grep admissionregistration.k8s.io/v1beta1 ``` @@ -24,10 +24,10 @@ In addition, the `MutatingAdmissionWebhook` and `ValidatingAdmissionWebhook` adm ```bash # Build docker image -docker build -t my-registry/kubenab:0.0.5 . +docker build -t my-registry/kubenab:0.3.3 . # Push it to Docker Registry -docker push my-registry/kubenab:0.0.5 +docker push my-registry/kubenab:0.3.3 ``` ### Create [Kubernetes Docker registry secret](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) diff --git a/chart/kubenab/Chart.yaml b/chart/kubenab/Chart.yaml index a7fa374..452052d 100644 --- a/chart/kubenab/Chart.yaml +++ b/chart/kubenab/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: kubenab -version: 0.0.7 -appVersion: 0.3.2 +version: 0.0.8 +appVersion: 0.3.3 home: https://github.com/jfrog/kubenab kubeVersion: ">=1.12.0" description: Kubenab Helm chart diff --git a/deployment/kubenab-deployment.yaml b/deployment/kubenab-deployment.yaml index 3e052c5..ee40364 100644 --- a/deployment/kubenab-deployment.yaml +++ b/deployment/kubenab-deployment.yaml @@ -17,7 +17,7 @@ spec: priorityClassName: system-cluster-critical containers: - name: kubenab - image: docker.bintray.io/kubexray:0.3.1 + image: docker.bintray.io/kubexray:0.3.3 imagePullPolicy: Always env: - name: DOCKER_REGISTRY_URL