v1.PodSecurityPolicySubjectReview

Description

PodSecurityPolicySubjectReview checks whether a particular user/SA tuple can create the PodTemplateSpec.

Object Schema

Expand or mouse-over a field for more information about it.

  1. apiVersion:
  2. kind:
  3. spec:
  4. groups:
  5. - [string]:
  6. template:
  7. metadata:
  8. annotations:
  9. [string]:
  10. clusterName:
  11. creationTimestamp:
  12. deletionGracePeriodSeconds:
  13. deletionTimestamp:
  14. finalizers:
  15. - [string]:
  16. generateName:
  17. generation:
  18. initializers:
  19. pending:
  20. - name:
  21. result:
  22. apiVersion:
  23. code:
  24. details:
  25. causes:
  26. - field:
  27. message:
  28. reason:
  29. group:
  30. kind:
  31. name:
  32. retryAfterSeconds:
  33. uid:
  34. kind:
  35. message:
  36. metadata:
  37. resourceVersion:
  38. selfLink:
  39. reason:
  40. status:
  41. labels:
  42. [string]:
  43. name:
  44. namespace:
  45. ownerReferences:
  46. - apiVersion:
  47. blockOwnerDeletion:
  48. controller:
  49. kind:
  50. name:
  51. uid:
  52. resourceVersion:
  53. selfLink:
  54. uid:
  55. spec:
  56. activeDeadlineSeconds:
  57. affinity:
  58. nodeAffinity:
  59. preferredDuringSchedulingIgnoredDuringExecution:
  60. - preference:
  61. - matchExpressions:
  62. - - key:
  63. operator:
  64. values:
  65. - [string]:
  66. weight:
  67. requiredDuringSchedulingIgnoredDuringExecution:
  68. nodeSelectorTerms:
  69. - matchExpressions:
  70. - - key:
  71. operator:
  72. values:
  73. - [string]:
  74. podAffinity:
  75. preferredDuringSchedulingIgnoredDuringExecution:
  76. - podAffinityTerm:
  77. - labelSelector:
  78. - matchExpressions:
  79. - - key:
  80. operator:
  81. values:
  82. - [string]:
  83. matchLabels:
  84. [string]:
  85. namespaces:
  86. - [string]:
  87. topologyKey:
  88. weight:
  89. requiredDuringSchedulingIgnoredDuringExecution:
  90. - labelSelector:
  91. - matchExpressions:
  92. - - key:
  93. operator:
  94. values:
  95. - [string]:
  96. matchLabels:
  97. [string]:
  98. namespaces:
  99. - [string]:
  100. topologyKey:
  101. podAntiAffinity:
  102. preferredDuringSchedulingIgnoredDuringExecution:
  103. - podAffinityTerm:
  104. - labelSelector:
  105. - matchExpressions:
  106. - - key:
  107. operator:
  108. values:
  109. - [string]:
  110. matchLabels:
  111. [string]:
  112. namespaces:
  113. - [string]:
  114. topologyKey:
  115. weight:
  116. requiredDuringSchedulingIgnoredDuringExecution:
  117. - labelSelector:
  118. - matchExpressions:
  119. - - key:
  120. operator:
  121. values:
  122. - [string]:
  123. matchLabels:
  124. [string]:
  125. namespaces:
  126. - [string]:
  127. topologyKey:
  128. automountServiceAccountToken:
  129. containers:
  130. - args:
  131. - - [string]:
  132. command:
  133. - [string]:
  134. env:
  135. - name:
  136. value:
  137. valueFrom:
  138. configMapKeyRef:
  139. key:
  140. name:
  141. optional:
  142. fieldRef:
  143. apiVersion:
  144. fieldPath:
  145. resourceFieldRef:
  146. containerName:
  147. divisor:
  148. resource:
  149. secretKeyRef:
  150. key:
  151. name:
  152. optional:
  153. envFrom:
  154. - configMapRef:
  155. - name:
  156. optional:
  157. prefix:
  158. secretRef:
  159. name:
  160. optional:
  161. image:
  162. imagePullPolicy:
  163. lifecycle:
  164. postStart:
  165. exec:
  166. command:
  167. - [string]:
  168. httpGet:
  169. host:
  170. httpHeaders:
  171. - name:
  172. value:
  173. path:
  174. port:
  175. scheme:
  176. tcpSocket:
  177. host:
  178. port:
  179. preStop:
  180. exec:
  181. command:
  182. - [string]:
  183. httpGet:
  184. host:
  185. httpHeaders:
  186. - name:
  187. value:
  188. path:
  189. port:
  190. scheme:
  191. tcpSocket:
  192. host:
  193. port:
  194. livenessProbe:
  195. exec:
  196. command:
  197. - [string]:
  198. failureThreshold:
  199. httpGet:
  200. host:
  201. httpHeaders:
  202. - name:
  203. value:
  204. path:
  205. port:
  206. scheme:
  207. initialDelaySeconds:
  208. periodSeconds:
  209. successThreshold:
  210. tcpSocket:
  211. host:
  212. port:
  213. timeoutSeconds:
  214. name:
  215. ports:
  216. - containerPort:
  217. hostIP:
  218. hostPort:
  219. name:
  220. protocol:
  221. readinessProbe:
  222. exec:
  223. command:
  224. - [string]:
  225. failureThreshold:
  226. httpGet:
  227. host:
  228. httpHeaders:
  229. - name:
  230. value:
  231. path:
  232. port:
  233. scheme:
  234. initialDelaySeconds:
  235. periodSeconds:
  236. successThreshold:
  237. tcpSocket:
  238. host:
  239. port:
  240. timeoutSeconds:
  241. resources:
  242. limits:
  243. [string]:
  244. requests:
  245. [string]:
  246. securityContext:
  247. capabilities:
  248. add:
  249. - [string]:
  250. drop:
  251. - [string]:
  252. privileged:
  253. readOnlyRootFilesystem:
  254. runAsNonRoot:
  255. runAsUser:
  256. seLinuxOptions:
  257. level:
  258. role:
  259. type:
  260. user:
  261. stdin:
  262. stdinOnce:
  263. terminationMessagePath:
  264. terminationMessagePolicy:
  265. tty:
  266. volumeMounts:
  267. - mountPath:
  268. name:
  269. readOnly:
  270. subPath:
  271. workingDir:
  272. dnsPolicy:
  273. hostAliases:
  274. - hostnames:
  275. - - [string]:
  276. ip:
  277. hostIPC:
  278. hostNetwork:
  279. hostPID:
  280. hostname:
  281. imagePullSecrets:
  282. - name:
  283. initContainers:
  284. - args:
  285. - - [string]:
  286. command:
  287. - [string]:
  288. env:
  289. - name:
  290. value:
  291. valueFrom:
  292. configMapKeyRef:
  293. key:
  294. name:
  295. optional:
  296. fieldRef:
  297. apiVersion:
  298. fieldPath:
  299. resourceFieldRef:
  300. containerName:
  301. divisor:
  302. resource:
  303. secretKeyRef:
  304. key:
  305. name:
  306. optional:
  307. envFrom:
  308. - configMapRef:
  309. - name:
  310. optional:
  311. prefix:
  312. secretRef:
  313. name:
  314. optional:
  315. image:
  316. imagePullPolicy:
  317. lifecycle:
  318. postStart:
  319. exec:
  320. command:
  321. - [string]:
  322. httpGet:
  323. host:
  324. httpHeaders:
  325. - name:
  326. value:
  327. path:
  328. port:
  329. scheme:
  330. tcpSocket:
  331. host:
  332. port:
  333. preStop:
  334. exec:
  335. command:
  336. - [string]:
  337. httpGet:
  338. host:
  339. httpHeaders:
  340. - name:
  341. value:
  342. path:
  343. port:
  344. scheme:
  345. tcpSocket:
  346. host:
  347. port:
  348. livenessProbe:
  349. exec:
  350. command:
  351. - [string]:
  352. failureThreshold:
  353. httpGet:
  354. host:
  355. httpHeaders:
  356. - name:
  357. value:
  358. path:
  359. port:
  360. scheme:
  361. initialDelaySeconds:
  362. periodSeconds:
  363. successThreshold:
  364. tcpSocket:
  365. host:
  366. port:
  367. timeoutSeconds:
  368. name:
  369. ports:
  370. - containerPort:
  371. hostIP:
  372. hostPort:
  373. name:
  374. protocol:
  375. readinessProbe:
  376. exec:
  377. command:
  378. - [string]:
  379. failureThreshold:
  380. httpGet:
  381. host:
  382. httpHeaders:
  383. - name:
  384. value:
  385. path:
  386. port:
  387. scheme:
  388. initialDelaySeconds:
  389. periodSeconds:
  390. successThreshold:
  391. tcpSocket:
  392. host:
  393. port:
  394. timeoutSeconds:
  395. resources:
  396. limits:
  397. [string]:
  398. requests:
  399. [string]:
  400. securityContext:
  401. capabilities:
  402. add:
  403. - [string]:
  404. drop:
  405. - [string]:
  406. privileged:
  407. readOnlyRootFilesystem:
  408. runAsNonRoot:
  409. runAsUser:
  410. seLinuxOptions:
  411. level:
  412. role:
  413. type:
  414. user:
  415. stdin:
  416. stdinOnce:
  417. terminationMessagePath:
  418. terminationMessagePolicy:
  419. tty:
  420. volumeMounts:
  421. - mountPath:
  422. name:
  423. readOnly:
  424. subPath:
  425. workingDir:
  426. nodeName:
  427. nodeSelector:
  428. [string]:
  429. restartPolicy:
  430. schedulerName:
  431. securityContext:
  432. fsGroup:
  433. runAsNonRoot:
  434. runAsUser:
  435. seLinuxOptions:
  436. level:
  437. role:
  438. type:
  439. user:
  440. supplementalGroups:
  441. - [integer]:
  442. serviceAccount:
  443. serviceAccountName:
  444. subdomain:
  445. terminationGracePeriodSeconds:
  446. tolerations:
  447. - effect:
  448. key:
  449. operator:
  450. tolerationSeconds:
  451. value:
  452. volumes:
  453. - awsElasticBlockStore:
  454. - fsType:
  455. partition:
  456. readOnly:
  457. volumeID:
  458. azureDisk:
  459. cachingMode:
  460. diskName:
  461. diskURI:
  462. fsType:
  463. kind:
  464. readOnly:
  465. azureFile:
  466. readOnly:
  467. secretName:
  468. shareName:
  469. cephfs:
  470. monitors:
  471. - [string]:
  472. path:
  473. readOnly:
  474. secretFile:
  475. secretRef:
  476. name:
  477. user:
  478. cinder:
  479. fsType:
  480. readOnly:
  481. volumeID:
  482. configMap:
  483. defaultMode:
  484. items:
  485. - key:
  486. mode:
  487. path:
  488. name:
  489. optional:
  490. downwardAPI:
  491. defaultMode:
  492. items:
  493. - fieldRef:
  494. - apiVersion:
  495. fieldPath:
  496. mode:
  497. path:
  498. resourceFieldRef:
  499. containerName:
  500. divisor:
  501. resource:
  502. emptyDir:
  503. medium:
  504. sizeLimit:
  505. fc:
  506. fsType:
  507. lun:
  508. readOnly:
  509. targetWWNs:
  510. - [string]:
  511. flexVolume:
  512. driver:
  513. fsType:
  514. options:
  515. [string]:
  516. readOnly:
  517. secretRef:
  518. name:
  519. flocker:
  520. datasetName:
  521. datasetUUID:
  522. gcePersistentDisk:
  523. fsType:
  524. partition:
  525. pdName:
  526. readOnly:
  527. glusterfs:
  528. endpoints:
  529. path:
  530. readOnly:
  531. hostPath:
  532. path:
  533. iscsi:
  534. chapAuthDiscovery:
  535. chapAuthSession:
  536. fsType:
  537. iqn:
  538. iscsiInterface:
  539. lun:
  540. portals:
  541. - [string]:
  542. readOnly:
  543. secretRef:
  544. name:
  545. targetPortal:
  546. name:
  547. nfs:
  548. path:
  549. readOnly:
  550. server:
  551. persistentVolumeClaim:
  552. claimName:
  553. readOnly:
  554. photonPersistentDisk:
  555. fsType:
  556. pdID:
  557. portworxVolume:
  558. fsType:
  559. readOnly:
  560. volumeID:
  561. projected:
  562. defaultMode:
  563. sources:
  564. - configMap:
  565. - items:
  566. - - key:
  567. mode:
  568. path:
  569. name:
  570. optional:
  571. downwardAPI:
  572. items:
  573. - fieldRef:
  574. - apiVersion:
  575. fieldPath:
  576. mode:
  577. path:
  578. resourceFieldRef:
  579. containerName:
  580. divisor:
  581. resource:
  582. secret:
  583. items:
  584. - key:
  585. mode:
  586. path:
  587. name:
  588. optional:
  589. quobyte:
  590. group:
  591. readOnly:
  592. registry:
  593. user:
  594. volume:
  595. rbd:
  596. fsType:
  597. image:
  598. keyring:
  599. monitors:
  600. - [string]:
  601. pool:
  602. readOnly:
  603. secretRef:
  604. name:
  605. user:
  606. scaleIO:
  607. fsType:
  608. gateway:
  609. protectionDomain:
  610. readOnly:
  611. secretRef:
  612. name:
  613. sslEnabled:
  614. storageMode:
  615. storagePool:
  616. system:
  617. volumeName:
  618. secret:
  619. defaultMode:
  620. items:
  621. - key:
  622. mode:
  623. path:
  624. optional:
  625. secretName:
  626. storageos:
  627. fsType:
  628. readOnly:
  629. secretRef:
  630. name:
  631. volumeName:
  632. volumeNamespace:
  633. vsphereVolume:
  634. fsType:
  635. storagePolicyID:
  636. storagePolicyName:
  637. volumePath:
  638. user:
  639. status:
  640. allowedBy:
  641. apiVersion:
  642. fieldPath:
  643. kind:
  644. name:
  645. namespace:
  646. resourceVersion:
  647. uid:
  648. reason:
  649. template:
  650. metadata:
  651. annotations:
  652. [string]:
  653. clusterName:
  654. creationTimestamp:
  655. deletionGracePeriodSeconds:
  656. deletionTimestamp:
  657. finalizers:
  658. - [string]:
  659. generateName:
  660. generation:
  661. initializers:
  662. pending:
  663. - name:
  664. result:
  665. apiVersion:
  666. code:
  667. details:
  668. causes:
  669. - field:
  670. message:
  671. reason:
  672. group:
  673. kind:
  674. name:
  675. retryAfterSeconds:
  676. uid:
  677. kind:
  678. message:
  679. metadata:
  680. resourceVersion:
  681. selfLink:
  682. reason:
  683. status:
  684. labels:
  685. [string]:
  686. name:
  687. namespace:
  688. ownerReferences:
  689. - apiVersion:
  690. blockOwnerDeletion:
  691. controller:
  692. kind:
  693. name:
  694. uid:
  695. resourceVersion:
  696. selfLink:
  697. uid:
  698. spec:
  699. activeDeadlineSeconds:
  700. affinity:
  701. nodeAffinity:
  702. preferredDuringSchedulingIgnoredDuringExecution:
  703. - preference:
  704. - matchExpressions:
  705. - - key:
  706. operator:
  707. values:
  708. - [string]:
  709. weight:
  710. requiredDuringSchedulingIgnoredDuringExecution:
  711. nodeSelectorTerms:
  712. - matchExpressions:
  713. - - key:
  714. operator:
  715. values:
  716. - [string]:
  717. podAffinity:
  718. preferredDuringSchedulingIgnoredDuringExecution:
  719. - podAffinityTerm:
  720. - labelSelector:
  721. - matchExpressions:
  722. - - key:
  723. operator:
  724. values:
  725. - [string]:
  726. matchLabels:
  727. [string]:
  728. namespaces:
  729. - [string]:
  730. topologyKey:
  731. weight:
  732. requiredDuringSchedulingIgnoredDuringExecution:
  733. - labelSelector:
  734. - matchExpressions:
  735. - - key:
  736. operator:
  737. values:
  738. - [string]:
  739. matchLabels:
  740. [string]:
  741. namespaces:
  742. - [string]:
  743. topologyKey:
  744. podAntiAffinity:
  745. preferredDuringSchedulingIgnoredDuringExecution:
  746. - podAffinityTerm:
  747. - labelSelector:
  748. - matchExpressions:
  749. - - key:
  750. operator:
  751. values:
  752. - [string]:
  753. matchLabels:
  754. [string]:
  755. namespaces:
  756. - [string]:
  757. topologyKey:
  758. weight:
  759. requiredDuringSchedulingIgnoredDuringExecution:
  760. - labelSelector:
  761. - matchExpressions:
  762. - - key:
  763. operator:
  764. values:
  765. - [string]:
  766. matchLabels:
  767. [string]:
  768. namespaces:
  769. - [string]:
  770. topologyKey:
  771. automountServiceAccountToken:
  772. containers:
  773. - args:
  774. - - [string]:
  775. command:
  776. - [string]:
  777. env:
  778. - name:
  779. value:
  780. valueFrom:
  781. configMapKeyRef:
  782. key:
  783. name:
  784. optional:
  785. fieldRef:
  786. apiVersion:
  787. fieldPath:
  788. resourceFieldRef:
  789. containerName:
  790. divisor:
  791. resource:
  792. secretKeyRef:
  793. key:
  794. name:
  795. optional:
  796. envFrom:
  797. - configMapRef:
  798. - name:
  799. optional:
  800. prefix:
  801. secretRef:
  802. name:
  803. optional:
  804. image:
  805. imagePullPolicy:
  806. lifecycle:
  807. postStart:
  808. exec:
  809. command:
  810. - [string]:
  811. httpGet:
  812. host:
  813. httpHeaders:
  814. - name:
  815. value:
  816. path:
  817. port:
  818. scheme:
  819. tcpSocket:
  820. host:
  821. port:
  822. preStop:
  823. exec:
  824. command:
  825. - [string]:
  826. httpGet:
  827. host:
  828. httpHeaders:
  829. - name:
  830. value:
  831. path:
  832. port:
  833. scheme:
  834. tcpSocket:
  835. host:
  836. port:
  837. livenessProbe:
  838. exec:
  839. command:
  840. - [string]:
  841. failureThreshold:
  842. httpGet:
  843. host:
  844. httpHeaders:
  845. - name:
  846. value:
  847. path:
  848. port:
  849. scheme:
  850. initialDelaySeconds:
  851. periodSeconds:
  852. successThreshold:
  853. tcpSocket:
  854. host:
  855. port:
  856. timeoutSeconds:
  857. name:
  858. ports:
  859. - containerPort:
  860. hostIP:
  861. hostPort:
  862. name:
  863. protocol:
  864. readinessProbe:
  865. exec:
  866. command:
  867. - [string]:
  868. failureThreshold:
  869. httpGet:
  870. host:
  871. httpHeaders:
  872. - name:
  873. value:
  874. path:
  875. port:
  876. scheme:
  877. initialDelaySeconds:
  878. periodSeconds:
  879. successThreshold:
  880. tcpSocket:
  881. host:
  882. port:
  883. timeoutSeconds:
  884. resources:
  885. limits:
  886. [string]:
  887. requests:
  888. [string]:
  889. securityContext:
  890. capabilities:
  891. add:
  892. - [string]:
  893. drop:
  894. - [string]:
  895. privileged:
  896. readOnlyRootFilesystem:
  897. runAsNonRoot:
  898. runAsUser:
  899. seLinuxOptions:
  900. level:
  901. role:
  902. type:
  903. user:
  904. stdin:
  905. stdinOnce:
  906. terminationMessagePath:
  907. terminationMessagePolicy:
  908. tty:
  909. volumeMounts:
  910. - mountPath:
  911. name:
  912. readOnly:
  913. subPath:
  914. workingDir:
  915. dnsPolicy:
  916. hostAliases:
  917. - hostnames:
  918. - - [string]:
  919. ip:
  920. hostIPC:
  921. hostNetwork:
  922. hostPID:
  923. hostname:
  924. imagePullSecrets:
  925. - name:
  926. initContainers:
  927. - args:
  928. - - [string]:
  929. command:
  930. - [string]:
  931. env:
  932. - name:
  933. value:
  934. valueFrom:
  935. configMapKeyRef:
  936. key:
  937. name:
  938. optional:
  939. fieldRef:
  940. apiVersion:
  941. fieldPath:
  942. resourceFieldRef:
  943. containerName:
  944. divisor:
  945. resource:
  946. secretKeyRef:
  947. key:
  948. name:
  949. optional:
  950. envFrom:
  951. - configMapRef:
  952. - name:
  953. optional:
  954. prefix:
  955. secretRef:
  956. name:
  957. optional:
  958. image:
  959. imagePullPolicy:
  960. lifecycle:
  961. postStart:
  962. exec:
  963. command:
  964. - [string]:
  965. httpGet:
  966. host:
  967. httpHeaders:
  968. - name:
  969. value:
  970. path:
  971. port:
  972. scheme:
  973. tcpSocket:
  974. host:
  975. port:
  976. preStop:
  977. exec:
  978. command:
  979. - [string]:
  980. httpGet:
  981. host:
  982. httpHeaders:
  983. - name:
  984. value:
  985. path:
  986. port:
  987. scheme:
  988. tcpSocket:
  989. host:
  990. port:
  991. livenessProbe:
  992. exec:
  993. command:
  994. - [string]:
  995. failureThreshold:
  996. httpGet:
  997. host:
  998. httpHeaders:
  999. - name:
  1000. value:
  1001. path:
  1002. port:
  1003. scheme:
  1004. initialDelaySeconds:
  1005. periodSeconds:
  1006. successThreshold:
  1007. tcpSocket:
  1008. host:
  1009. port:
  1010. timeoutSeconds:
  1011. name:
  1012. ports:
  1013. - containerPort:
  1014. hostIP:
  1015. hostPort:
  1016. name:
  1017. protocol:
  1018. readinessProbe:
  1019. exec:
  1020. command:
  1021. - [string]:
  1022. failureThreshold:
  1023. httpGet:
  1024. host:
  1025. httpHeaders:
  1026. - name:
  1027. value:
  1028. path:
  1029. port:
  1030. scheme:
  1031. initialDelaySeconds:
  1032. periodSeconds:
  1033. successThreshold:
  1034. tcpSocket:
  1035. host:
  1036. port:
  1037. timeoutSeconds:
  1038. resources:
  1039. limits:
  1040. [string]:
  1041. requests:
  1042. [string]:
  1043. securityContext:
  1044. capabilities:
  1045. add:
  1046. - [string]:
  1047. drop:
  1048. - [string]:
  1049. privileged:
  1050. readOnlyRootFilesystem:
  1051. runAsNonRoot:
  1052. runAsUser:
  1053. seLinuxOptions:
  1054. level:
  1055. role:
  1056. type:
  1057. user:
  1058. stdin:
  1059. stdinOnce:
  1060. terminationMessagePath:
  1061. terminationMessagePolicy:
  1062. tty:
  1063. volumeMounts:
  1064. - mountPath:
  1065. name:
  1066. readOnly:
  1067. subPath:
  1068. workingDir:
  1069. nodeName:
  1070. nodeSelector:
  1071. [string]:
  1072. restartPolicy:
  1073. schedulerName:
  1074. securityContext:
  1075. fsGroup:
  1076. runAsNonRoot:
  1077. runAsUser:
  1078. seLinuxOptions:
  1079. level:
  1080. role:
  1081. type:
  1082. user:
  1083. supplementalGroups:
  1084. - [integer]:
  1085. serviceAccount:
  1086. serviceAccountName:
  1087. subdomain:
  1088. terminationGracePeriodSeconds:
  1089. tolerations:
  1090. - effect:
  1091. key:
  1092. operator:
  1093. tolerationSeconds:
  1094. value:
  1095. volumes:
  1096. - awsElasticBlockStore:
  1097. - fsType:
  1098. partition:
  1099. readOnly:
  1100. volumeID:
  1101. azureDisk:
  1102. cachingMode:
  1103. diskName:
  1104. diskURI:
  1105. fsType:
  1106. kind:
  1107. readOnly:
  1108. azureFile:
  1109. readOnly:
  1110. secretName:
  1111. shareName:
  1112. cephfs:
  1113. monitors:
  1114. - [string]:
  1115. path:
  1116. readOnly:
  1117. secretFile:
  1118. secretRef:
  1119. name:
  1120. user:
  1121. cinder:
  1122. fsType:
  1123. readOnly:
  1124. volumeID:
  1125. configMap:
  1126. defaultMode:
  1127. items:
  1128. - key:
  1129. mode:
  1130. path:
  1131. name:
  1132. optional:
  1133. downwardAPI:
  1134. defaultMode:
  1135. items:
  1136. - fieldRef:
  1137. - apiVersion:
  1138. fieldPath:
  1139. mode:
  1140. path:
  1141. resourceFieldRef:
  1142. containerName:
  1143. divisor:
  1144. resource:
  1145. emptyDir:
  1146. medium:
  1147. sizeLimit:
  1148. fc:
  1149. fsType:
  1150. lun:
  1151. readOnly:
  1152. targetWWNs:
  1153. - [string]:
  1154. flexVolume:
  1155. driver:
  1156. fsType:
  1157. options:
  1158. [string]:
  1159. readOnly:
  1160. secretRef:
  1161. name:
  1162. flocker:
  1163. datasetName:
  1164. datasetUUID:
  1165. gcePersistentDisk:
  1166. fsType:
  1167. partition:
  1168. pdName:
  1169. readOnly:
  1170. glusterfs:
  1171. endpoints:
  1172. path:
  1173. readOnly:
  1174. hostPath:
  1175. path:
  1176. iscsi:
  1177. chapAuthDiscovery:
  1178. chapAuthSession:
  1179. fsType:
  1180. iqn:
  1181. iscsiInterface:
  1182. lun:
  1183. portals:
  1184. - [string]:
  1185. readOnly:
  1186. secretRef:
  1187. name:
  1188. targetPortal:
  1189. name:
  1190. nfs:
  1191. path:
  1192. readOnly:
  1193. server:
  1194. persistentVolumeClaim:
  1195. claimName:
  1196. readOnly:
  1197. photonPersistentDisk:
  1198. fsType:
  1199. pdID:
  1200. portworxVolume:
  1201. fsType:
  1202. readOnly:
  1203. volumeID:
  1204. projected:
  1205. defaultMode:
  1206. sources:
  1207. - configMap:
  1208. - items:
  1209. - - key:
  1210. mode:
  1211. path:
  1212. name:
  1213. optional:
  1214. downwardAPI:
  1215. items:
  1216. - fieldRef:
  1217. - apiVersion:
  1218. fieldPath:
  1219. mode:
  1220. path:
  1221. resourceFieldRef:
  1222. containerName:
  1223. divisor:
  1224. resource:
  1225. secret:
  1226. items:
  1227. - key:
  1228. mode:
  1229. path:
  1230. name:
  1231. optional:
  1232. quobyte:
  1233. group:
  1234. readOnly:
  1235. registry:
  1236. user:
  1237. volume:
  1238. rbd:
  1239. fsType:
  1240. image:
  1241. keyring:
  1242. monitors:
  1243. - [string]:
  1244. pool:
  1245. readOnly:
  1246. secretRef:
  1247. name:
  1248. user:
  1249. scaleIO:
  1250. fsType:
  1251. gateway:
  1252. protectionDomain:
  1253. readOnly:
  1254. secretRef:
  1255. name:
  1256. sslEnabled:
  1257. storageMode:
  1258. storagePool:
  1259. system:
  1260. volumeName:
  1261. secret:
  1262. defaultMode:
  1263. items:
  1264. - key:
  1265. mode:
  1266. path:
  1267. optional:
  1268. secretName:
  1269. storageos:
  1270. fsType:
  1271. readOnly:
  1272. secretRef:
  1273. name:
  1274. volumeName:
  1275. volumeNamespace:
  1276. vsphereVolume:
  1277. fsType:
  1278. storagePolicyID:
  1279. storagePolicyName:
  1280. volumePath:

Operations

Create a PodSecurityPolicySubjectReview

Create a PodSecurityPolicySubjectReview

HTTP request

  1. POST /oapi/v1/podsecuritypolicysubjectreviews HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "PodSecurityPolicySubjectReview",
  8. "apiVersion": "v1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/oapi/v1/podsecuritypolicysubjectreviews <<'EOF'
  8. {
  9. "kind": "PodSecurityPolicySubjectReview",
  10. "apiVersion": "v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.PodSecurityPolicySubjectReview

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.PodSecurityPolicySubjectReview

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create a PodSecurityPolicySubjectReview in a namespace

Create a PodSecurityPolicySubjectReview

HTTP request

  1. POST /oapi/v1/namespaces/$NAMESPACE/podsecuritypolicysubjectreviews HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "PodSecurityPolicySubjectReview",
  8. "apiVersion": "v1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/oapi/v1/namespaces/$NAMESPACE/podsecuritypolicysubjectreviews <<'EOF'
  8. {
  9. "kind": "PodSecurityPolicySubjectReview",
  10. "apiVersion": "v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.PodSecurityPolicySubjectReview

Path parameters

ParameterDescription

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.PodSecurityPolicySubjectReview

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf