kubernetes

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CA added in v0.5.12

func CA() ([]byte, error)

func Namespace added in v0.5.12

func Namespace() (string, error)

Types

type ClusterRoleNamespace added in v0.5.0

type ClusterRoleNamespace struct {
	ClusterRole string
	Namespace   string
}

namespaceRole is used as a tuple to pair namespaces and grants as a map key

type Kubernetes

type Kubernetes struct {
	Config       *rest.Config
	SecretReader secrets.SecretStorage
}

func NewKubernetes

func NewKubernetes() (*Kubernetes, error)

func (*Kubernetes) Endpoint

func (k *Kubernetes) Endpoint() (string, int, error)

Find a suitable Endpoint to use by inspecting Service objects

func (*Kubernetes) IsServiceTypeClusterIP added in v0.5.9

func (k *Kubernetes) IsServiceTypeClusterIP() (bool, error)

func (*Kubernetes) Name

func (k *Kubernetes) Name() (string, string, error)

func (*Kubernetes) Namespaces added in v0.5.0

func (k *Kubernetes) Namespaces() ([]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) UpdateClusterRoleBindings added in v0.5.0

func (k *Kubernetes) UpdateClusterRoleBindings(subjects map[string][]rbacv1.Subject) error

UpdateClusterRoleBindings generates ClusterRoleBindings for GrantMappings

func (*Kubernetes) UpdateRoleBindings added in v0.5.0

func (k *Kubernetes) UpdateRoleBindings(subjects map[ClusterRoleNamespace][]rbacv1.Subject) error

Jump to

Keyboard shortcuts

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