Skip to content

Commit

Permalink
Add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmds committed Nov 6, 2024
1 parent c2db3d6 commit eabeedf
Showing 1 changed file with 109 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ .Release.Name }}-imagestream-test"
namespace: "{{ .Release.Namespace }}"
annotations:
"helm.sh/hook": test
"alpha.image.policy.openshift.io/resolve-names": '*'
spec:
containers:
# - name: runtime-latest
# image: dotnet-runtime:latest
# imagePullPolicy: IfNotPresent
# command:
# - '/bin/bash'
# - '-ec'
# - 'dotnet --version | grep -F 9.0. && [[ -z $(dotnet --list-sdks) ]]'
# - name: runtime-90
# image: dotnet-runtime:9.0
# imagePullPolicy: IfNotPresent
# command:
# - '/bin/bash'
# - '-ec'
# - 'dotnet --version | grep -F 9.0. && [[ -z $(dotnet --list-sdks) ]]'
# - name: runtime-90-ubi8
# image: dotnet-runtime:9.0-ubi8
# imagePullPolicy: IfNotPresent
# command:
# - '/bin/bash'
# - '-ec'
# - 'dotnet --version | grep -F 9.0. && [[ -z $(dotnet --list-sdks) ]]'
- name: runtime-80
image: dotnet-runtime:8.0
imagePullPolicy: IfNotPresent
command:
- '/bin/bash'
- '-ec'
- 'dotnet --version | grep -F 8.0. && [[ -z $(dotnet --list-sdks) ]]'
- name: runtime-80-ubi8
image: dotnet-runtime:8.0-ubi8
imagePullPolicy: IfNotPresent
command:
- '/bin/bash'
- '-ec'
- 'dotnet --version | grep -F 8.0. && [[ -z $(dotnet --list-sdks) ]]'
- name: runtime-60
image: dotnet-runtime:6.0
imagePullPolicy: IfNotPresent
command:
- '/bin/bash'
- '-ec'
- 'dotnet --version | grep -F 6.0. && [[ -z $(dotnet --list-sdks) ]]'
- name: runtime-60-ubi8
image: dotnet-runtime:6.0-ubi8
imagePullPolicy: IfNotPresent
command:
- '/bin/bash'
- '-ec'
- 'dotnet --version | grep -F 6.0. && [[ -z $(dotnet --list-sdks) ]]'
# - name: sdk-latest
# image: dotnet:latest
# imagePullPolicy: IfNotPresent
# command:
# - '/bin/bash'
# - '-ec'
# - 'dotnet --list-sdks | grep -F 9.0.'
# - name: sdk-90
# image: dotnet:9.0
# imagePullPolicy: IfNotPresent
# command:
# - '/bin/bash'
# - '-ec'
# - 'dotnet --list-sdks | grep -F 9.0.'
# - name: sdk-90-ubi8
# image: dotnet:9.0-ubi8
# imagePullPolicy: IfNotPresent
# command:
# - '/bin/bash'
# - '-ec'
# - 'dotnet --list-sdks | grep -F 9.0.'
- name: sdk-80
image: dotnet:8.0
imagePullPolicy: IfNotPresent
command:
- '/bin/bash'
- '-ec'
- 'dotnet --list-sdks | grep -F 8.0.'
- name: sdk-80-ubi8
image: dotnet:8.0-ubi8
imagePullPolicy: IfNotPresent
command:
- '/bin/bash'
- '-ec'
- 'dotnet --list-sdks | grep -F 8.0.'
- name: sdk-60
image: dotnet:6.0
imagePullPolicy: IfNotPresent
command:
- '/bin/bash'
- '-ec'
- 'dotnet --list-sdks | grep -F 6.0.'
- name: sdk-60-ubi8
image: dotnet:6.0-ubi8
imagePullPolicy: IfNotPresent
command:
- '/bin/bash'
- '-ec'
- 'dotnet --list-sdks | grep -F 6.0.'
restartPolicy: Never

0 comments on commit eabeedf

Please sign in to comment.