Package net.stickycode.kuuty.model.v18
Class IoK8sApiCoreV1PodSecurityContext
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiCoreV1PodSecurityContext
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiCoreV1PodSecurityContext extends Object
PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_FS_GROUPstatic StringJSON_PROPERTY_FS_GROUP_CHANGE_POLICYstatic StringJSON_PROPERTY_RUN_AS_GROUPstatic StringJSON_PROPERTY_RUN_AS_NON_ROOTstatic StringJSON_PROPERTY_RUN_AS_USERstatic StringJSON_PROPERTY_SE_LINUX_OPTIONSstatic StringJSON_PROPERTY_SUPPLEMENTAL_GROUPSstatic StringJSON_PROPERTY_SYSCTLSstatic StringJSON_PROPERTY_WINDOWS_OPTIONS
-
Constructor Summary
Constructors Constructor Description IoK8sApiCoreV1PodSecurityContext()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_FS_GROUP
public static final String JSON_PROPERTY_FS_GROUP
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FS_GROUP_CHANGE_POLICY
public static final String JSON_PROPERTY_FS_GROUP_CHANGE_POLICY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RUN_AS_GROUP
public static final String JSON_PROPERTY_RUN_AS_GROUP
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RUN_AS_NON_ROOT
public static final String JSON_PROPERTY_RUN_AS_NON_ROOT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RUN_AS_USER
public static final String JSON_PROPERTY_RUN_AS_USER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SE_LINUX_OPTIONS
public static final String JSON_PROPERTY_SE_LINUX_OPTIONS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUPPLEMENTAL_GROUPS
public static final String JSON_PROPERTY_SUPPLEMENTAL_GROUPS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SYSCTLS
public static final String JSON_PROPERTY_SYSCTLS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WINDOWS_OPTIONS
public static final String JSON_PROPERTY_WINDOWS_OPTIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
fsGroup
public IoK8sApiCoreV1PodSecurityContext fsGroup(Long fsGroup)
-
getFsGroup
@Nullable public Long getFsGroup()
A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume.- Returns:
- fsGroup
-
setFsGroup
public void setFsGroup(Long fsGroup)
-
fsGroupChangePolicy
public IoK8sApiCoreV1PodSecurityContext fsGroupChangePolicy(String fsGroupChangePolicy)
-
getFsGroupChangePolicy
@Nullable public String getFsGroupChangePolicy()
fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified defaults to \"Always\".- Returns:
- fsGroupChangePolicy
-
setFsGroupChangePolicy
public void setFsGroupChangePolicy(String fsGroupChangePolicy)
-
runAsGroup
public IoK8sApiCoreV1PodSecurityContext runAsGroup(Long runAsGroup)
-
getRunAsGroup
@Nullable public Long getRunAsGroup()
The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.- Returns:
- runAsGroup
-
setRunAsGroup
public void setRunAsGroup(Long runAsGroup)
-
runAsNonRoot
public IoK8sApiCoreV1PodSecurityContext runAsNonRoot(Boolean runAsNonRoot)
-
getRunAsNonRoot
@Nullable public Boolean getRunAsNonRoot()
Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.- Returns:
- runAsNonRoot
-
setRunAsNonRoot
public void setRunAsNonRoot(Boolean runAsNonRoot)
-
runAsUser
public IoK8sApiCoreV1PodSecurityContext runAsUser(Long runAsUser)
-
getRunAsUser
@Nullable public Long getRunAsUser()
The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.- Returns:
- runAsUser
-
setRunAsUser
public void setRunAsUser(Long runAsUser)
-
seLinuxOptions
public IoK8sApiCoreV1PodSecurityContext seLinuxOptions(IoK8sApiCoreV1SELinuxOptions seLinuxOptions)
-
getSeLinuxOptions
@Nullable public IoK8sApiCoreV1SELinuxOptions getSeLinuxOptions()
Get seLinuxOptions- Returns:
- seLinuxOptions
-
setSeLinuxOptions
public void setSeLinuxOptions(IoK8sApiCoreV1SELinuxOptions seLinuxOptions)
-
supplementalGroups
public IoK8sApiCoreV1PodSecurityContext supplementalGroups(List<Long> supplementalGroups)
-
addSupplementalGroupsItem
public IoK8sApiCoreV1PodSecurityContext addSupplementalGroupsItem(Long supplementalGroupsItem)
-
getSupplementalGroups
@Nullable public List<Long> getSupplementalGroups()
A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container.- Returns:
- supplementalGroups
-
sysctls
public IoK8sApiCoreV1PodSecurityContext sysctls(List<IoK8sApiCoreV1Sysctl> sysctls)
-
addSysctlsItem
public IoK8sApiCoreV1PodSecurityContext addSysctlsItem(IoK8sApiCoreV1Sysctl sysctlsItem)
-
getSysctls
@Nullable public List<IoK8sApiCoreV1Sysctl> getSysctls()
Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch.- Returns:
- sysctls
-
setSysctls
public void setSysctls(List<IoK8sApiCoreV1Sysctl> sysctls)
-
windowsOptions
public IoK8sApiCoreV1PodSecurityContext windowsOptions(IoK8sApiCoreV1WindowsSecurityContextOptions windowsOptions)
-
getWindowsOptions
@Nullable public IoK8sApiCoreV1WindowsSecurityContextOptions getWindowsOptions()
Get windowsOptions- Returns:
- windowsOptions
-
setWindowsOptions
public void setWindowsOptions(IoK8sApiCoreV1WindowsSecurityContextOptions windowsOptions)
-
-