From 29d0d31b06e9c0cadad23e1f9372824816879c6c Mon Sep 17 00:00:00 2001 From: gianlucm76 Date: Wed, 8 Feb 2023 10:30:06 -0800 Subject: [PATCH] Prepare release v0.4.1 --- Makefile | 10 +++++----- api/v1alpha1/zz_generated.deepcopy.go | 5 +++-- config/default/manager_image_patch.yaml | 2 +- go.mod | 2 +- go.sum | 4 ++-- manifest/manifest.yaml | 2 +- pkg/drift-detection/drift-detection-manager.go | 2 +- pkg/drift-detection/drift-detection-manager.yaml | 2 +- 8 files changed, 15 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index 0f387914..b8395c45 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ ARCH ?= amd64 OS ?= $(shell uname -s | tr A-Z a-z) K8S_LATEST_VER ?= $(shell curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) export CONTROLLER_IMG ?= $(REGISTRY)/$(IMAGE_NAME) -TAG ?= dev +TAG ?= v0.4.1 # Get cluster-api version and build ldflags clusterapi := $(shell go list -m sigs.k8s.io/cluster-api) @@ -244,8 +244,8 @@ deploy-projectsveltos: $(KUSTOMIZE) $(MAKE) load-image @echo 'Install libsveltos CRDs' - $(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/dev/config/crd/bases/lib.projectsveltos.io_debuggingconfigurations.yaml - $(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/dev/config/crd/bases/lib.projectsveltos.io_sveltosclusters.yaml + $(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/v0.4.1/config/crd/bases/lib.projectsveltos.io_debuggingconfigurations.yaml + $(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/v0.4.1/config/crd/bases/lib.projectsveltos.io_sveltosclusters.yaml # Install projectsveltos controller-manager components @echo 'Install projectsveltos controller-manager components' @@ -253,7 +253,7 @@ deploy-projectsveltos: $(KUSTOMIZE) $(KUSTOMIZE) build config/default | $(ENVSUBST) | $(KUBECTL) apply -f- # Install sveltoscluster-manager - $(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/sveltoscluster-manager/dev/manifest/manifest.yaml + $(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/sveltoscluster-manager/v0.4.1/manifest/manifest.yaml @echo "Waiting for projectsveltos controller-manager to be available..." $(KUBECTL) wait --for=condition=Available deployment/fm-controller-manager -n projectsveltos --timeout=$(TIMEOUT) @@ -270,7 +270,7 @@ set-manifest-pull-policy: drift-detection-manager: @echo "Downloading drift detection manager yaml" - curl -L https://raw.githubusercontent.com/projectsveltos/drift-detection-manager/dev/manifest/manifest.yaml -o ./pkg/drift-detection/drift-detection-manager.yaml + curl -L https://raw.githubusercontent.com/projectsveltos/drift-detection-manager/v0.4.1/manifest/manifest.yaml -o ./pkg/drift-detection/drift-detection-manager.yaml cd pkg/drift-detection; go generate .PHONY: build diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index 3c673f78..63393107 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -22,9 +22,10 @@ limitations under the License. package v1alpha1 import ( - apiv1alpha1 "github.com/projectsveltos/libsveltos/api/v1alpha1" - "k8s.io/api/core/v1" + v1 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" + + apiv1alpha1 "github.com/projectsveltos/libsveltos/api/v1alpha1" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. diff --git a/config/default/manager_image_patch.yaml b/config/default/manager_image_patch.yaml index 78a10107..54b38bb4 100644 --- a/config/default/manager_image_patch.yaml +++ b/config/default/manager_image_patch.yaml @@ -8,5 +8,5 @@ spec: spec: containers: # Change the value of image field below to your controller image URL - - image: gianlucam76/sveltos-manager-amd64:dev + - image: gianlucam76/sveltos-manager-amd64:v0.4.1 name: manager diff --git a/go.mod b/go.mod index e3060dc3..520dfb53 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/onsi/ginkgo/v2 v2.6.0 github.com/onsi/gomega v1.24.1 github.com/pkg/errors v0.9.1 - github.com/projectsveltos/libsveltos v0.4.1-0.20230207202124-d0a8595fab5e + github.com/projectsveltos/libsveltos v0.4.1 github.com/prometheus/client_golang v1.13.0 github.com/spf13/pflag v1.0.5 golang.org/x/text v0.5.0 diff --git a/go.sum b/go.sum index 20eb7baa..e1ff450d 100644 --- a/go.sum +++ b/go.sum @@ -790,8 +790,8 @@ github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndr github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= github.com/poy/onpar v0.0.0-20190519213022-ee068f8ea4d1 h1:oL4IBbcqwhhNWh31bjOX8C/OCy0zs9906d/VUru+bqg= github.com/poy/onpar v0.0.0-20190519213022-ee068f8ea4d1/go.mod h1:nSbFQvMj97ZyhFRSJYtut+msi4sOY6zJDGCdSc+/rZU= -github.com/projectsveltos/libsveltos v0.4.1-0.20230207202124-d0a8595fab5e h1:LrgQHZkRta852MySb/u1lchve/AQcrF76n/Iq9SPuKg= -github.com/projectsveltos/libsveltos v0.4.1-0.20230207202124-d0a8595fab5e/go.mod h1:smYCt3DQSZpQqsaoM2mJAIP6RAMXcxw5Af0mzkncCs4= +github.com/projectsveltos/libsveltos v0.4.1 h1:icU0MkB12xlbbPGWyFL9X6h0n1Wcce+eclXR1Q7WjfU= +github.com/projectsveltos/libsveltos v0.4.1/go.mod h1:smYCt3DQSZpQqsaoM2mJAIP6RAMXcxw5Af0mzkncCs4= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= github.com/prometheus/client_golang v1.1.0/go.mod h1:I1FGZT9+L76gKKOs5djB6ezCbFQP1xR9D75/vuwEF3g= diff --git a/manifest/manifest.yaml b/manifest/manifest.yaml index 04379afd..166609b2 100644 --- a/manifest/manifest.yaml +++ b/manifest/manifest.yaml @@ -1380,7 +1380,7 @@ spec: - --v=5 command: - /manager - image: gianlucam76/sveltos-manager-amd64:dev + image: gianlucam76/sveltos-manager-amd64:v0.4.1 livenessProbe: httpGet: path: /healthz diff --git a/pkg/drift-detection/drift-detection-manager.go b/pkg/drift-detection/drift-detection-manager.go index befbb909..0396ef39 100644 --- a/pkg/drift-detection/drift-detection-manager.go +++ b/pkg/drift-detection/drift-detection-manager.go @@ -260,7 +260,7 @@ spec: - --run-mode=do-not-send-updates command: - /manager - image: gianlucam76/drift-detection-manager-amd64:main + image: gianlucam76/drift-detection-manager-amd64:v0.4.1 livenessProbe: httpGet: path: /healthz diff --git a/pkg/drift-detection/drift-detection-manager.yaml b/pkg/drift-detection/drift-detection-manager.yaml index bf559d96..00721e64 100644 --- a/pkg/drift-detection/drift-detection-manager.yaml +++ b/pkg/drift-detection/drift-detection-manager.yaml @@ -242,7 +242,7 @@ spec: - --run-mode=do-not-send-updates command: - /manager - image: gianlucam76/drift-detection-manager-amd64:main + image: gianlucam76/drift-detection-manager-amd64:v0.4.1 livenessProbe: httpGet: path: /healthz