-
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.
feat: Check domain name lengths and allow using cluster wildcard cert
- Loading branch information
1 parent
8463330
commit 1e671c5
Showing
10 changed files
with
185 additions
and
10 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
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
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,3 @@ | ||
--- | ||
environments: | ||
prod: {} |
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,10 @@ | ||
services: | ||
nginx: | ||
labels: | ||
k8ify.expose: foo.apps.cluster.net | ||
image: docker.io/library/nginx | ||
ports: | ||
- '8080:80' | ||
|
||
x-targetCfg: | ||
appsDomain: "*.apps.cluster.net" |
45 changes: 45 additions & 0 deletions
45
tests/golden/cluster-apps-domain/manifests/nginx-oasp-deployment.yaml
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,45 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
k8ify.ref-slug: oasp | ||
k8ify.service: nginx | ||
name: nginx-oasp | ||
spec: | ||
selector: | ||
matchLabels: | ||
k8ify.ref-slug: oasp | ||
k8ify.service: nginx | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
k8ify.ref-slug: oasp | ||
k8ify.service: nginx | ||
spec: | ||
containers: | ||
- image: docker.io/library/nginx | ||
imagePullPolicy: Always | ||
livenessProbe: | ||
failureThreshold: 3 | ||
periodSeconds: 30 | ||
successThreshold: 1 | ||
tcpSocket: | ||
port: 80 | ||
timeoutSeconds: 60 | ||
name: nginx-oasp | ||
ports: | ||
- containerPort: 80 | ||
resources: {} | ||
startupProbe: | ||
failureThreshold: 30 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
tcpSocket: | ||
port: 80 | ||
timeoutSeconds: 60 | ||
restartPolicy: Always | ||
status: {} |
24 changes: 24 additions & 0 deletions
24
tests/golden/cluster-apps-domain/manifests/nginx-oasp-ingress.yaml
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 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
k8ify.ref-slug: oasp | ||
k8ify.service: nginx | ||
name: nginx-oasp | ||
spec: | ||
rules: | ||
- host: foo.apps.cluster.net | ||
http: | ||
paths: | ||
- backend: | ||
service: | ||
name: nginx-oasp | ||
port: | ||
number: 8080 | ||
path: / | ||
pathType: Prefix | ||
tls: | ||
- {} | ||
status: | ||
loadBalancer: {} |
18 changes: 18 additions & 0 deletions
18
tests/golden/cluster-apps-domain/manifests/nginx-oasp-service.yaml
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,18 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
k8ify.ref-slug: oasp | ||
k8ify.service: nginx | ||
name: nginx-oasp | ||
spec: | ||
ports: | ||
- name: "8080" | ||
port: 8080 | ||
targetPort: 80 | ||
selector: | ||
k8ify.ref-slug: oasp | ||
k8ify.service: nginx | ||
status: | ||
loadBalancer: {} |