Documentation ¶
Index ¶
- Constants
- type Kubernetes
- func (k *Kubernetes) CA() ([]byte, error)
- func (k *Kubernetes) Endpoint() (string, error)
- func (k *Kubernetes) Name() (string, error)
- func (k *Kubernetes) Namespace() (string, error)
- func (k *Kubernetes) Service(component string) (*corev1.Service, error)
- func (k *Kubernetes) UpdateRoles(roles []api.Role) error
- type RoleBinding
Constants ¶
View Source
const ( NamespaceFilePath = "/var/run/secrets/kubernetes.io/serviceaccount/namespace" CaFilePath = "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kubernetes ¶
type Kubernetes struct { Config *rest.Config SecretReader secrets.SecretStorage // contains filtered or unexported fields }
func NewKubernetes ¶
func NewKubernetes() (*Kubernetes, error)
func (*Kubernetes) CA ¶
func (k *Kubernetes) CA() ([]byte, error)
func (*Kubernetes) Endpoint ¶
func (k *Kubernetes) Endpoint() (string, error)
Find a suitable Endpoint to use by inspecting the engine's Service objects
func (*Kubernetes) Name ¶
func (k *Kubernetes) Name() (string, error)
func (*Kubernetes) Namespace ¶
func (k *Kubernetes) Namespace() (string, error)
func (*Kubernetes) Service ¶ added in v0.3.3
func (k *Kubernetes) Service(component string) (*corev1.Service, error)
Find the first suitable Service, filtering on infrahq.com/component
func (*Kubernetes) UpdateRoles ¶
func (k *Kubernetes) UpdateRoles(roles []api.Role) error
UpdateRoles converts API roles to role-bindings in the current cluster
type RoleBinding ¶
Click to show internal directories.
Click to hide internal directories.