Skip to content

Commit

Permalink
homogenizing kustomize usage in examples/renders folders
Browse files Browse the repository at this point in the history
Signed-off-by: Sanskar Bhushan <[email protected]>
  • Loading branch information
sbdtu5498 committed Aug 7, 2023
1 parent feda2e3 commit 75407a7
Show file tree
Hide file tree
Showing 22 changed files with 44 additions and 32 deletions.
2 changes: 1 addition & 1 deletion examples/optional-features/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../render/contour-gateway.yaml
- ../render/contour/contour-gateway.yaml
patches:
- patch: |-
- op: add
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions examples/render/contour-deployment/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- contour-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- contour-gateway-provisioner.yaml
File renamed without changes.
4 changes: 4 additions & 0 deletions examples/render/contour-gateway/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- contour-gateway.yaml
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions hack/generate-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ readonly MODE="$1"

case $MODE in
deployment)
TARGET="${REPO}/examples/render/contour-deployment.yaml"
TARGET="${REPO}/examples/render/contour/contour-deployment.yaml"
SKIP_FILE="*/03-envoy.yaml"
;;
daemonset)
TARGET="${REPO}/examples/render/contour.yaml"
TARGET="${REPO}/examples/render/contour/contour.yaml"
SKIP_FILE="*/03-envoy-deployment.yaml"
;;
esac
Expand Down
2 changes: 1 addition & 1 deletion hack/generate-gateway-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -o pipefail
readonly HERE=$(cd "$(dirname "$0")" && pwd)
readonly REPO=$(cd "${HERE}"/.. && pwd)
readonly PROGNAME=$(basename "$0")
readonly TARGET="${REPO}/examples/render/contour-gateway.yaml"
readonly TARGET="${REPO}/examples/render/contour/contour-gateway.yaml"

exec > >(git stripspace >"$TARGET")

Expand Down
2 changes: 1 addition & 1 deletion hack/generate-provisioner-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -o pipefail
readonly HERE=$(cd "$(dirname "$0")" && pwd)
readonly REPO=$(cd "${HERE}"/.. && pwd)
readonly PROGNAME=$(basename "$0")
readonly TARGET="${REPO}/examples/render/contour-gateway-provisioner.yaml"
readonly TARGET="${REPO}/examples/render/contour/contour-gateway-provisioner.yaml"

exec > >(git stripspace >"$TARGET")

Expand Down
8 changes: 4 additions & 4 deletions hack/release/make-release-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ if git status -s examples/contour 2>&1 | grep -E -q '^\s+[MADRCU]'; then
examples/contour/02-job-certgen.yaml \
examples/deployment/03-envoy-deployment.yaml \
examples/gateway-provisioner/03-gateway-provisioner.yaml \
examples/render/contour.yaml \
examples/render/contour-gateway.yaml \
examples/render/contour-deployment.yaml \
examples/render/contour-gateway-provisioner.yaml
examples/render/contour/contour.yaml \
examples/render/contour/contour-gateway.yaml \
examples/render/contour/contour-deployment.yaml \
examples/render/contour/contour-gateway-provisioner.yaml
fi

git tag -F - "$NEWVERS" <<EOF
Expand Down
4 changes: 2 additions & 2 deletions hack/release/release-notes-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ The simplest way to install {{ .Version }} is to apply one of the example config

With Gateway API:
```bash
kubectl apply -f https://raw.githubusercontent.com/projectcontour/contour/{{ .Version }}/examples/render/contour-gateway.yaml
kubectl apply -f https://raw.githubusercontent.com/projectcontour/contour/{{ .Version }}/examples/render/contour/contour-gateway.yaml
```

