Package io.fabric8.kubernetes.api.model
Class PodSecurityContextFluentImpl<A extends PodSecurityContextFluent<A>>
- java.lang.Object
-
- io.fabric8.kubernetes.api.builder.BaseFluent<A>
-
- io.fabric8.kubernetes.api.model.PodSecurityContextFluentImpl<A>
-
- All Implemented Interfaces:
Fluent<A>
,Visitable<A>
,PodSecurityContextFluent<A>
- Direct Known Subclasses:
PodSecurityContextBuilder
,PodSpecFluentImpl.SecurityContextNestedImpl
,WatchEventFluentImpl.PodSecurityContextObjectNestedImpl
public class PodSecurityContextFluentImpl<A extends PodSecurityContextFluent<A>> extends BaseFluent<A> implements PodSecurityContextFluent<A>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
PodSecurityContextFluentImpl.SeccompProfileNestedImpl<N>
class
PodSecurityContextFluentImpl.SeLinuxOptionsNestedImpl<N>
class
PodSecurityContextFluentImpl.SysctlsNestedImpl<N>
class
PodSecurityContextFluentImpl.WindowsOptionsNestedImpl<N>
-
Nested classes/interfaces inherited from interface io.fabric8.kubernetes.api.model.PodSecurityContextFluent
PodSecurityContextFluent.SeccompProfileNested<N>, PodSecurityContextFluent.SeLinuxOptionsNested<N>, PodSecurityContextFluent.SysctlsNested<N>, PodSecurityContextFluent.WindowsOptionsNested<N>
-
-
Field Summary
-
Fields inherited from class io.fabric8.kubernetes.api.builder.BaseFluent
_visitables
-
-
Constructor Summary
Constructors Constructor Description PodSecurityContextFluentImpl()
PodSecurityContextFluentImpl(PodSecurityContext instance)
-
Method Summary
-
-
-
Constructor Detail
-
PodSecurityContextFluentImpl
public PodSecurityContextFluentImpl()
-
PodSecurityContextFluentImpl
public PodSecurityContextFluentImpl(PodSecurityContext instance)
-
-
Method Detail
-
getFsGroup
public Long getFsGroup()
- Specified by:
getFsGroup
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withFsGroup
public A withFsGroup(Long fsGroup)
- Specified by:
withFsGroup
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasFsGroup
public Boolean hasFsGroup()
- Specified by:
hasFsGroup
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getFsGroupChangePolicy
public String getFsGroupChangePolicy()
- Specified by:
getFsGroupChangePolicy
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withFsGroupChangePolicy
public A withFsGroupChangePolicy(String fsGroupChangePolicy)
- Specified by:
withFsGroupChangePolicy
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasFsGroupChangePolicy
public Boolean hasFsGroupChangePolicy()
- Specified by:
hasFsGroupChangePolicy
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewFsGroupChangePolicy
public A withNewFsGroupChangePolicy(String arg1)
- Specified by:
withNewFsGroupChangePolicy
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewFsGroupChangePolicy
public A withNewFsGroupChangePolicy(StringBuilder arg1)
- Specified by:
withNewFsGroupChangePolicy
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewFsGroupChangePolicy
public A withNewFsGroupChangePolicy(StringBuffer arg1)
- Specified by:
withNewFsGroupChangePolicy
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getRunAsGroup
public Long getRunAsGroup()
- Specified by:
getRunAsGroup
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withRunAsGroup
public A withRunAsGroup(Long runAsGroup)
- Specified by:
withRunAsGroup
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasRunAsGroup
public Boolean hasRunAsGroup()
- Specified by:
hasRunAsGroup
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
isRunAsNonRoot
public Boolean isRunAsNonRoot()
- Specified by:
isRunAsNonRoot
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withRunAsNonRoot
public A withRunAsNonRoot(Boolean runAsNonRoot)
- Specified by:
withRunAsNonRoot
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasRunAsNonRoot
public Boolean hasRunAsNonRoot()
- Specified by:
hasRunAsNonRoot
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewRunAsNonRoot
public A withNewRunAsNonRoot(String arg1)
- Specified by:
withNewRunAsNonRoot
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewRunAsNonRoot
public A withNewRunAsNonRoot(boolean arg1)
- Specified by:
withNewRunAsNonRoot
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getRunAsUser
public Long getRunAsUser()
- Specified by:
getRunAsUser
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withRunAsUser
public A withRunAsUser(Long runAsUser)
- Specified by:
withRunAsUser
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasRunAsUser
public Boolean hasRunAsUser()
- Specified by:
hasRunAsUser
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getSeLinuxOptions
@Deprecated public SELinuxOptions getSeLinuxOptions()
Deprecated.This method has been deprecated, please use method buildSeLinuxOptions instead.- Specified by:
getSeLinuxOptions
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
- Returns:
- The buildable object.
-
buildSeLinuxOptions
public SELinuxOptions buildSeLinuxOptions()
- Specified by:
buildSeLinuxOptions
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withSeLinuxOptions
public A withSeLinuxOptions(SELinuxOptions seLinuxOptions)
- Specified by:
withSeLinuxOptions
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasSeLinuxOptions
public Boolean hasSeLinuxOptions()
- Specified by:
hasSeLinuxOptions
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewSeLinuxOptions
public A withNewSeLinuxOptions(String level, String role, String type, String user)
- Specified by:
withNewSeLinuxOptions
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewSeLinuxOptions
public PodSecurityContextFluent.SeLinuxOptionsNested<A> withNewSeLinuxOptions()
- Specified by:
withNewSeLinuxOptions
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewSeLinuxOptionsLike
public PodSecurityContextFluent.SeLinuxOptionsNested<A> withNewSeLinuxOptionsLike(SELinuxOptions item)
- Specified by:
withNewSeLinuxOptionsLike
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editSeLinuxOptions
public PodSecurityContextFluent.SeLinuxOptionsNested<A> editSeLinuxOptions()
- Specified by:
editSeLinuxOptions
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editOrNewSeLinuxOptions
public PodSecurityContextFluent.SeLinuxOptionsNested<A> editOrNewSeLinuxOptions()
- Specified by:
editOrNewSeLinuxOptions
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editOrNewSeLinuxOptionsLike
public PodSecurityContextFluent.SeLinuxOptionsNested<A> editOrNewSeLinuxOptionsLike(SELinuxOptions item)
- Specified by:
editOrNewSeLinuxOptionsLike
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getSeccompProfile
@Deprecated public SeccompProfile getSeccompProfile()
Deprecated.This method has been deprecated, please use method buildSeccompProfile instead.- Specified by:
getSeccompProfile
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
- Returns:
- The buildable object.
-
buildSeccompProfile
public SeccompProfile buildSeccompProfile()
- Specified by:
buildSeccompProfile
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withSeccompProfile
public A withSeccompProfile(SeccompProfile seccompProfile)
- Specified by:
withSeccompProfile
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasSeccompProfile
public Boolean hasSeccompProfile()
- Specified by:
hasSeccompProfile
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewSeccompProfile
public A withNewSeccompProfile(String localhostProfile, String type)
- Specified by:
withNewSeccompProfile
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewSeccompProfile
public PodSecurityContextFluent.SeccompProfileNested<A> withNewSeccompProfile()
- Specified by:
withNewSeccompProfile
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewSeccompProfileLike
public PodSecurityContextFluent.SeccompProfileNested<A> withNewSeccompProfileLike(SeccompProfile item)
- Specified by:
withNewSeccompProfileLike
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editSeccompProfile
public PodSecurityContextFluent.SeccompProfileNested<A> editSeccompProfile()
- Specified by:
editSeccompProfile
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editOrNewSeccompProfile
public PodSecurityContextFluent.SeccompProfileNested<A> editOrNewSeccompProfile()
- Specified by:
editOrNewSeccompProfile
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editOrNewSeccompProfileLike
public PodSecurityContextFluent.SeccompProfileNested<A> editOrNewSeccompProfileLike(SeccompProfile item)
- Specified by:
editOrNewSeccompProfileLike
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addToSupplementalGroups
public A addToSupplementalGroups(int index, Long item)
- Specified by:
addToSupplementalGroups
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
setToSupplementalGroups
public A setToSupplementalGroups(int index, Long item)
- Specified by:
setToSupplementalGroups
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addToSupplementalGroups
public A addToSupplementalGroups(Long... items)
- Specified by:
addToSupplementalGroups
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addAllToSupplementalGroups
public A addAllToSupplementalGroups(Collection<Long> items)
- Specified by:
addAllToSupplementalGroups
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
removeFromSupplementalGroups
public A removeFromSupplementalGroups(Long... items)
- Specified by:
removeFromSupplementalGroups
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
removeAllFromSupplementalGroups
public A removeAllFromSupplementalGroups(Collection<Long> items)
- Specified by:
removeAllFromSupplementalGroups
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getSupplementalGroups
public List<Long> getSupplementalGroups()
- Specified by:
getSupplementalGroups
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getSupplementalGroup
public Long getSupplementalGroup(int index)
- Specified by:
getSupplementalGroup
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getFirstSupplementalGroup
public Long getFirstSupplementalGroup()
- Specified by:
getFirstSupplementalGroup
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getLastSupplementalGroup
public Long getLastSupplementalGroup()
- Specified by:
getLastSupplementalGroup
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getMatchingSupplementalGroup
public Long getMatchingSupplementalGroup(Predicate<Long> predicate)
- Specified by:
getMatchingSupplementalGroup
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasMatchingSupplementalGroup
public Boolean hasMatchingSupplementalGroup(Predicate<Long> predicate)
- Specified by:
hasMatchingSupplementalGroup
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withSupplementalGroups
public A withSupplementalGroups(List<Long> supplementalGroups)
- Specified by:
withSupplementalGroups
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withSupplementalGroups
public A withSupplementalGroups(Long... supplementalGroups)
- Specified by:
withSupplementalGroups
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasSupplementalGroups
public Boolean hasSupplementalGroups()
- Specified by:
hasSupplementalGroups
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addToSysctls
public A addToSysctls(int index, Sysctl item)
- Specified by:
addToSysctls
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
setToSysctls
public A setToSysctls(int index, Sysctl item)
- Specified by:
setToSysctls
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addToSysctls
public A addToSysctls(Sysctl... items)
- Specified by:
addToSysctls
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addAllToSysctls
public A addAllToSysctls(Collection<Sysctl> items)
- Specified by:
addAllToSysctls
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
removeFromSysctls
public A removeFromSysctls(Sysctl... items)
- Specified by:
removeFromSysctls
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
removeAllFromSysctls
public A removeAllFromSysctls(Collection<Sysctl> items)
- Specified by:
removeAllFromSysctls
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
removeMatchingFromSysctls
public A removeMatchingFromSysctls(Predicate<SysctlBuilder> predicate)
- Specified by:
removeMatchingFromSysctls
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getSysctls
@Deprecated public List<Sysctl> getSysctls()
Deprecated.This method has been deprecated, please use method buildSysctls instead.- Specified by:
getSysctls
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
- Returns:
- The buildable object.
-
buildSysctls
public List<Sysctl> buildSysctls()
- Specified by:
buildSysctls
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
buildSysctl
public Sysctl buildSysctl(int index)
- Specified by:
buildSysctl
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
buildFirstSysctl
public Sysctl buildFirstSysctl()
- Specified by:
buildFirstSysctl
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
buildLastSysctl
public Sysctl buildLastSysctl()
- Specified by:
buildLastSysctl
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
buildMatchingSysctl
public Sysctl buildMatchingSysctl(Predicate<SysctlBuilder> predicate)
- Specified by:
buildMatchingSysctl
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasMatchingSysctl
public Boolean hasMatchingSysctl(Predicate<SysctlBuilder> predicate)
- Specified by:
hasMatchingSysctl
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withSysctls
public A withSysctls(List<Sysctl> sysctls)
- Specified by:
withSysctls
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withSysctls
public A withSysctls(Sysctl... sysctls)
- Specified by:
withSysctls
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasSysctls
public Boolean hasSysctls()
- Specified by:
hasSysctls
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addNewSysctl
public A addNewSysctl(String name, String value)
- Specified by:
addNewSysctl
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addNewSysctl
public PodSecurityContextFluent.SysctlsNested<A> addNewSysctl()
- Specified by:
addNewSysctl
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addNewSysctlLike
public PodSecurityContextFluent.SysctlsNested<A> addNewSysctlLike(Sysctl item)
- Specified by:
addNewSysctlLike
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
setNewSysctlLike
public PodSecurityContextFluent.SysctlsNested<A> setNewSysctlLike(int index, Sysctl item)
- Specified by:
setNewSysctlLike
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editSysctl
public PodSecurityContextFluent.SysctlsNested<A> editSysctl(int index)
- Specified by:
editSysctl
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editFirstSysctl
public PodSecurityContextFluent.SysctlsNested<A> editFirstSysctl()
- Specified by:
editFirstSysctl
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editLastSysctl
public PodSecurityContextFluent.SysctlsNested<A> editLastSysctl()
- Specified by:
editLastSysctl
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editMatchingSysctl
public PodSecurityContextFluent.SysctlsNested<A> editMatchingSysctl(Predicate<SysctlBuilder> predicate)
- Specified by:
editMatchingSysctl
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getWindowsOptions
@Deprecated public WindowsSecurityContextOptions getWindowsOptions()
Deprecated.This method has been deprecated, please use method buildWindowsOptions instead.- Specified by:
getWindowsOptions
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
- Returns:
- The buildable object.
-
buildWindowsOptions
public WindowsSecurityContextOptions buildWindowsOptions()
- Specified by:
buildWindowsOptions
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withWindowsOptions
public A withWindowsOptions(WindowsSecurityContextOptions windowsOptions)
- Specified by:
withWindowsOptions
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasWindowsOptions
public Boolean hasWindowsOptions()
- Specified by:
hasWindowsOptions
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewWindowsOptions
public A withNewWindowsOptions(String gmsaCredentialSpec, String gmsaCredentialSpecName, String runAsUserName)
- Specified by:
withNewWindowsOptions
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewWindowsOptions
public PodSecurityContextFluent.WindowsOptionsNested<A> withNewWindowsOptions()
- Specified by:
withNewWindowsOptions
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewWindowsOptionsLike
public PodSecurityContextFluent.WindowsOptionsNested<A> withNewWindowsOptionsLike(WindowsSecurityContextOptions item)
- Specified by:
withNewWindowsOptionsLike
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editWindowsOptions
public PodSecurityContextFluent.WindowsOptionsNested<A> editWindowsOptions()
- Specified by:
editWindowsOptions
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editOrNewWindowsOptions
public PodSecurityContextFluent.WindowsOptionsNested<A> editOrNewWindowsOptions()
- Specified by:
editOrNewWindowsOptions
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editOrNewWindowsOptionsLike
public PodSecurityContextFluent.WindowsOptionsNested<A> editOrNewWindowsOptionsLike(WindowsSecurityContextOptions item)
- Specified by:
editOrNewWindowsOptionsLike
in interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
-