-
Notifications
You must be signed in to change notification settings - Fork 5
/
make-site.sh
executable file
·26 lines (23 loc) · 1.32 KB
/
make-site.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
release_version=master-4
cd docs-raw/site
mkdocs build -d ../../docs
cd ../..
combined_install='docs/assets/basic-install.yaml'
cat deploy/operator/apply/01_FabricGatewayCRD.yaml > ""${combined_install}""
echo -e '\n---\n' >> "${combined_install}"
cat deploy/operator/apply/02_GatewayCRDSchemaValidation.yaml >> "${combined_install}"
echo -e '\n---\n' >> "${combined_install}"
cat deploy/operator/apply/03_MetacontrollerGatewaySynchHook.yaml >> "${combined_install}"
echo -e '\n---\n' >> "${combined_install}"
cat deploy/operator/apply/08_OperatorService.yaml >> "${combined_install}"
echo -e '\n---\n' >> "${combined_install}"
cat deploy/operator/apply/07_OperatorDeployment.yaml >> "${combined_install}"
sed -i '' 's#{{{IMAGE}}}#registry.opensource.zalan.do/fabric/gateway-k8s-operator#' "${combined_install}"
sed -i '' "s/{{{VERSION}}}/${release_version}/" "${combined_install}"
sed -i '' "s/{{{ CRD_PLURAL }}}/fabricgateways/" "${combined_install}"
sed -i '' "s/{{{ CRD_KIND }}}/FabricGateway/" "${combined_install}"
sed -i '' "s/{{{ CRD_SINGULAR }}}/fabricgateway/" "${combined_install}"
sed -i '' "s/{{{ CRD_SHORT_NAME }}}/fg/" "${combined_install}"
sed -i '' "s/{{{ COMPOSITE_CONTROLLER_NAME }}}/gateway-operator/" "${combined_install}"
sed -i '' "s/{{{ VERSIONED_HOSTS_BASE_DOMAIN }}}/example.com/" "${combined_install}"