Skip to content

Commit

Permalink
rm webhook resources from installation yaml
Browse files Browse the repository at this point in the history
Add a seperate `webhook-install.yaml` file instead
which contains only webhook resources which someone
may choose to optionally install

Fixes: #2400

Signed-off-by: Arko Dasgupta <arko@tetrate.io>
  • Loading branch information
arkodg committed Sep 15, 2023
1 parent f98e94a commit 67dd2fb
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions hack/build-install-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,15 @@ cat << EOF >> release/standard-install.yaml
#
EOF

for file in `ls config/webhook/*.yaml config/crd/experimental/gateway*.yaml`
cat hack/boilerplate/boilerplate.sh.txt > release/webhook-install.yaml
sed -i "s/YEAR/$thisyear/g" release/webhook-install.yaml
cat << EOF >> release/webhook-install.yaml
#
# Gateway API deprecated webhook install
#
EOF

for file in `ls config/crd/experimental/gateway*.yaml`
do
echo "---" >> release/experimental-install.yaml
echo "#" >> release/experimental-install.yaml
Expand All @@ -48,7 +56,7 @@ do
cat $file >> release/experimental-install.yaml
done

for file in `ls config/webhook/*.yaml config/crd/standard/*.yaml`
for file in `ls config/crd/standard/*.yaml`
do
echo "---" >> release/standard-install.yaml
echo "#" >> release/standard-install.yaml
Expand All @@ -57,4 +65,13 @@ do
cat $file >> release/standard-install.yaml
done

for file in `ls config/webhook/*.yaml`
do
echo "---" >> release/webhook-install.yaml
echo "#" >> release/webhook-install.yaml
echo "# $file" >> release/webhook-install.yaml
echo "#" >> release/webhook-install.yaml
cat $file >> release/webhook-install.yaml
done

echo "Generated:" release/*-install.yaml

0 comments on commit 67dd2fb

Please sign in to comment.