This repository has been archived by the owner on Mar 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #772 from laverya/no-trailing-newline-integration-…
…test No trailing newline integration test
- Loading branch information
Showing
25 changed files
with
647 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
integration/init/plain-k8s-no-trailing-newline/expected/.ship/state.json
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 @@ | ||
{ | ||
"v1": { | ||
"config": {}, | ||
"releaseName": "ship", | ||
"upstream": "https://github.com/replicatedhq/test-charts/tree/960955cdcf61891c3b5ff27c25dcde0184926add/plain-k8s-no-trailing-newline", | ||
"metadata": null, | ||
"contentSHA": "e03f03a48d619be6a9ff2c56c19808b0cfa2cb84615346b1c867eeca20ff92d0" | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
integration/init/plain-k8s-no-trailing-newline/expected/base/frontend-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,28 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: frontend | ||
spec: | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
app: guestbook | ||
tier: frontend | ||
template: | ||
metadata: | ||
labels: | ||
app: guestbook | ||
tier: frontend | ||
spec: | ||
containers: | ||
- env: | ||
- name: GET_HOSTS_FROM | ||
value: dns | ||
image: gcr.io/google-samples/gb-frontend:v4 | ||
name: php-redis | ||
ports: | ||
- containerPort: 80 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi |
14 changes: 14 additions & 0 deletions
14
integration/init/plain-k8s-no-trailing-newline/expected/base/frontend-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,14 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: guestbook | ||
tier: frontend | ||
name: frontend | ||
spec: | ||
ports: | ||
- port: 80 | ||
selector: | ||
app: guestbook | ||
tier: frontend | ||
type: NodePort |
9 changes: 9 additions & 0 deletions
9
integration/init/plain-k8s-no-trailing-newline/expected/base/kustomization.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,9 @@ | ||
kind: "" | ||
apiversion: "" | ||
resources: | ||
- frontend-deployment.yaml | ||
- frontend-service.yaml | ||
- redis-master-deployment.yaml | ||
- redis-master-service.yaml | ||
- redis-slave-deployment.yaml | ||
- redis-slave-service.yaml |
27 changes: 27 additions & 0 deletions
27
integration/init/plain-k8s-no-trailing-newline/expected/base/redis-master-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,27 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: redis-master | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: redis | ||
role: master | ||
tier: backend | ||
template: | ||
metadata: | ||
labels: | ||
app: redis | ||
role: master | ||
tier: backend | ||
spec: | ||
containers: | ||
- image: k8s.gcr.io/redis:e2e | ||
name: master | ||
ports: | ||
- containerPort: 6379 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi |
16 changes: 16 additions & 0 deletions
16
integration/init/plain-k8s-no-trailing-newline/expected/base/redis-master-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,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: redis | ||
role: master | ||
tier: backend | ||
name: redis-master | ||
spec: | ||
ports: | ||
- port: 6379 | ||
targetPort: 6379 | ||
selector: | ||
app: redis | ||
role: master | ||
tier: backend |
30 changes: 30 additions & 0 deletions
30
integration/init/plain-k8s-no-trailing-newline/expected/base/redis-slave-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,30 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: redis-slave | ||
spec: | ||
replicas: 2 | ||
selector: | ||
matchLabels: | ||
app: redis | ||
role: slave | ||
tier: backend | ||
template: | ||
metadata: | ||
labels: | ||
app: redis | ||
role: slave | ||
tier: backend | ||
spec: | ||
containers: | ||
- env: | ||
- name: GET_HOSTS_FROM | ||
value: dns | ||
image: gcr.io/google_samples/gb-redisslave:v1 | ||
name: slave | ||
ports: | ||
- containerPort: 6379 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi |
16 changes: 16 additions & 0 deletions
16
integration/init/plain-k8s-no-trailing-newline/expected/base/redis-slave-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,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: redis | ||
role: slave | ||
tier: backend | ||
name: redis-slave | ||
spec: | ||
ports: | ||
- port: 6379 | ||
selector: | ||
app: redis | ||
role: slave | ||
tier: backend | ||
zquotenum: "123" |
4 changes: 4 additions & 0 deletions
4
integration/init/plain-k8s-no-trailing-newline/expected/overlays/ship/kustomization.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,4 @@ | ||
kind: "" | ||
apiversion: "" | ||
bases: | ||
- ../../base |
136 changes: 136 additions & 0 deletions
136
integration/init/plain-k8s-no-trailing-newline/expected/rendered.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,136 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: guestbook | ||
tier: frontend | ||
name: frontend | ||
spec: | ||
ports: | ||
- port: 80 | ||
selector: | ||
app: guestbook | ||
tier: frontend | ||
type: NodePort | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: redis | ||
role: master | ||
tier: backend | ||
name: redis-master | ||
spec: | ||
ports: | ||
- port: 6379 | ||
targetPort: 6379 | ||
selector: | ||
app: redis | ||
role: master | ||
tier: backend | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: redis | ||
role: slave | ||
tier: backend | ||
name: redis-slave | ||
spec: | ||
ports: | ||
- port: 6379 | ||
selector: | ||
app: redis | ||
role: slave | ||
tier: backend | ||
zquotenum: "123" | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: frontend | ||
spec: | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
app: guestbook | ||
tier: frontend | ||
template: | ||
metadata: | ||
labels: | ||
app: guestbook | ||
tier: frontend | ||
spec: | ||
containers: | ||
- env: | ||
- name: GET_HOSTS_FROM | ||
value: dns | ||
image: gcr.io/google-samples/gb-frontend:v4 | ||
name: php-redis | ||
ports: | ||
- containerPort: 80 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: redis-master | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: redis | ||
role: master | ||
tier: backend | ||
template: | ||
metadata: | ||
labels: | ||
app: redis | ||
role: master | ||
tier: backend | ||
spec: | ||
containers: | ||
- image: k8s.gcr.io/redis:e2e | ||
name: master | ||
ports: | ||
- containerPort: 6379 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: redis-slave | ||
spec: | ||
replicas: 2 | ||
selector: | ||
matchLabels: | ||
app: redis | ||
role: slave | ||
tier: backend | ||
template: | ||
metadata: | ||
labels: | ||
app: redis | ||
role: slave | ||
tier: backend | ||
spec: | ||
containers: | ||
- env: | ||
- name: GET_HOSTS_FROM | ||
value: dns | ||
image: gcr.io/google_samples/gb-redisslave:v1 | ||
name: slave | ||
ports: | ||
- containerPort: 6379 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi |
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 @@ | ||
upstream: "https://github.com/replicatedhq/test-charts/tree/960955cdcf61891c3b5ff27c25dcde0184926add/plain-k8s-no-trailing-newline" | ||
args: ["--prefer-git"] | ||
skip_cleanup: false |
19 changes: 19 additions & 0 deletions
19
integration/update/k8s-no-trailing-newline/expected/.ship/state.json
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,19 @@ | ||
{ | ||
"v1": { | ||
"config": {}, | ||
"releaseName": "ship", | ||
"kustomize": { | ||
"overlays": { | ||
"ship": { | ||
"patches": { | ||
"/redis-master-service.yaml": "apiVersion: v1\nkind: Service\nmetadata:\n labels:\n app: redis\n role: master\n tier: backend\n name: redis-master\nspec:\n selector:\n zquotenum: \"456\"\n", | ||
"/redis-slave-service.yaml": "apiVersion: v1\nkind: Service\nmetadata:\n labels:\n app: redis\n role: slave\n tier: backend\n name: redis-slave\nspec:\n selector:\n zquotenum: \"987\"\n" | ||
} | ||
} | ||
} | ||
}, | ||
"upstream": "https://github.com/replicatedhq/test-charts/tree/960955cdcf61891c3b5ff27c25dcde0184926add/plain-k8s-no-trailing-newline", | ||
"metadata": null, | ||
"contentSHA": "e03f03a48d619be6a9ff2c56c19808b0cfa2cb84615346b1c867eeca20ff92d0" | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
integration/update/k8s-no-trailing-newline/expected/base/frontend-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,28 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: frontend | ||
spec: | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
app: guestbook | ||
tier: frontend | ||
template: | ||
metadata: | ||
labels: | ||
app: guestbook | ||
tier: frontend | ||
spec: | ||
containers: | ||
- env: | ||
- name: GET_HOSTS_FROM | ||
value: dns | ||
image: gcr.io/google-samples/gb-frontend:v4 | ||
name: php-redis | ||
ports: | ||
- containerPort: 80 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi |
14 changes: 14 additions & 0 deletions
14
integration/update/k8s-no-trailing-newline/expected/base/frontend-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,14 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: guestbook | ||
tier: frontend | ||
name: frontend | ||
spec: | ||
ports: | ||
- port: 80 | ||
selector: | ||
app: guestbook | ||
tier: frontend | ||
type: NodePort |
9 changes: 9 additions & 0 deletions
9
integration/update/k8s-no-trailing-newline/expected/base/kustomization.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,9 @@ | ||
kind: "" | ||
apiversion: "" | ||
resources: | ||
- frontend-deployment.yaml | ||
- frontend-service.yaml | ||
- redis-master-deployment.yaml | ||
- redis-master-service.yaml | ||
- redis-slave-deployment.yaml | ||
- redis-slave-service.yaml |
Oops, something went wrong.