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 classPodSecurityContextFluentImpl.SeccompProfileNestedImpl<N>classPodSecurityContextFluentImpl.SeLinuxOptionsNestedImpl<N>classPodSecurityContextFluentImpl.SysctlsNestedImpl<N>classPodSecurityContextFluentImpl.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:
getFsGroupin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withFsGroup
public A withFsGroup(Long fsGroup)
- Specified by:
withFsGroupin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasFsGroup
public Boolean hasFsGroup()
- Specified by:
hasFsGroupin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getFsGroupChangePolicy
public String getFsGroupChangePolicy()
- Specified by:
getFsGroupChangePolicyin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withFsGroupChangePolicy
public A withFsGroupChangePolicy(String fsGroupChangePolicy)
- Specified by:
withFsGroupChangePolicyin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasFsGroupChangePolicy
public Boolean hasFsGroupChangePolicy()
- Specified by:
hasFsGroupChangePolicyin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewFsGroupChangePolicy
public A withNewFsGroupChangePolicy(String arg1)
- Specified by:
withNewFsGroupChangePolicyin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewFsGroupChangePolicy
public A withNewFsGroupChangePolicy(StringBuilder arg1)
- Specified by:
withNewFsGroupChangePolicyin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewFsGroupChangePolicy
public A withNewFsGroupChangePolicy(StringBuffer arg1)
- Specified by:
withNewFsGroupChangePolicyin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getRunAsGroup
public Long getRunAsGroup()
- Specified by:
getRunAsGroupin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withRunAsGroup
public A withRunAsGroup(Long runAsGroup)
- Specified by:
withRunAsGroupin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasRunAsGroup
public Boolean hasRunAsGroup()
- Specified by:
hasRunAsGroupin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
isRunAsNonRoot
public Boolean isRunAsNonRoot()
- Specified by:
isRunAsNonRootin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withRunAsNonRoot
public A withRunAsNonRoot(Boolean runAsNonRoot)
- Specified by:
withRunAsNonRootin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasRunAsNonRoot
public Boolean hasRunAsNonRoot()
- Specified by:
hasRunAsNonRootin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewRunAsNonRoot
public A withNewRunAsNonRoot(String arg1)
- Specified by:
withNewRunAsNonRootin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewRunAsNonRoot
public A withNewRunAsNonRoot(boolean arg1)
- Specified by:
withNewRunAsNonRootin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getRunAsUser
public Long getRunAsUser()
- Specified by:
getRunAsUserin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withRunAsUser
public A withRunAsUser(Long runAsUser)
- Specified by:
withRunAsUserin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasRunAsUser
public Boolean hasRunAsUser()
- Specified by:
hasRunAsUserin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getSeLinuxOptions
@Deprecated public SELinuxOptions getSeLinuxOptions()
Deprecated.This method has been deprecated, please use method buildSeLinuxOptions instead.- Specified by:
getSeLinuxOptionsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>- Returns:
- The buildable object.
-
buildSeLinuxOptions
public SELinuxOptions buildSeLinuxOptions()
- Specified by:
buildSeLinuxOptionsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withSeLinuxOptions
public A withSeLinuxOptions(SELinuxOptions seLinuxOptions)
- Specified by:
withSeLinuxOptionsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasSeLinuxOptions
public Boolean hasSeLinuxOptions()
- Specified by:
hasSeLinuxOptionsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewSeLinuxOptions
public A withNewSeLinuxOptions(String level, String role, String type, String user)
- Specified by:
withNewSeLinuxOptionsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewSeLinuxOptions
public PodSecurityContextFluent.SeLinuxOptionsNested<A> withNewSeLinuxOptions()
- Specified by:
withNewSeLinuxOptionsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewSeLinuxOptionsLike
public PodSecurityContextFluent.SeLinuxOptionsNested<A> withNewSeLinuxOptionsLike(SELinuxOptions item)
- Specified by:
withNewSeLinuxOptionsLikein interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editSeLinuxOptions
public PodSecurityContextFluent.SeLinuxOptionsNested<A> editSeLinuxOptions()
- Specified by:
editSeLinuxOptionsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editOrNewSeLinuxOptions
public PodSecurityContextFluent.SeLinuxOptionsNested<A> editOrNewSeLinuxOptions()
- Specified by:
editOrNewSeLinuxOptionsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editOrNewSeLinuxOptionsLike
public PodSecurityContextFluent.SeLinuxOptionsNested<A> editOrNewSeLinuxOptionsLike(SELinuxOptions item)
- Specified by:
editOrNewSeLinuxOptionsLikein interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getSeccompProfile
@Deprecated public SeccompProfile getSeccompProfile()
Deprecated.This method has been deprecated, please use method buildSeccompProfile instead.- Specified by:
getSeccompProfilein interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>- Returns:
- The buildable object.
-
buildSeccompProfile
public SeccompProfile buildSeccompProfile()
- Specified by:
buildSeccompProfilein interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withSeccompProfile
public A withSeccompProfile(SeccompProfile seccompProfile)
- Specified by:
withSeccompProfilein interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasSeccompProfile
public Boolean hasSeccompProfile()
- Specified by:
hasSeccompProfilein interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewSeccompProfile
public A withNewSeccompProfile(String localhostProfile, String type)
- Specified by:
withNewSeccompProfilein interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewSeccompProfile
public PodSecurityContextFluent.SeccompProfileNested<A> withNewSeccompProfile()
- Specified by:
withNewSeccompProfilein interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewSeccompProfileLike
public PodSecurityContextFluent.SeccompProfileNested<A> withNewSeccompProfileLike(SeccompProfile item)
- Specified by:
withNewSeccompProfileLikein interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editSeccompProfile
public PodSecurityContextFluent.SeccompProfileNested<A> editSeccompProfile()
- Specified by:
editSeccompProfilein interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editOrNewSeccompProfile
public PodSecurityContextFluent.SeccompProfileNested<A> editOrNewSeccompProfile()
- Specified by:
editOrNewSeccompProfilein interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editOrNewSeccompProfileLike
public PodSecurityContextFluent.SeccompProfileNested<A> editOrNewSeccompProfileLike(SeccompProfile item)
- Specified by:
editOrNewSeccompProfileLikein interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addToSupplementalGroups
public A addToSupplementalGroups(int index, Long item)
- Specified by:
addToSupplementalGroupsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
setToSupplementalGroups
public A setToSupplementalGroups(int index, Long item)
- Specified by:
setToSupplementalGroupsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addToSupplementalGroups
public A addToSupplementalGroups(Long... items)
- Specified by:
addToSupplementalGroupsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addAllToSupplementalGroups
public A addAllToSupplementalGroups(Collection<Long> items)
- Specified by:
addAllToSupplementalGroupsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
removeFromSupplementalGroups
public A removeFromSupplementalGroups(Long... items)
- Specified by:
removeFromSupplementalGroupsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
removeAllFromSupplementalGroups
public A removeAllFromSupplementalGroups(Collection<Long> items)
- Specified by:
removeAllFromSupplementalGroupsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getSupplementalGroups
public List<Long> getSupplementalGroups()
- Specified by:
getSupplementalGroupsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getSupplementalGroup
public Long getSupplementalGroup(int index)
- Specified by:
getSupplementalGroupin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getFirstSupplementalGroup
public Long getFirstSupplementalGroup()
- Specified by:
getFirstSupplementalGroupin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getLastSupplementalGroup
public Long getLastSupplementalGroup()
- Specified by:
getLastSupplementalGroupin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getMatchingSupplementalGroup
public Long getMatchingSupplementalGroup(Predicate<Long> predicate)
- Specified by:
getMatchingSupplementalGroupin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasMatchingSupplementalGroup
public Boolean hasMatchingSupplementalGroup(Predicate<Long> predicate)
- Specified by:
hasMatchingSupplementalGroupin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withSupplementalGroups
public A withSupplementalGroups(List<Long> supplementalGroups)
- Specified by:
withSupplementalGroupsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withSupplementalGroups
public A withSupplementalGroups(Long... supplementalGroups)
- Specified by:
withSupplementalGroupsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasSupplementalGroups
public Boolean hasSupplementalGroups()
- Specified by:
hasSupplementalGroupsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addToSysctls
public A addToSysctls(int index, Sysctl item)
- Specified by:
addToSysctlsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
setToSysctls
public A setToSysctls(int index, Sysctl item)
- Specified by:
setToSysctlsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addToSysctls
public A addToSysctls(Sysctl... items)
- Specified by:
addToSysctlsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addAllToSysctls
public A addAllToSysctls(Collection<Sysctl> items)
- Specified by:
addAllToSysctlsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
removeFromSysctls
public A removeFromSysctls(Sysctl... items)
- Specified by:
removeFromSysctlsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
removeAllFromSysctls
public A removeAllFromSysctls(Collection<Sysctl> items)
- Specified by:
removeAllFromSysctlsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
removeMatchingFromSysctls
public A removeMatchingFromSysctls(Predicate<SysctlBuilder> predicate)
- Specified by:
removeMatchingFromSysctlsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getSysctls
@Deprecated public List<Sysctl> getSysctls()
Deprecated.This method has been deprecated, please use method buildSysctls instead.- Specified by:
getSysctlsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>- Returns:
- The buildable object.
-
buildSysctls
public List<Sysctl> buildSysctls()
- Specified by:
buildSysctlsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
buildSysctl
public Sysctl buildSysctl(int index)
- Specified by:
buildSysctlin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
buildFirstSysctl
public Sysctl buildFirstSysctl()
- Specified by:
buildFirstSysctlin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
buildLastSysctl
public Sysctl buildLastSysctl()
- Specified by:
buildLastSysctlin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
buildMatchingSysctl
public Sysctl buildMatchingSysctl(Predicate<SysctlBuilder> predicate)
- Specified by:
buildMatchingSysctlin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasMatchingSysctl
public Boolean hasMatchingSysctl(Predicate<SysctlBuilder> predicate)
- Specified by:
hasMatchingSysctlin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withSysctls
public A withSysctls(List<Sysctl> sysctls)
- Specified by:
withSysctlsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withSysctls
public A withSysctls(Sysctl... sysctls)
- Specified by:
withSysctlsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasSysctls
public Boolean hasSysctls()
- Specified by:
hasSysctlsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addNewSysctl
public A addNewSysctl(String name, String value)
- Specified by:
addNewSysctlin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addNewSysctl
public PodSecurityContextFluent.SysctlsNested<A> addNewSysctl()
- Specified by:
addNewSysctlin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
addNewSysctlLike
public PodSecurityContextFluent.SysctlsNested<A> addNewSysctlLike(Sysctl item)
- Specified by:
addNewSysctlLikein interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
setNewSysctlLike
public PodSecurityContextFluent.SysctlsNested<A> setNewSysctlLike(int index, Sysctl item)
- Specified by:
setNewSysctlLikein interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editSysctl
public PodSecurityContextFluent.SysctlsNested<A> editSysctl(int index)
- Specified by:
editSysctlin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editFirstSysctl
public PodSecurityContextFluent.SysctlsNested<A> editFirstSysctl()
- Specified by:
editFirstSysctlin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editLastSysctl
public PodSecurityContextFluent.SysctlsNested<A> editLastSysctl()
- Specified by:
editLastSysctlin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editMatchingSysctl
public PodSecurityContextFluent.SysctlsNested<A> editMatchingSysctl(Predicate<SysctlBuilder> predicate)
- Specified by:
editMatchingSysctlin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
getWindowsOptions
@Deprecated public WindowsSecurityContextOptions getWindowsOptions()
Deprecated.This method has been deprecated, please use method buildWindowsOptions instead.- Specified by:
getWindowsOptionsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>- Returns:
- The buildable object.
-
buildWindowsOptions
public WindowsSecurityContextOptions buildWindowsOptions()
- Specified by:
buildWindowsOptionsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withWindowsOptions
public A withWindowsOptions(WindowsSecurityContextOptions windowsOptions)
- Specified by:
withWindowsOptionsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
hasWindowsOptions
public Boolean hasWindowsOptions()
- Specified by:
hasWindowsOptionsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewWindowsOptions
public A withNewWindowsOptions(String gmsaCredentialSpec, String gmsaCredentialSpecName, String runAsUserName)
- Specified by:
withNewWindowsOptionsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewWindowsOptions
public PodSecurityContextFluent.WindowsOptionsNested<A> withNewWindowsOptions()
- Specified by:
withNewWindowsOptionsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
withNewWindowsOptionsLike
public PodSecurityContextFluent.WindowsOptionsNested<A> withNewWindowsOptionsLike(WindowsSecurityContextOptions item)
- Specified by:
withNewWindowsOptionsLikein interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editWindowsOptions
public PodSecurityContextFluent.WindowsOptionsNested<A> editWindowsOptions()
- Specified by:
editWindowsOptionsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editOrNewWindowsOptions
public PodSecurityContextFluent.WindowsOptionsNested<A> editOrNewWindowsOptions()
- Specified by:
editOrNewWindowsOptionsin interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
editOrNewWindowsOptionsLike
public PodSecurityContextFluent.WindowsOptionsNested<A> editOrNewWindowsOptionsLike(WindowsSecurityContextOptions item)
- Specified by:
editOrNewWindowsOptionsLikein interfacePodSecurityContextFluent<A extends PodSecurityContextFluent<A>>
-
-