-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update integ-test for testing each versions
- Loading branch information
1 parent
4e6c6d2
commit 44ca5e9
Showing
36 changed files
with
3,873 additions
and
2,199 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
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
125 changes: 125 additions & 0 deletions
125
example/app1/test_latest/__snapshots__/test_certmanager_enabled.snap
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,125 @@ | ||
# chartsnap: snapshot_version=v3 | ||
--- | ||
# Source: app1/templates/serviceaccount.yaml | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: chartsnap-app1 | ||
labels: | ||
helm.sh/chart: app1-0.1.0 | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/version: "1.16.0" | ||
app.kubernetes.io/managed-by: Helm | ||
automountServiceAccountToken: true | ||
--- | ||
# Source: app1/templates/service.yaml | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: chartsnap-app1 | ||
labels: | ||
helm.sh/chart: app1-0.1.0 | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/version: "1.16.0" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 80 | ||
targetPort: http | ||
protocol: TCP | ||
name: http | ||
selector: | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/instance: chartsnap | ||
--- | ||
# Source: app1/templates/deployment.yaml | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: chartsnap-app1 | ||
labels: | ||
helm.sh/chart: app1-0.1.0 | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/version: "1.16.0" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/instance: chartsnap | ||
template: | ||
metadata: | ||
labels: | ||
helm.sh/chart: app1-0.1.0 | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/version: "1.16.0" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
serviceAccountName: chartsnap-app1 | ||
securityContext: {} | ||
containers: | ||
- name: app1 | ||
securityContext: {} | ||
image: "nginx:1.16.0" | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- name: http | ||
containerPort: 80 | ||
protocol: TCP | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
resources: {} | ||
--- | ||
# Source: app1/templates/cert.yaml | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
labels: | ||
helm.sh/chart: app1-0.1.0 | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/version: "1.16.0" | ||
app.kubernetes.io/managed-by: Helm | ||
name: app1-cert | ||
namespace: default | ||
spec: | ||
dnsNames: | ||
- chartsnap-app1.default.svc | ||
- chartsnap-app1.default.svc.cluster.local | ||
issuerRef: | ||
kind: Issuer | ||
name: nameOfClusterIssuer | ||
secretName: app1-cert | ||
--- | ||
# Source: app1/templates/tests/test-connection.yaml | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: "chartsnap-app1-test-connection" | ||
labels: | ||
helm.sh/chart: app1-0.1.0 | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/version: "1.16.0" | ||
app.kubernetes.io/managed-by: Helm | ||
annotations: | ||
"helm.sh/hook": test | ||
spec: | ||
containers: | ||
- name: wget | ||
image: busybox | ||
command: ['wget'] | ||
args: ['chartsnap-app1:80'] | ||
restartPolicy: Never |
147 changes: 147 additions & 0 deletions
147
example/app1/test_latest/__snapshots__/test_hpa_enabled.snap
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,147 @@ | ||
# chartsnap: snapshot_version=v3 | ||
--- | ||
# Source: app1/templates/serviceaccount.yaml | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: chartsnap-app1 | ||
labels: | ||
helm.sh/chart: app1-0.1.0 | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/version: "1.16.0" | ||
app.kubernetes.io/managed-by: Helm | ||
automountServiceAccountToken: true | ||
--- | ||
# Source: app1/templates/cert.yaml | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: app1-cert | ||
namespace: default | ||
labels: | ||
helm.sh/chart: app1-0.1.0 | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/version: "1.16.0" | ||
app.kubernetes.io/managed-by: Helm | ||
type: kubernetes.io/tls | ||
data: | ||
ca.crt: IyMjRFlOQU1JQ19GSUVMRCMjIw== | ||
tls.crt: IyMjRFlOQU1JQ19GSUVMRCMjIw== | ||
tls.key: IyMjRFlOQU1JQ19GSUVMRCMjIw== | ||
--- | ||
# Source: app1/templates/service.yaml | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: chartsnap-app1 | ||
labels: | ||
helm.sh/chart: app1-0.1.0 | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/version: "1.16.0" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 80 | ||
targetPort: http | ||
protocol: TCP | ||
name: http | ||
selector: | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/instance: chartsnap | ||
--- | ||
# Source: app1/templates/deployment.yaml | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: chartsnap-app1 | ||
labels: | ||
helm.sh/chart: app1-0.1.0 | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/version: "1.16.0" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/instance: chartsnap | ||
template: | ||
metadata: | ||
labels: | ||
helm.sh/chart: app1-0.1.0 | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/version: "1.16.0" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
serviceAccountName: chartsnap-app1 | ||
securityContext: {} | ||
containers: | ||
- name: app1 | ||
securityContext: {} | ||
image: "nginx:1.16.0" | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- name: http | ||
containerPort: 80 | ||
protocol: TCP | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
resources: {} | ||
--- | ||
# Source: app1/templates/hpa.yaml | ||
apiVersion: autoscaling/v2 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
name: chartsnap-app1 | ||
labels: | ||
helm.sh/chart: app1-0.1.0 | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/version: "1.16.0" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: chartsnap-app1 | ||
minReplicas: 1 | ||
maxReplicas: 10 | ||
metrics: | ||
- type: Resource | ||
resource: | ||
name: cpu | ||
target: | ||
type: Utilization | ||
averageUtilization: 65 | ||
--- | ||
# Source: app1/templates/tests/test-connection.yaml | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: "chartsnap-app1-test-connection" | ||
labels: | ||
helm.sh/chart: app1-0.1.0 | ||
app.kubernetes.io/name: app1 | ||
app.kubernetes.io/instance: chartsnap | ||
app.kubernetes.io/version: "1.16.0" | ||
app.kubernetes.io/managed-by: Helm | ||
annotations: | ||
"helm.sh/hook": test | ||
spec: | ||
containers: | ||
- name: wget | ||
image: busybox | ||
command: ['wget'] | ||
args: ['chartsnap-app1:80'] | ||
restartPolicy: Never |
Oops, something went wrong.