From a744a9213c137a0ee113219fa3dba46fb27b176f Mon Sep 17 00:00:00 2001 From: Martin Hickey Date: Mon, 6 Apr 2020 17:33:59 +0000 Subject: [PATCH] Fix the automated build --- .gitignore | 2 ++ .goreleaser.yml | 16 ++++++++-------- README.md | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index ec905b5..13ab009 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ bin/ +dist/ tmp/ +releases/ diff --git a/.goreleaser.yml b/.goreleaser.yml index eae26ae..3651ac8 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,5 @@ builds: - - main: ./cmd/helm-mapkubeapis/map_kube_apis.go + - main: ./cmd/helm-mapkubeapis binary: mapkubeapis env: - CGO_ENABLED=0 @@ -10,12 +10,12 @@ builds: goarch: - amd64 - arm64 -archive: - format: tar.gz - files: - - README.md - - LICENSE - - plugin.yaml - - scripts/install_plugin.sh +archives: + - format: tar.gz + files: + - README.md + - LICENSE + - plugin.yaml + - scripts/install_plugin.sh checksum: name_template: 'checksums.txt' diff --git a/README.md b/README.md index 9677486..42a3279 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Errors similar to the following can be seen: Error: UPGRADE FAILED: unable to build kubernetes objects from current release manifest: unable to recognize "": no matches for kind "Deployment" in version "apps/v1beta1" ``` -The `mapkubeapis` plugin fixes the issue by mapping releases which contain deprecated Kubernetes APIs to supported APIs. This is performed inline in the release metadata. Once this operation is completed, you can then upgrade using the chart with supported APIs. +The `mapkubeapis` plugin fixes the issue by mapping releases which contain deprecated Kubernetes APIs to supported APIs. This is performed inline in the release metadata where the existing release is `superseded` and a new release (metadata only) is added. Once this operation is completed, you can then upgrade using the chart with supported APIs. > Note: It currently support Helm v3 only.