public class KubernetesNamespaceProvider extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
Modifier and Type | Field and Description |
---|---|
static String |
NAMESPACE_PATH_PROPERTY
Property for namespace file path.
|
static String |
NAMESPACE_PROPERTY
Property name for namespace.
|
Constructor and Description |
---|
KubernetesNamespaceProvider(org.springframework.core.env.Environment env) |
Modifier and Type | Method and Description |
---|---|
String |
getNamespace() |
static String |
getNamespaceFromServiceAccountFile(String path) |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent) |
public static final String NAMESPACE_PROPERTY
public static final String NAMESPACE_PATH_PROPERTY
public KubernetesNamespaceProvider(org.springframework.core.env.Environment env)
public String getNamespace()
public void onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
Copyright © 2017–2021 Pivotal Software, Inc.. All rights reserved.