module Kube::Client::ServiceAccount
Defined in:
kube/client/service_account.crConstant Summary
-
NAMESPACE_PATH =
"/var/run/secrets/kubernetes.io/serviceaccount/namespace"
-
TOKEN_PATH =
"/var/run/secrets/kubernetes.io/serviceaccount/token"
Instance Method Summary
-
#kube_address : String
Will return the address for the kubernetes api @return [String] the token for the service account
-
#read_namespace : String
Will read the contents of the {NAMESPACE_PATH} file @return [String] the namespace of the service account
-
#read_token : String
Will read the contents of the {TOKEN_PATH} file @return [String] the token for the service account
- #service_account
Instance Method Detail
def kube_address : String
#
Will return the address for the kubernetes api @return [String] the token for the service account
def read_namespace : String
#
Will read the contents of the {NAMESPACE_PATH} file @return [String] the namespace of the service account
def read_token : String
#
Will read the contents of the {TOKEN_PATH} file @return [String] the token for the service account