Package io.fabric8.kubernetes.api.model
Class SecurityContextFluentImpl<A extends SecurityContextFluent<A>>
- java.lang.Object
-
- io.fabric8.kubernetes.api.builder.BaseFluent<A>
-
- io.fabric8.kubernetes.api.model.SecurityContextFluentImpl<A>
-
- All Implemented Interfaces:
Fluent<A>
,Visitable<A>
,SecurityContextFluent<A>
- Direct Known Subclasses:
ContainerFluentImpl.SecurityContextNestedImpl
,EphemeralContainerFluentImpl.SecurityContextNestedImpl
,SecurityContextBuilder
,WatchEventFluentImpl.SecurityContextObjectNestedImpl
public class SecurityContextFluentImpl<A extends SecurityContextFluent<A>> extends BaseFluent<A> implements SecurityContextFluent<A>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SecurityContextFluentImpl.CapabilitiesNestedImpl<N>
class
SecurityContextFluentImpl.SeccompProfileNestedImpl<N>
class
SecurityContextFluentImpl.SeLinuxOptionsNestedImpl<N>
class
SecurityContextFluentImpl.WindowsOptionsNestedImpl<N>
-
Nested classes/interfaces inherited from interface io.fabric8.kubernetes.api.model.SecurityContextFluent
SecurityContextFluent.CapabilitiesNested<N>, SecurityContextFluent.SeccompProfileNested<N>, SecurityContextFluent.SeLinuxOptionsNested<N>, SecurityContextFluent.WindowsOptionsNested<N>
-
-
Field Summary
-
Fields inherited from class io.fabric8.kubernetes.api.builder.BaseFluent
_visitables
-
-
Constructor Summary
Constructors Constructor Description SecurityContextFluentImpl()
SecurityContextFluentImpl(SecurityContext instance)
-
Method Summary
-
-
-
Constructor Detail
-
SecurityContextFluentImpl
public SecurityContextFluentImpl()
-
SecurityContextFluentImpl
public SecurityContextFluentImpl(SecurityContext instance)
-
-
Method Detail
-
isAllowPrivilegeEscalation
public Boolean isAllowPrivilegeEscalation()
- Specified by:
isAllowPrivilegeEscalation
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withAllowPrivilegeEscalation
public A withAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation)
- Specified by:
withAllowPrivilegeEscalation
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
hasAllowPrivilegeEscalation
public Boolean hasAllowPrivilegeEscalation()
- Specified by:
hasAllowPrivilegeEscalation
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewAllowPrivilegeEscalation
public A withNewAllowPrivilegeEscalation(String arg1)
- Specified by:
withNewAllowPrivilegeEscalation
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewAllowPrivilegeEscalation
public A withNewAllowPrivilegeEscalation(boolean arg1)
- Specified by:
withNewAllowPrivilegeEscalation
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
getCapabilities
@Deprecated public Capabilities getCapabilities()
Deprecated.This method has been deprecated, please use method buildCapabilities instead.- Specified by:
getCapabilities
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
- Returns:
- The buildable object.
-
buildCapabilities
public Capabilities buildCapabilities()
- Specified by:
buildCapabilities
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withCapabilities
public A withCapabilities(Capabilities capabilities)
- Specified by:
withCapabilities
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
hasCapabilities
public Boolean hasCapabilities()
- Specified by:
hasCapabilities
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewCapabilities
public SecurityContextFluent.CapabilitiesNested<A> withNewCapabilities()
- Specified by:
withNewCapabilities
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewCapabilitiesLike
public SecurityContextFluent.CapabilitiesNested<A> withNewCapabilitiesLike(Capabilities item)
- Specified by:
withNewCapabilitiesLike
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
editCapabilities
public SecurityContextFluent.CapabilitiesNested<A> editCapabilities()
- Specified by:
editCapabilities
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
editOrNewCapabilities
public SecurityContextFluent.CapabilitiesNested<A> editOrNewCapabilities()
- Specified by:
editOrNewCapabilities
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
editOrNewCapabilitiesLike
public SecurityContextFluent.CapabilitiesNested<A> editOrNewCapabilitiesLike(Capabilities item)
- Specified by:
editOrNewCapabilitiesLike
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
isPrivileged
public Boolean isPrivileged()
- Specified by:
isPrivileged
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withPrivileged
public A withPrivileged(Boolean privileged)
- Specified by:
withPrivileged
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
hasPrivileged
public Boolean hasPrivileged()
- Specified by:
hasPrivileged
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewPrivileged
public A withNewPrivileged(String arg1)
- Specified by:
withNewPrivileged
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewPrivileged
public A withNewPrivileged(boolean arg1)
- Specified by:
withNewPrivileged
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
getProcMount
public String getProcMount()
- Specified by:
getProcMount
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withProcMount
public A withProcMount(String procMount)
- Specified by:
withProcMount
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
hasProcMount
public Boolean hasProcMount()
- Specified by:
hasProcMount
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewProcMount
public A withNewProcMount(String arg1)
- Specified by:
withNewProcMount
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewProcMount
public A withNewProcMount(StringBuilder arg1)
- Specified by:
withNewProcMount
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewProcMount
public A withNewProcMount(StringBuffer arg1)
- Specified by:
withNewProcMount
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
isReadOnlyRootFilesystem
public Boolean isReadOnlyRootFilesystem()
- Specified by:
isReadOnlyRootFilesystem
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withReadOnlyRootFilesystem
public A withReadOnlyRootFilesystem(Boolean readOnlyRootFilesystem)
- Specified by:
withReadOnlyRootFilesystem
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
hasReadOnlyRootFilesystem
public Boolean hasReadOnlyRootFilesystem()
- Specified by:
hasReadOnlyRootFilesystem
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewReadOnlyRootFilesystem
public A withNewReadOnlyRootFilesystem(String arg1)
- Specified by:
withNewReadOnlyRootFilesystem
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewReadOnlyRootFilesystem
public A withNewReadOnlyRootFilesystem(boolean arg1)
- Specified by:
withNewReadOnlyRootFilesystem
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
getRunAsGroup
public Long getRunAsGroup()
- Specified by:
getRunAsGroup
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withRunAsGroup
public A withRunAsGroup(Long runAsGroup)
- Specified by:
withRunAsGroup
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
hasRunAsGroup
public Boolean hasRunAsGroup()
- Specified by:
hasRunAsGroup
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
isRunAsNonRoot
public Boolean isRunAsNonRoot()
- Specified by:
isRunAsNonRoot
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withRunAsNonRoot
public A withRunAsNonRoot(Boolean runAsNonRoot)
- Specified by:
withRunAsNonRoot
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
hasRunAsNonRoot
public Boolean hasRunAsNonRoot()
- Specified by:
hasRunAsNonRoot
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewRunAsNonRoot
public A withNewRunAsNonRoot(String arg1)
- Specified by:
withNewRunAsNonRoot
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewRunAsNonRoot
public A withNewRunAsNonRoot(boolean arg1)
- Specified by:
withNewRunAsNonRoot
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
getRunAsUser
public Long getRunAsUser()
- Specified by:
getRunAsUser
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withRunAsUser
public A withRunAsUser(Long runAsUser)
- Specified by:
withRunAsUser
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
hasRunAsUser
public Boolean hasRunAsUser()
- Specified by:
hasRunAsUser
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
getSeLinuxOptions
@Deprecated public SELinuxOptions getSeLinuxOptions()
Deprecated.This method has been deprecated, please use method buildSeLinuxOptions instead.- Specified by:
getSeLinuxOptions
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
- Returns:
- The buildable object.
-
buildSeLinuxOptions
public SELinuxOptions buildSeLinuxOptions()
- Specified by:
buildSeLinuxOptions
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withSeLinuxOptions
public A withSeLinuxOptions(SELinuxOptions seLinuxOptions)
- Specified by:
withSeLinuxOptions
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
hasSeLinuxOptions
public Boolean hasSeLinuxOptions()
- Specified by:
hasSeLinuxOptions
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewSeLinuxOptions
public A withNewSeLinuxOptions(String level, String role, String type, String user)
- Specified by:
withNewSeLinuxOptions
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewSeLinuxOptions
public SecurityContextFluent.SeLinuxOptionsNested<A> withNewSeLinuxOptions()
- Specified by:
withNewSeLinuxOptions
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewSeLinuxOptionsLike
public SecurityContextFluent.SeLinuxOptionsNested<A> withNewSeLinuxOptionsLike(SELinuxOptions item)
- Specified by:
withNewSeLinuxOptionsLike
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
editSeLinuxOptions
public SecurityContextFluent.SeLinuxOptionsNested<A> editSeLinuxOptions()
- Specified by:
editSeLinuxOptions
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
editOrNewSeLinuxOptions
public SecurityContextFluent.SeLinuxOptionsNested<A> editOrNewSeLinuxOptions()
- Specified by:
editOrNewSeLinuxOptions
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
editOrNewSeLinuxOptionsLike
public SecurityContextFluent.SeLinuxOptionsNested<A> editOrNewSeLinuxOptionsLike(SELinuxOptions item)
- Specified by:
editOrNewSeLinuxOptionsLike
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
getSeccompProfile
@Deprecated public SeccompProfile getSeccompProfile()
Deprecated.This method has been deprecated, please use method buildSeccompProfile instead.- Specified by:
getSeccompProfile
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
- Returns:
- The buildable object.
-
buildSeccompProfile
public SeccompProfile buildSeccompProfile()
- Specified by:
buildSeccompProfile
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withSeccompProfile
public A withSeccompProfile(SeccompProfile seccompProfile)
- Specified by:
withSeccompProfile
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
hasSeccompProfile
public Boolean hasSeccompProfile()
- Specified by:
hasSeccompProfile
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewSeccompProfile
public A withNewSeccompProfile(String localhostProfile, String type)
- Specified by:
withNewSeccompProfile
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewSeccompProfile
public SecurityContextFluent.SeccompProfileNested<A> withNewSeccompProfile()
- Specified by:
withNewSeccompProfile
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewSeccompProfileLike
public SecurityContextFluent.SeccompProfileNested<A> withNewSeccompProfileLike(SeccompProfile item)
- Specified by:
withNewSeccompProfileLike
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
editSeccompProfile
public SecurityContextFluent.SeccompProfileNested<A> editSeccompProfile()
- Specified by:
editSeccompProfile
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
editOrNewSeccompProfile
public SecurityContextFluent.SeccompProfileNested<A> editOrNewSeccompProfile()
- Specified by:
editOrNewSeccompProfile
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
editOrNewSeccompProfileLike
public SecurityContextFluent.SeccompProfileNested<A> editOrNewSeccompProfileLike(SeccompProfile item)
- Specified by:
editOrNewSeccompProfileLike
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
getWindowsOptions
@Deprecated public WindowsSecurityContextOptions getWindowsOptions()
Deprecated.This method has been deprecated, please use method buildWindowsOptions instead.- Specified by:
getWindowsOptions
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
- Returns:
- The buildable object.
-
buildWindowsOptions
public WindowsSecurityContextOptions buildWindowsOptions()
- Specified by:
buildWindowsOptions
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withWindowsOptions
public A withWindowsOptions(WindowsSecurityContextOptions windowsOptions)
- Specified by:
withWindowsOptions
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
hasWindowsOptions
public Boolean hasWindowsOptions()
- Specified by:
hasWindowsOptions
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewWindowsOptions
public A withNewWindowsOptions(String gmsaCredentialSpec, String gmsaCredentialSpecName, String runAsUserName)
- Specified by:
withNewWindowsOptions
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewWindowsOptions
public SecurityContextFluent.WindowsOptionsNested<A> withNewWindowsOptions()
- Specified by:
withNewWindowsOptions
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
withNewWindowsOptionsLike
public SecurityContextFluent.WindowsOptionsNested<A> withNewWindowsOptionsLike(WindowsSecurityContextOptions item)
- Specified by:
withNewWindowsOptionsLike
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
editWindowsOptions
public SecurityContextFluent.WindowsOptionsNested<A> editWindowsOptions()
- Specified by:
editWindowsOptions
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
editOrNewWindowsOptions
public SecurityContextFluent.WindowsOptionsNested<A> editOrNewWindowsOptions()
- Specified by:
editOrNewWindowsOptions
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
editOrNewWindowsOptionsLike
public SecurityContextFluent.WindowsOptionsNested<A> editOrNewWindowsOptionsLike(WindowsSecurityContextOptions item)
- Specified by:
editOrNewWindowsOptionsLike
in interfaceSecurityContextFluent<A extends SecurityContextFluent<A>>
-
-