Merge pull request #4 from truenas/ix-chart-test

Add deployment test for ix-chart
This commit is contained in:
Waqar Ahmed 2020-11-26 22:19:30 +05:00 committed by GitHub
commit b9f6510cc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 76 additions and 2 deletions

View File

@ -0,0 +1,17 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ .Release.Name }}-deployment-test"
annotations:
"helm.sh/hook": test
spec:
containers:
- name: {{ .Release.Name }}-deployment-test
image: "busybox"
command:
- nc
args:
- "-vz"
- "{{ .Release.Name }}-ix-chart"
- "80"
restartPolicy: Never

View File

@ -0,0 +1,39 @@
# Default values for ix-chart.
image:
repository: nginx
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: latest
# Restart / Update policy
restartPolicy: Always
updateStrategy: RollingUpdate
# Container CMD / entrypoint
containerCommand: []
containerArgs: []
containerEnvironmentVariables: []
# Network related configuration
externalInterfaces: []
portForwardingList: [{"containerPort": 80, "nodePort": 32000}]
hostPortsList: []
hostNetwork: false
dnsPolicy: Default
dnsConfig:
nameservers: []
searches: []
# Storage related configuration
hostPathVolumes: []
volumes: []
# Probes
# Liveness Probe
livenessProbe: null
# Workload type
workloadType: "Deployment"
gpuConfiguration: {}

View File

@ -6,13 +6,26 @@ image:
# Overrides the image tag whose default is the chart appVersion.
tag: "testing"
# Restart / Update policy
restartPolicy: Always
updateStrategy: RollingUpdate
# Container CMD / entrypoint
containerCommand: []
containerArgs: []
containerCommand:
- sleep
containerArgs:
- infinity
containerEnvironmentVariables: []
# Network related configuration
externalInterfaces: []
portForwardingList: []
hostPortsList: []
hostNetwork: false
dnsPolicy: Default
dnsConfig:
nameservers: []
searches: []
# Storage related configuration
hostPathVolumes: []
@ -21,3 +34,8 @@ volumes: []
# Probes
# Liveness Probe
livenessProbe: null
# Workload type
workloadType: "Deployment"
gpuConfiguration: {}