kubernetes

package
v0.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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

type RoleBinding struct {
	Role  string
	Users []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL