generated from giantswarm/template-app
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Erkan Erol
committed
May 9, 2024
1 parent
d4dbb6c
commit 93e59ed
Showing
3 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
# Exit on error. | ||
set -o errexit -o nounset -o pipefail | ||
|
||
# | ||
# The CRD contains some templates in the descriptions and | ||
# those break our helm templates. This script removes the | ||
# curly braces from the CRD. | ||
# | ||
|
||
# Get repository path. | ||
repository="$(realpath "$(dirname "${0}")/..")" | ||
|
||
|
||
sed -i.bak -e 's/{{ //g' -e 's/ }}//g' "${repository}/helm/cluster-api/files/core/patches/versions/v1beta1/clusterclasses.cluster.x-k8s.io.yaml" | ||
rm "${repository}/helm/cluster-api/files/core/patches/versions/v1beta1/clusterclasses.cluster.x-k8s.io.yaml.bak" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters