Documentation
¶
Index ¶
- Variables
- func ApplyManifests(ctx context.Context, logger *slog.Logger, ...) error
- func ApplySecret(ctx context.Context, kubeCli kubernetes.Interface, ...) error
- func BootstrapTokenManifest(id, token string) string
- func ClientAndConfigFromBytes(b []byte) (*kubernetes.Clientset, *rest.Config, error)
- func GenerateBootstrapIDAndToken() (string, string, error)
- func GetRootKubernetesCA(k kubernetes.Interface) ([]byte, error)
- func Kubectl(env []string, kubeconfig string) func(context.Context) *exec.Cmd
- func KubectlCmd(ctx context.Context, logger *slog.Logger, ...) error
- type BootstrapToken
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBootstrapTokenNotFound = errors.New("bootstrap token not found")
ErrBootstrapTokenNotFound is returned by GetBootstrapToken when no matching bootstrap token secret exists in the cluster.
Functions ¶
func ApplyManifests ¶
func ApplySecret ¶
func ApplySecret(ctx context.Context, kubeCli kubernetes.Interface, s *v1.SecretApplyConfiguration) error
func BootstrapTokenManifest ¶
func GetRootKubernetesCA ¶
func GetRootKubernetesCA(k kubernetes.Interface) ([]byte, error)
Types ¶
type BootstrapToken ¶
func GetBootstrapToken ¶
func GetBootstrapToken(ctx context.Context, kubeCli kubernetes.Interface) (*BootstrapToken, error)
func (BootstrapToken) String ¶
func (t BootstrapToken) String() string
Click to show internal directories.
Click to hide internal directories.