Fix errors detected by the test case
The service account token one must have `serviceAccountName` specified in order to be successfully validated. The PV duplicate example can only refer to an existing volume.
This commit is contained in:
@@ -10,6 +10,7 @@ spec:
|
|||||||
- name: token-vol
|
- name: token-vol
|
||||||
mountPath: "/service-account"
|
mountPath: "/service-account"
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
serviceAccountName: default
|
||||||
volumes:
|
volumes:
|
||||||
- name: token-vol
|
- name: token-vol
|
||||||
projected:
|
projected:
|
||||||
|
|||||||
@@ -8,9 +8,11 @@ spec:
|
|||||||
- name: test
|
- name: test
|
||||||
image: nginx
|
image: nginx
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: site-data
|
# a mount for site-data
|
||||||
|
- name: config
|
||||||
mountPath: /usr/share/nginx/html
|
mountPath: /usr/share/nginx/html
|
||||||
subPath: html
|
subPath: html
|
||||||
|
# another mount for nginx config
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /etc/nginx/nginx.conf
|
mountPath: /etc/nginx/nginx.conf
|
||||||
subPath: nginx.conf
|
subPath: nginx.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user