Package io.fabric8.kubernetes.client
Class SundrioConfig
- java.lang.Object
-
- io.fabric8.kubernetes.client.SundrioConfig
-
- Direct Known Subclasses:
Config
public class SundrioConfig extends Object
To add a new config option:- add a field in this class. Adding getters / setters is optional
- add logic in the
Configconstructor to copy the field. Optionally add auto configuration logic. - no other changes are typically necessary
-
-
Constructor Summary
Constructors Constructor Description SundrioConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getAdditionalProperties()List<io.fabric8.kubernetes.api.model.NamedContext>getContexts()Returns all theNamedContexts that exist in the kube configio.fabric8.kubernetes.api.model.NamedContextgetCurrentContext()Returns the current context that's defined in the kube config.voidsetAdditionalProperty(String name, Object value)voidsetImpersonateGroups(String... impersonateGroup)
-
-
-
Method Detail
-
setImpersonateGroups
public void setImpersonateGroups(String... impersonateGroup)
-
getContexts
public List<io.fabric8.kubernetes.api.model.NamedContext> getContexts()
Returns all theNamedContexts that exist in the kube config- Returns:
- all the contexts
- See Also:
NamedContext
-
getCurrentContext
public io.fabric8.kubernetes.api.model.NamedContext getCurrentContext()
Returns the current context that's defined in the kube config. Returnsnullif there's none- Returns:
- the current context
- See Also:
NamedContext
-
-