module Kube::Client::ServiceAccount

Defined in:

kube/client/service_account.cr

Constant Summary

NAMESPACE_PATH = "/var/run/secrets/kubernetes.io/serviceaccount/namespace"
TOKEN_PATH = "/var/run/secrets/kubernetes.io/serviceaccount/token"

Instance Method Summary

Instance Method Detail

def kube_address : String #

Will return the address for the kubernetes api @return [String] the token for the service account


[View source]
def read_namespace : String #

Will read the contents of the {NAMESPACE_PATH} file @return [String] the namespace of the service account


[View source]
def read_token : String #

Will read the contents of the {TOKEN_PATH} file @return [String] the token for the service account


[View source]
def service_account #

[View source]