Documentation
¶
Index ¶
- Constants
- func DiscoverHostFromService(ctx context.Context, client client.Client, vCluster *v1alpha1.VCluster) (string, error)
- func EnsureFinalizer(ctx context.Context, client client.Client, obj client.Object, finalizer string) error
- func GetVClusterKubeConfig(ctx context.Context, clusterClient client.Client, vCluster *v1alpha1.VCluster) (*api.Config, error)
- func RemoveFinalizer(ctx context.Context, client client.Client, obj client.Object, finalizer string) error
- type ClientConfigGetter
- type Credentials
- type HTTPClientGetter
- type VClusterReconciler
Constants ¶
View Source
const ( // A finalizer that is added to the VCluster CR to ensure that helm delete is executed. CleanupFinalizer = "vcluster.loft.sh/cleanup" DefaultControlPlanePort = 443 // KubeconfigDataName is the key used to store a Kubeconfig in the secret's data field. KubeconfigDataName = "value" )
Variables ¶
This section is empty.
Functions ¶
func DiscoverHostFromService ¶
func EnsureFinalizer ¶
func GetVClusterKubeConfig ¶
Types ¶
type ClientConfigGetter ¶
type ClientConfigGetter interface {
NewForConfig(restConfig *rest.Config) (kubernetes.Interface, error)
}
func NewClientConfigGetter ¶
func NewClientConfigGetter() ClientConfigGetter
type Credentials ¶
func GetVClusterCredentials ¶
type HTTPClientGetter ¶
type HTTPClientGetter interface {
ClientFor(r http.RoundTripper, timeout time.Duration) *http.Client
}
func NewHTTPClientGetter ¶
func NewHTTPClientGetter() HTTPClientGetter
type VClusterReconciler ¶
type VClusterReconciler struct { client.Client HelmClient helm.Client HelmSecrets *helm.Secrets Log logr.Logger Scheme *runtime.Scheme ClientConfigGetter ClientConfigGetter HTTPClientGetter HTTPClientGetter // contains filtered or unexported fields }
VClusterReconciler reconciles a VCluster object
func (*VClusterReconciler) SetupWithManager ¶
func (r *VClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.