Skip to content

Commit

Permalink
Fix yq command in patch-chart.sh (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
levan-m committed Jun 28, 2024
1 parent be2a1eb commit 23fea1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ release: bundle
bundle: manifests
bin/$(PLATFORM)/operator-sdk generate kustomize manifests -q
cd config/manager && $(ROOT_DIR)/$(KUSTOMIZE) edit set image $(IMG_NAME)=$(IMG)
$(KUSTOMIZE) build config/manifests | ./bin/operator-sdk generate bundle -q --overwrite --version $(VERSION) $(BUNDLE_METADATA_OPTS)
$(KUSTOMIZE) build config/manifests | ./bin/$(PLATFORM)/operator-sdk generate bundle -q --overwrite --version $(VERSION) $(BUNDLE_METADATA_OPTS)
hack/patch-bundle.sh
bin/$(PLATFORM)/operator-sdk bundle validate ./bundle

Expand Down
4 changes: 2 additions & 2 deletions hack/patch-chart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ source "$SCRIPTS_DIR/install-common.sh"
YQ="$ROOT/bin/$PLATFORM/yq"

# Update version in the helm chart
$YQ w -i "$ROOT/chart/watermarkpodautoscaler/Chart.yaml" "appVersion" "$VVERSION"
$YQ w -i "$ROOT/chart/watermarkpodautoscaler/values.yaml" "image.tag" "$VVERSION"
$YQ -i ".appVersion = \"$VVERSION\"" "$ROOT/chart/watermarkpodautoscaler/Chart.yaml"
$YQ -i ".image.tag = \"$VVERSION\"" "$ROOT/chart/watermarkpodautoscaler/values.yaml"

0 comments on commit 23fea1d

Please sign in to comment.