Without Gateway API:
```bash
kubectl apply -f https://raw.githubusercontent.com/projectcontour/contour/{{ .Version }}/examples/render/contour.yaml
kubectl apply -f https://raw.githubusercontent.com/projectcontour/contour/{{ .Version }}/examples/render/contour/contour.yaml
```
{{ else }}
For a fresh install of Contour, consult the [getting started documentation](https://projectcontour.io/getting-started/).
Expand Down
12 changes: 6 additions & 6 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ HUGO_ENABLEGITINFO = "true"
# kubectl apply https://projectcontour.io/quickstart/contour.yaml
[[redirects]]
from = "/quickstart/contour.yaml"
to = "https://raw.githubusercontent.com/projectcontour/contour/release-1.25/examples/render/contour.yaml"
to = "https://raw.githubusercontent.com/projectcontour/contour/release-1.25/examples/render/contour/contour.yaml"
status = 302

# Redirect versioned quickstarts so that they can easily be referenced by
Expand All @@ -63,15 +63,15 @@ HUGO_ENABLEGITINFO = "true"
# kubectl apply https://projectcontour.io/quickstart/v1.4.0/contour.yaml
[[redirects]]
from = "/quickstart/*/contour.yaml"
to = "https://raw.githubusercontent.com/projectcontour/contour/:splat/examples/render/contour.yaml"
to = "https://raw.githubusercontent.com/projectcontour/contour/:splat/examples/render/contour/contour.yaml"
status = 302

# Redirect /quickstart/contour-gateway.yaml to the example Contour-Gateway manifest that matches :latest.
#
# kubectl apply https://projectcontour.io/quickstart/contour-gateway.yaml
[[redirects]]
from = "/quickstart/contour-gateway.yaml"
to = "https://raw.githubusercontent.com/projectcontour/contour/release-1.25/examples/render/contour-gateway.yaml"
to = "https://raw.githubusercontent.com/projectcontour/contour/release-1.25/examples/render/contour/contour-gateway.yaml"
status = 302

# Redirect versioned quickstarts so that they can easily be referenced by
Expand All @@ -80,15 +80,15 @@ status = 302
# kubectl apply https://projectcontour.io/quickstart/v1.4.0/contour-gateway.yaml
[[redirects]]
from = "/quickstart/*/contour-gateway.yaml"
to = "https://raw.githubusercontent.com/projectcontour/contour/:splat/examples/render/contour-gateway.yaml"
to = "https://raw.githubusercontent.com/projectcontour/contour/:splat/examples/render/contour/contour-gateway.yaml"
status = 302

# Redirect /quickstart/contour-gateway-provisioner.yaml to the Gateway provisioner manifest that matches :latest.
#
# kubectl apply https://projectcontour.io/quickstart/contour-gateway-provisioner.yaml
[[redirects]]
from = "/quickstart/contour-gateway-provisioner.yaml"
to = "https://raw.githubusercontent.com/projectcontour/contour/release-1.25/examples/render/contour-gateway-provisioner.yaml"
to = "https://raw.githubusercontent.com/projectcontour/contour/release-1.25/examples/render/contour/contour-gateway-provisioner.yaml"
status = 302

# Redirect versioned quickstarts so that they can easily be referenced by
Expand All @@ -97,7 +97,7 @@ status = 302
# kubectl apply https://projectcontour.io/quickstart/v1.4.0/contour-gateway-provisioner.yaml
[[redirects]]
from = "/quickstart/*/contour-gateway-provisioner.yaml"
to = "https://raw.githubusercontent.com/projectcontour/contour/:splat/examples/render/contour-gateway-provisioner.yaml"
to = "https://raw.githubusercontent.com/projectcontour/contour/:splat/examples/render/contour/contour-gateway-provisioner.yaml"
status = 302


Expand Down
4 changes: 2 additions & 2 deletions site/content/docs/1.20/deploy-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ $ kubectl delete ns contour-operator
```

[1]: #running-without-a-kubernetes-loadbalancer
[2]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour.yaml
[2]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour/contour.yaml
[3]: #host-networking
[4]: /guides/proxy-proto.md
[5]: https://github.com/kubernetes-up-and-running/kuard
Expand All @@ -233,5 +233,5 @@ $ kubectl delete ns contour-operator
[11]: redeploy-envoy.md
[12]: https://github.com/projectcontour/contour-operator
[13]: https://projectcontour.io/resources/deprecation-policy/
[14]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour-deployment.yaml
[14]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour/contour-deployment.yaml
[15]: /resources/upgrading/
4 changes: 2 additions & 2 deletions site/content/docs/1.21/deploy-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ $ kubectl delete ns contour-operator
```

[1]: #running-without-a-kubernetes-loadbalancer
[2]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour.yaml
[2]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour/contour.yaml
[3]: #host-networking
[4]: /guides/proxy-proto.md
[5]: https://github.com/kubernetes-up-and-running/kuard
Expand All @@ -233,5 +233,5 @@ $ kubectl delete ns contour-operator
[11]: redeploy-envoy.md
[12]: https://github.com/projectcontour/contour-operator
[13]: https://projectcontour.io/resources/deprecation-policy/
[14]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour-deployment.yaml
[14]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour/contour-deployment.yaml
[15]: /resources/upgrading/
4 changes: 2 additions & 2 deletions site/content/docs/1.22/deploy-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ $ kubectl delete ns contour-operator
```

[1]: #running-without-a-kubernetes-loadbalancer
[2]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour.yaml
[2]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour/contour.yaml
[3]: #host-networking
[4]: /guides/proxy-proto.md
[5]: https://github.com/kubernetes-up-and-running/kuard
Expand All @@ -233,5 +233,5 @@ $ kubectl delete ns contour-operator
[11]: redeploy-envoy.md
[12]: https://github.com/projectcontour/contour-operator
[13]: https://projectcontour.io/resources/deprecation-policy/
[14]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour-deployment.yaml
[14]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour/contour-deployment.yaml
[15]: /resources/upgrading/
4 changes: 2 additions & 2 deletions site/content/docs/1.23/deploy-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ $ kubectl delete ns contour-operator
```

[1]: #running-without-a-kubernetes-loadbalancer
[2]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour.yaml
[2]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour/contour.yaml
[3]: #host-networking
[4]: guides/proxy-proto.md
[5]: https://github.com/kubernetes-up-and-running/kuard
Expand All @@ -359,7 +359,7 @@ $ kubectl delete ns contour-operator
[11]: redeploy-envoy.md
[12]: https://github.com/projectcontour/contour-operator
[13]: https://projectcontour.io/resources/deprecation-policy/
[14]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour-deployment.yaml
[14]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour/contour-deployment.yaml
[15]: /resources/upgrading/
[16]: https://projectcontour.io/getting-started/#option-3-contour-gateway-provisioner-alpha
[17]: {{< param github_url>}}/tree/{{< param branch >}}/examples/contour
Expand Down
4 changes: 2 additions & 2 deletions site/content/docs/1.24/deploy-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ $ kubectl delete ns contour-operator
```

[1]: #running-without-a-kubernetes-loadbalancer
[2]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour.yaml
[2]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour/contour.yaml
[3]: #host-networking
[4]: guides/proxy-proto.md
[5]: https://github.com/kubernetes-up-and-running/kuard
Expand All @@ -372,7 +372,7 @@ $ kubectl delete ns contour-operator
[11]: redeploy-envoy.md
[12]: https://github.com/projectcontour/contour-operator
[13]: https://projectcontour.io/resources/deprecation-policy/
[14]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour-deployment.yaml
[14]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour/contour-deployment.yaml
[15]: /resources/upgrading/
[16]: https://projectcontour.io/getting-started/#option-3-contour-gateway-provisioner-alpha
[17]: {{< param github_url>}}/tree/{{< param branch >}}/examples/contour
Expand Down
4 changes: 2 additions & 2 deletions site/content/docs/1.25/deploy-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ $ kubectl delete ns contour-operator
```

[1]: #running-without-a-kubernetes-loadbalancer
[2]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour.yaml
[2]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour/contour.yaml
[3]: #host-networking
[4]: guides/proxy-proto.md
[5]: https://github.com/kubernetes-up-and-running/kuard
Expand All @@ -382,7 +382,7 @@ $ kubectl delete ns contour-operator
[11]: redeploy-envoy.md
[12]: https://github.com/projectcontour/contour-operator
[13]: https://projectcontour.io/resources/deprecation-policy/
[14]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour-deployment.yaml
[14]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour/contour-deployment.yaml
[15]: /resources/upgrading/
[16]: https://projectcontour.io/getting-started/#option-3-contour-gateway-provisioner-alpha
[17]: {{< param github_url>}}/tree/{{< param branch >}}/examples/contour
Expand Down
6 changes: 3 additions & 3 deletions site/content/docs/main/deploy-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ $ kubectl delete ns projectcontour
**Note**: Your namespace may differ from above.

[1]: #running-without-a-kubernetes-loadbalancer
[2]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour.yaml
[2]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour/contour.yaml
[3]: #host-networking
[4]: guides/proxy-proto.md
[5]: https://github.com/kubernetes-up-and-running/kuard
Expand All @@ -373,9 +373,9 @@ $ kubectl delete ns projectcontour
[9]: config/fundamentals.md
[10]: guides/deploy-aws-nlb.md
[11]: redeploy-envoy.md
[12]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour-gateway-provisioner.yaml
[12]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour/contour-gateway-provisioner.yaml
[13]: https://projectcontour.io/resources/deprecation-policy/
[14]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour-deployment.yaml
[14]: {{< param github_url>}}/tree/{{< param branch >}}/examples/render/contour/contour-deployment.yaml
[15]: /resources/upgrading/
[16]: https://projectcontour.io/getting-started/#option-3-contour-gateway-provisioner-alpha
[17]: {{< param github_url>}}/tree/{{< param branch >}}/examples/contour
Expand Down

0 comments on commit 75407a7

Please sign in to comment.