File tree Expand file tree Collapse file tree 4 files changed +85
-14
lines changed
testdata/images/bundles/test-operator Expand file tree Collapse file tree 4 files changed +85
-14
lines changed Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : ConfigMap
3+ metadata :
4+ name : httpd-script
5+ data :
6+ httpd.sh : |
7+ #!/bin/sh
8+ echo true > /var/www/started
9+ echo true > /var/www/ready
10+ echo true > /var/www/live
11+ exec httpd -f -h /var/www -p 80
Original file line number Diff line number Diff line change @@ -56,15 +56,39 @@ spec:
5656 app : olme2etest
5757 spec :
5858 terminationGracePeriodSeconds : 0
59+ volumes :
60+ - name : scripts
61+ configMap :
62+ name : httpd-script
63+ defaultMode : 0755
5964 containers :
60- - name : busybox
65+ - name : busybox-httpd-container
6166 image : busybox:1.36
62- command :
63- - ' sleep'
64- - ' 1000'
65- securityContext :
66- runAsUser : 1000
67- runAsNonRoot : true
67+ command : ["/scripts/httpd.sh"]
68+ ports :
69+ - containerPort : 80
70+ volumeMounts :
71+ - name : scripts
72+ mountPath : /scripts
73+ readOnly : true
74+ startupProbe :
75+ httpGet :
76+ path : /started
77+ port : 80
78+ failureThreshold : 30
79+ periodSeconds : 10
80+ livenessProbe :
81+ httpGet :
82+ path : /live
83+ port : 80
84+ failureThreshold : 1
85+ periodSeconds : 2
86+ readinessProbe :
87+ httpGet :
88+ path : /ready
89+ port : 80
90+ initialDelaySeconds : 1
91+ periodSeconds : 1
6892 serviceAccountName : simple-bundle-manager
6993 clusterPermissions :
7094 - rules :
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : ConfigMap
3+ metadata :
4+ name : httpd-script
5+ data :
6+ httpd.sh : |
7+ #!/bin/sh
8+ echo "Version 1.2.0"
9+ echo true > /var/www/started
10+ echo true > /var/www/ready
11+ echo true > /var/www/live
12+ exec httpd -f -h /var/www -p 80
Original file line number Diff line number Diff line change @@ -56,15 +56,39 @@ spec:
5656 app : olme2etest
5757 spec :
5858 terminationGracePeriodSeconds : 0
59+ volumes :
60+ - name : scripts
61+ configMap :
62+ name : httpd-script
63+ defaultMode : 0755
5964 containers :
60- - name : busybox
65+ - name : busybox-httpd-container
6166 image : busybox:1.37
62- command :
63- - ' sleep'
64- - ' 1000'
65- securityContext :
66- runAsUser : 1000
67- runAsNonRoot : true
67+ command : ["/scripts/httpd.sh"]
68+ ports :
69+ - containerPort : 80
70+ volumeMounts :
71+ - name : scripts
72+ mountPath : /scripts
73+ readOnly : true
74+ startupProbe :
75+ httpGet :
76+ path : /started
77+ port : 80
78+ failureThreshold : 30
79+ periodSeconds : 10
80+ livenessProbe :
81+ httpGet :
82+ path : /live
83+ port : 80
84+ failureThreshold : 1
85+ periodSeconds : 2
86+ readinessProbe :
87+ httpGet :
88+ path : /ready
89+ port : 80
90+ initialDelaySeconds : 1
91+ periodSeconds : 1
6892 serviceAccountName : simple-bundle-manager
6993 clusterPermissions :
7094 - rules :
You can’t perform that action at this time.
0 commit comments