-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: autogenerated routes tls-acme feature
- Loading branch information
1 parent
290de93
commit 0c65de1
Showing
11 changed files
with
239 additions
and
19 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
45 changes: 45 additions & 0 deletions
45
test-resources/template-autogenerated/test18-results/node.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: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
fastly.amazee.io/watch: "false" | ||
ingress.kubernetes.io/ssl-redirect: "true" | ||
kubernetes.io/tls-acme: "false" | ||
lagoon.sh/branch: main | ||
lagoon.sh/version: v2.7.x | ||
monitor.stakater.com/enabled: "false" | ||
nginx.ingress.kubernetes.io/ssl-redirect: "true" | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/instance: node | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: autogenerated-ingress | ||
dioscuri.amazee.io/migrate: "false" | ||
helm.sh/chart: autogenerated-ingress-0.1.0 | ||
lagoon.sh/autogenerated: "true" | ||
lagoon.sh/buildType: branch | ||
lagoon.sh/environment: main | ||
lagoon.sh/environmentType: production | ||
lagoon.sh/project: example-project | ||
lagoon.sh/service: node | ||
lagoon.sh/service-type: node | ||
name: node | ||
spec: | ||
rules: | ||
- host: node-example-project-main.example.com | ||
http: | ||
paths: | ||
- backend: | ||
service: | ||
name: node | ||
port: | ||
name: http | ||
path: / | ||
pathType: Prefix | ||
tls: | ||
- hosts: | ||
- node-example-project-main.example.com | ||
secretName: node-tls | ||
status: | ||
loadBalancer: {} |
20 changes: 20 additions & 0 deletions
20
test-resources/template-autogenerated/test18/docker-compose.yml
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,20 @@ | ||
version: '2' | ||
services: | ||
node: | ||
networks: | ||
- amazeeio-network | ||
- default | ||
build: | ||
context: . | ||
dockerfile: node.dockerfile | ||
labels: | ||
lagoon.type: node | ||
volumes: | ||
- .:/app:delegated | ||
environment: | ||
- LAGOON_LOCALDEV_HTTP_PORT=3000 | ||
- LAGOON_ROUTE=http://node.docker.amazee.io | ||
|
||
networks: | ||
amazeeio-network: | ||
external: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
docker-compose-yaml: ../test-resources/template-autogenerated/test18/docker-compose.yml | ||
|
||
routes: | ||
autogenerate: | ||
enabled: true | ||
insecure: Redirect | ||
tls-acme: false | ||
|
||
environment_variables: | ||
git_sha: "true" | ||
|
||
environments: | ||
main: | ||
routes: | ||
- node: | ||
- example.com |
45 changes: 45 additions & 0 deletions
45
test-resources/template-autogenerated/test19-results/node.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: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
fastly.amazee.io/watch: "false" | ||
ingress.kubernetes.io/ssl-redirect: "true" | ||
kubernetes.io/tls-acme: "false" | ||
lagoon.sh/branch: main | ||
lagoon.sh/version: v2.7.x | ||
monitor.stakater.com/enabled: "false" | ||
nginx.ingress.kubernetes.io/ssl-redirect: "true" | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/instance: node | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: autogenerated-ingress | ||
dioscuri.amazee.io/migrate: "false" | ||
helm.sh/chart: autogenerated-ingress-0.1.0 | ||
lagoon.sh/autogenerated: "true" | ||
lagoon.sh/buildType: branch | ||
lagoon.sh/environment: main | ||
lagoon.sh/environmentType: production | ||
lagoon.sh/project: example-project | ||
lagoon.sh/service: node | ||
lagoon.sh/service-type: node | ||
name: node | ||
spec: | ||
rules: | ||
- host: node-example-project-main.example.com | ||
http: | ||
paths: | ||
- backend: | ||
service: | ||
name: node | ||
port: | ||
name: http | ||
path: / | ||
pathType: Prefix | ||
tls: | ||
- hosts: | ||
- node-example-project-main.example.com | ||
secretName: node-tls | ||
status: | ||
loadBalancer: {} |
21 changes: 21 additions & 0 deletions
21
test-resources/template-autogenerated/test19/docker-compose.yml
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 @@ | ||
version: '2' | ||
services: | ||
node: | ||
networks: | ||
- amazeeio-network | ||
- default | ||
build: | ||
context: . | ||
dockerfile: node.dockerfile | ||
labels: | ||
lagoon.type: node | ||
lagoon.autogeneratedroute.tls-acme: false | ||
volumes: | ||
- .:/app:delegated | ||
environment: | ||
- LAGOON_LOCALDEV_HTTP_PORT=3000 | ||
- LAGOON_ROUTE=http://node.docker.amazee.io | ||
|
||
networks: | ||
amazeeio-network: | ||
external: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
docker-compose-yaml: ../test-resources/template-autogenerated/test19/docker-compose.yml | ||
|
||
routes: | ||
autogenerate: | ||
insecure: Redirect | ||
|
||
environment_variables: | ||
git_sha: "true" | ||
|
||
environments: | ||
main: | ||
routes: | ||
- node: | ||
- example.com |