diff --git a/Makefile b/Makefile index bbb5c8889..a162d748b 100644 --- a/Makefile +++ b/Makefile @@ -281,14 +281,12 @@ build_operator_images_for_platforms = $(foreach platform,$1,\ # manifest_files_linux writes the attestation and image manifests to dir for platform and tag # usage: $(call manifest_files_linux,$(output_dir),$(platform),$(tag)) -manifest_files_linux = $(DOCKER_BUILDX_BUILD_CLI) imagetools inspect --raw $(call image_tag,$3,$2) | jq '.manifests[0]' > $1/image_$(call slugify,$2) &&\ - $(DOCKER_BUILDX_BUILD_CLI) imagetools inspect --raw $(call image_tag,$3,$2) | jq '.manifests[1]' > $1/attestation_$(call slugify,$2) +manifest_files_linux = $(DOCKER_BUILDX_BUILD_CLI) imagetools inspect --raw $(call image_tag,$3,$2) | jq '.manifests[0]' > $1/image_$(call slugify,$2) # manifest_files_windows writes the attestation and image manifests to dir for platform and tag, adding windows os version # usage: $(call manifest_files_windows,$(output_dir),$(platform),$(tag),$(windows_image_repo)) manifest_files_windows = export os_version=$$($(DOCKER_BUILDX_BUILD_CLI) imagetools inspect --raw $4:$(call os_version,$2) | jq -r '.manifests[0].platform."os.version"') &&\ - $(DOCKER_BUILDX_BUILD_CLI) imagetools inspect --raw $(call image_tag,$3,$2) | jq '.manifests[0] | .platform."os.version"=env.os_version' > $1/image_$(call slugify,$2) &&\ - $(DOCKER_BUILDX_BUILD_CLI) imagetools inspect --raw $(call image_tag,$3,$2) | jq '.manifests[1]' > $1/attestation_$(call slugify,$2) + $(DOCKER_BUILDX_BUILD_CLI) imagetools inspect --raw $(call image_tag,$3,$2) | jq '.manifests[0] | .platform."os.version"=env.os_version' > $1/image_$(call slugify,$2) # manifest_files_for_platforms writes the attestation and image manifests for all platforms # usage: $(call manifest_files_for_platforms,$(platforms),$(output_dir),$(tag),$(windows_image_repo)) @@ -301,7 +299,7 @@ manifest_files_for_platforms = $(foreach platform,$1,\ # create_manifest_for_platforms creates manifest from platform manifests in dir # usage: $(call create_manifest_for_platforms,$(platforms),$(dir),$(tag)) create_manifest_for_platforms = $(DOCKER_BUILDX_BUILD_CLI) imagetools create -t $3 $(foreach platform,$1,\ - -f $2/image_$(call slugify,$(platform)) -f $2/attestation_$(call slugify,$(platform))) + -f $2/image_$(call slugify,$(platform))) # image_digests returns a json list of image digests and other info for platforms, in the form {image: "$image_tag", # digest: "$digest", os: "$os", architecture: "$arch"} @@ -365,8 +363,7 @@ operator_manifest: operator_images # packages helm chart chart: @cp README.md ./helm/trident-operator/ - @$(HELM_CMD) package --app-version $(TRIDENT_VERSION) --version $(TRIDENT_VERSION) ./helm/trident-operator \ - $(if $(HELM_PGP_KEY),--sign --key "$(HELM_PGP_KEY)" --keyring "$(HELM_PGP_KEYRING)") + @$(HELM_CMD) package ./helm/trident-operator $(if $(HELM_PGP_KEY),--sign --key "$(HELM_PGP_KEY)" --keyring "$(HELM_PGP_KEYRING)") @rm -f ./helm/trident-operator/README.md # builds installer bundle. Skips binaries that have not been built. diff --git a/helm/trident-operator/Chart.yaml b/helm/trident-operator/Chart.yaml index 91bcb226a..e8b9be831 100644 --- a/helm/trident-operator/Chart.yaml +++ b/helm/trident-operator/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: trident-operator -version: 1.0.0 +version: 1.24.1 # Demote CalVer fields and prepend 1 kubeVersion: ">= 1.21.0-0" description: "A Helm chart for deploying NetApp's Trident CSI storage provisioner using the Trident Operator." type: application diff --git a/helm/trident-operator/templates/_helpers.tpl b/helm/trident-operator/templates/_helpers.tpl index 0a871a506..c794fdb1e 100644 --- a/helm/trident-operator/templates/_helpers.tpl +++ b/helm/trident-operator/templates/_helpers.tpl @@ -40,7 +40,6 @@ helm.sh/chart: {{ include "trident.chart" . }} {{- if .Chart.AppVersion }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end }} {{/*