-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make them runnable by fetching CRDs using kustomize.
- Loading branch information
1 parent
6374267
commit 3862cb3
Showing
19 changed files
with
63 additions
and
25,392 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
branches: | ||
- master | ||
- v2 | ||
- v1 | ||
|
||
# Publish `v1.2.3` tags as releases. | ||
tags: | ||
|
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
branches: | ||
- master | ||
- v2 | ||
- v1 | ||
|
||
jobs: | ||
build: | ||
|
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
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,24 @@ | ||
#!/bin/sh | ||
|
||
cd "$(dirname "$0")/../example" | ||
|
||
echo | ||
echo " TEST $0: Run kpt functions of example/cert-manager" | ||
echo | ||
|
||
set -e | ||
|
||
rm -rf ./kpt/cert-manager/generated-kustomization ./kpt/cert-manager/static/generated-manifest.yaml | ||
|
||
( | ||
set -ex | ||
kpt fn run --network ./kpt/cert-manager | ||
|
||
[ -f ./kpt/cert-manager/static/generated-manifest.yaml ] | ||
! grep -m1 -B10 -A1 ' namespace: ""' ./kpt/cert-manager/static/generated-manifest.yaml || (echo 'FAIL: output contains empty namespace field' >&2; false) | ||
grep -Eq ' name: cert-manager-webhook$' ./kpt/cert-manager/static/generated-manifest.yaml || (echo 'FAIL: does not contain expected resource' >&2; false) | ||
grep -Eq ' namespace: kube-system$' ./kpt/cert-manager/static/generated-manifest.yaml || (echo 'FAIL: did not preserve chart resource namespace' >&2; false) | ||
grep -Eq '^kind: CustomResourceDefinition$' ./kpt/cert-manager/static/generated-manifest.yaml || (echo 'FAIL: does not contain CustomResourceDefinition' >&2; false) | ||
) | ||
|
||
echo SUCCESS |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
This example kustomization renders the [cert-manager](https://github.com/jetstack/cert-manager) crds, namespace and | ||
helm chart without the webhook (to run on [k3s](https://github.com/rancher/k3s)). | ||
This example kustomization renders the [cert-manager](https://github.com/jetstack/cert-manager) with CRDs and `Namespace´. | ||
|
||
It can be rendered and deployed as follows: | ||
``` | ||
kustomize build --enable_alpha_plugins github.com/mgoltzsche/helm-kustomize-plugin/example/cert-manager | kubectl apply -f - | ||
``` | ||
kustomize build --enable_alpha_plugins github.com/mgoltzsche/khelm/example/cert-manager | kubectl apply -f - | ||
``` |
Oops, something went wrong.