-
Notifications
You must be signed in to change notification settings - Fork 1
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 #12 from epoch8/simple_app_services
simple_app 0.10.0
- Loading branch information
Showing
17 changed files
with
764 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Run tests | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: v3.11.0 | ||
|
||
- name: Install helm-unittest | ||
run: | | ||
helm plugin install https://github.com/helm-unittest/helm-unittest.git | ||
- name: Run tests | ||
run: | | ||
helm unittest charts/* -o test-report.xml -t junit | ||
- name: Test report | ||
uses: dorny/test-reporter@v1 | ||
if: success() || failure() | ||
with: | ||
name: test report | ||
path: test-report.xml | ||
reporter: java-junit |
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,4 @@ | ||
# helm plugin install https://github.com/helm-unittest/helm-unittest.git | ||
|
||
test: | ||
helm unittest . |
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
116 changes: 116 additions & 0 deletions
116
charts/simple-app/tests/__snapshot__/multiport_test.yaml.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,116 @@ | ||
All manifests should match snapshot: | ||
1: | | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: simple | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: simple-app | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: simple-app-0.10.0 | ||
name: simple | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/instance: simple | ||
app.kubernetes.io/name: simple-app | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: simple | ||
app.kubernetes.io/name: simple-app | ||
spec: | ||
containers: | ||
- image: test:1.1.1 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
name: simple-app | ||
ports: | ||
- containerPort: 9000 | ||
name: http | ||
protocol: TCP | ||
- containerPort: 1 | ||
name: port1 | ||
protocol: TCP | ||
- containerPort: 2 | ||
name: port2 | ||
protocol: TCP | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
resources: {} | ||
securityContext: {} | ||
volumeMounts: null | ||
securityContext: {} | ||
serviceAccountName: simple | ||
volumes: null | ||
2: | | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
annotations: null | ||
labels: | ||
app.kubernetes.io/instance: simple | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: simple-app | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: simple-app-0.10.0 | ||
name: simple | ||
spec: | ||
rules: | ||
- host: test.epoch8.co | ||
http: | ||
paths: | ||
- backend: | ||
service: | ||
name: simple | ||
port: | ||
number: 9000 | ||
path: /* | ||
pathType: ImplementationSpecific | ||
3: | | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: simple | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: simple-app | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: simple-app-0.10.0 | ||
name: simple | ||
spec: | ||
ports: | ||
- name: http | ||
port: 9000 | ||
protocol: TCP | ||
targetPort: http | ||
- name: port1 | ||
port: 1 | ||
protocol: TCP | ||
targetPort: port1 | ||
- name: port2 | ||
port: 22022 | ||
protocol: TCP | ||
targetPort: port2 | ||
selector: | ||
app.kubernetes.io/instance: simple | ||
app.kubernetes.io/name: simple-app | ||
type: ClusterIP | ||
4: | | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: simple | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: simple-app | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: simple-app-0.10.0 | ||
name: simple |
Oops, something went wrong.