-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Test integration with cert-manager
- Loading branch information
1 parent
9e1b019
commit ab135a4
Showing
10 changed files
with
100 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: contour-cert | ||
namespace: projectcontour | ||
status: | ||
conditions: | ||
- status: "True" | ||
type: Ready | ||
|
||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: envoy-cert | ||
namespace: projectcontour | ||
status: | ||
conditions: | ||
- status: "True" | ||
type: Ready |
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,8 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: | | ||
cd ../../../package && \ | ||
kubectl config set-context --current --namespace=tests && \ | ||
ytt -f ../test/integration/cert-manager/config -f package-resources.yml | kctrl dev -f- --local -y |
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,6 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: | | ||
kapp deploy -a kuard -f https://projectcontour.io/examples/kuard.yaml -y |
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,6 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
commands: | ||
- script: | | ||
curl --fail-with-body localhost:80 |
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,9 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: | | ||
kapp delete -a kuard -y | ||
cd ../../../package && \ | ||
kubectl config set-context --current --namespace=tests && \ | ||
ytt -f ../test/integration/cert-manager/config -f package-resources.yml | kctrl dev -f- --local --delete -y |
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,9 @@ | ||
#@ load("@ytt:overlay", "overlay") | ||
|
||
#@overlay/match by=overlay.subset({"metadata":{"name":"contour"}, "kind":"PackageInstall"}) | ||
--- | ||
spec: | ||
#@overlay/match missing_ok=True | ||
values: | ||
- secretRef: | ||
name: contour-values |
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,13 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: contour-values | ||
namespace: tests | ||
stringData: | ||
values.yaml: | | ||
envoy: | ||
service: | ||
type: NodePort | ||
certificates: | ||
useCertManager: true |
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,15 @@ | ||
--- | ||
apiVersion: packaging.carvel.dev/v1alpha1 | ||
kind: PackageInstall | ||
metadata: | ||
name: cert-manager | ||
namespace: tests | ||
annotations: | ||
kapp.k14s.io/change-group: cert-manager | ||
kapp.k14s.io/change-rule.serviceaccount: delete before deleting serviceaccount | ||
spec: | ||
serviceAccountName: kadras-install-sa | ||
packageRef: | ||
refName: cert-manager.packages.kadras.io | ||
versionSelection: | ||
constraints: 1.15.0+kadras.1 |