v1.PodSecurityPolicySelfSubjectReview

You are viewing documentation for a release that is no longer supported. The latest supported version of version 3 is [3.11]. For the most recent version 4, see [4]

You are viewing documentation for a release that is no longer supported. The latest supported version of version 3 is [3.11]. For the most recent version 4, see [4]

Description

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

Operations

Create a PodSecurityPolicySelfSubjectReview

Create a PodSecurityPolicySelfSubjectReview

HTTP request

  1. POST /apis/security.openshift.io/v1/podsecuritypolicyselfsubjectreviews HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "PodSecurityPolicySelfSubjectReview",
  8. "apiVersion": "security.openshift.io/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/apis/security.openshift.io/v1/podsecuritypolicyselfsubjectreviews <<'EOF'
  8. {
  9. "kind": "PodSecurityPolicySelfSubjectReview",
  10. "apiVersion": "security.openshift.io/v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.PodSecurityPolicySelfSubjectReview

Query parameters

ParameterDescription

pretty

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

Responses

HTTP CodeSchema

200 OK

v1.PodSecurityPolicySelfSubjectReview

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create a PodSecurityPolicySelfSubjectReview in a namespace

Create a PodSecurityPolicySelfSubjectReview

HTTP request

  1. POST /apis/security.openshift.io/v1/namespaces/$NAMESPACE/podsecuritypolicyselfsubjectreviews HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "PodSecurityPolicySelfSubjectReview",
  8. "apiVersion": "security.openshift.io/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/apis/security.openshift.io/v1/namespaces/$NAMESPACE/podsecuritypolicyselfsubjectreviews <<'EOF'
  8. {
  9. "kind": "PodSecurityPolicySelfSubjectReview",
  10. "apiVersion": "security.openshift.io/v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.PodSecurityPolicySelfSubjectReview

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.PodSecurityPolicySelfSubjectReview

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf