Skip to content

Commit

Permalink
Fix the app version in the published Helm charts
Browse files Browse the repository at this point in the history
  • Loading branch information
calind committed Dec 27, 2021
1 parent 779b344 commit 55cad74
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### Removed
### Fixed

## [0.12.1] - 2021-12-22
### Changed
* Bump https://github.com/bitpoke/build to 0.7.1
### Fixed
* Fix the app version in the published Helm charts

## [0.12.0] - 2021-12-22
### Added
### Changed
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ include build/makelib/helm.mk
@set -e; \
for crd in $(wildcard $(CRD_DIR)/*.yaml) ; do \
cp $${crd} $(HELM_CHARTS_DIR)/wordpress-operator/crds/ ; \
$(YQ) e '.metadata.labels["app"]="wordpress-operator"' -i $(HELM_CHARTS_DIR)/wordpress-operator/crds/$$(basename $${crd}) ; \
$(YQ) e 'del(.metadata.creationTimestamp)' -i $(HELM_CHARTS_DIR)/wordpress-operator/crds/$$(basename $${crd}) ; \
$(YQ) e 'del(.status)' -i $(HELM_CHARTS_DIR)/wordpress-operator/crds/$$(basename $${crd}) ; \
$(YQ) e '.metadata.labels["app.kubernetes.io/name"]="wordpress-operator"' -i $(HELM_CHARTS_DIR)/wordpress-operator/crds/$$(basename $${crd}) ; \
$(YQ) e 'del(.metadata.creationTimestamp)' -i $(HELM_CHARTS_DIR)/wordpress-operator/crds/$$(basename $${crd}) ; \
$(YQ) e 'del(.status)' -i $(HELM_CHARTS_DIR)/wordpress-operator/crds/$$(basename $${crd}) ; \
done
@echo '{{- if .Values.rbac.create }}' > $(HELM_CHARTS_DIR)/wordpress-operator/templates/clusterrole.yaml
@echo 'apiVersion: rbac.authorization.k8s.io/v1' >> $(HELM_CHARTS_DIR)/wordpress-operator/templates/clusterrole.yaml
Expand Down Expand Up @@ -72,7 +72,7 @@ include build/makelib/helm.mk
.PHONY: .helm.package.prepare.wordpress-operator
.helm.package.prepare.wordpress-operator: $(YQ)
@$(INFO) prepare wordpress-operator chart $(HELM_CHART_VERSION)
@$(YQ) e '.image="$(DOCKER_REGISTRY)/wordpress-operator:$(IMAGE_TAG)"' -i $(HELM_CHARTS_WORK_DIR)/wordpress-operator/values.yaml
@$(YQ) e '.image.repository="$(DOCKER_REGISTRY)/wordpress-operator"' -i $(HELM_CHARTS_WORK_DIR)/wordpress-operator/values.yaml
@$(SED) 's/:latest/:$(IMAGE_TAG)/g' $(HELM_CHARTS_WORK_DIR)/wordpress-operator/Chart.yaml
@$(OK) prepare wordpress-operator chart $(HELM_CHART_VERSION)
.helm.package.run.wordpress-operator: .helm.package.prepare.wordpress-operator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
controller-gen.kubebuilder.io/version: v0.7.0
name: wordpresses.wordpress.presslabs.org
labels:
app: wordpress-operator
app.kubernetes.io/name: wordpress-operator
spec:
group: wordpress.presslabs.org
names:
Expand Down

0 comments on commit 55cad74

Please sign in to comment.