Documentation ¶
Index ¶
- func EnsureKubeconfigSecret(ctx context.Context, kubeconfig, name string, client kubernetes.Interface) (*corev1.Secret, bool, error)
- func FindRemoteKubeconfig(ctx context.Context, kubeClient *kubernetes.Clientset, remoteNamespace string, ...) (string, error)
- func ParseRemoteKubeconfig(kubeconfig []byte) (host string, ns string, err error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureKubeconfigSecret ¶ added in v0.0.14
func EnsureKubeconfigSecret(ctx context.Context, kubeconfig, name string, client kubernetes.Interface) (*corev1.Secret, bool, error)
EnsureKubeconfigSecret create a secret which contains the service binding authenticated data such as the binding session id and the kubeconfig of the service provider cluster. If it is pre-existing, the kubeconfig is updated.
func FindRemoteKubeconfig ¶ added in v0.0.14
Types ¶
type Options ¶
type Options struct { // OptOutOfDefaultKubectlFlags indicates that the standard kubectl/kubeconfig-related flags should not be bound // by default. OptOutOfDefaultKubectlFlags bool // Kubeconfig specifies kubeconfig file(s). Kubeconfig string // KubectlOverrides stores the extra client connection fields, such as context, user, etc. KubectlOverrides *clientcmd.ConfigOverrides genericclioptions.IOStreams // ClientConfig is the resolved cliendcmd.ClientConfig based on the client connection flags. This is only valid // after calling Complete. ClientConfig clientcmd.ClientConfig }
Options contains options common to most CLI plugins.
func NewOptions ¶
func NewOptions(streams genericclioptions.IOStreams) *Options
NewOptions provides an instance of Options with default values.
Click to show internal directories.
Click to hide internal directories.