Documentation ¶
Index ¶
- type ClusterRoleNamespace
- type Kubernetes
- func (k *Kubernetes) CA() ([]byte, error)
- func (k *Kubernetes) Endpoint() (string, int, error)
- func (k *Kubernetes) IsServiceTypeClusterIP() (bool, error)
- func (k *Kubernetes) Name() (string, string, error)
- func (k *Kubernetes) Namespace() (string, error)
- func (k *Kubernetes) Namespaces() ([]string, error)
- func (k *Kubernetes) Service(component string) (*corev1.Service, error)
- func (k *Kubernetes) UpdateClusterRoleBindings(subjects map[string][]rbacv1.Subject) error
- func (k *Kubernetes) UpdateRoleBindings(subjects map[ClusterRoleNamespace][]rbacv1.Subject) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterRoleNamespace ¶ added in v0.5.0
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) CA ¶
func (k *Kubernetes) CA() ([]byte, error)
func (*Kubernetes) Endpoint ¶
func (k *Kubernetes) Endpoint() (string, int, error)
Find a suitable Endpoint to use by inspecting the engine's Service objects
func (*Kubernetes) IsServiceTypeClusterIP ¶ added in v0.5.9
func (k *Kubernetes) IsServiceTypeClusterIP() (bool, error)
func (*Kubernetes) Namespace ¶
func (k *Kubernetes) Namespace() (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
Click to show internal directories.
Click to hide internal directories.