Documentation ¶
Index ¶
- Constants
- func ApplyGivenInitManifests(ctx context.Context, vClient client.Client, vConfig *rest.Config, ...) error
- func ManifestStringToUnstructuredArray(out, defaultNamespace string) ([]*unstructured.Unstructured, error)
- func RegisterInitManifestsController(controllerCtx *synccontext.ControllerContext) error
- type ChartStatus
- type Deployer
- func (r *Deployer) DeployHelmCharts(ctx context.Context, vConfig *config.VirtualClusterConfig) error
- func (r *Deployer) DeployInitManifests(ctx context.Context, vConfig *config.VirtualClusterConfig) error
- func (r *Deployer) ProcessHelmChart(ctx context.Context, vConfig *config.VirtualClusterConfig, ...) error
- func (r *Deployer) ProcessInitManifests(ctx context.Context, vConfig *config.VirtualClusterConfig, ...) error
- func (r *Deployer) UpdateConfigMap(ctx context.Context, lastError error, vConfig *config.VirtualClusterConfig, ...) error
- type InitObjectStatus
- type KObject
- type ManifestsStatus
- type Status
- type UnstructuredMap
Constants ¶
View Source
const ( StatusFailed InitObjectStatus = "Failed" StatusSuccess InitObjectStatus = "Success" StatusPending InitObjectStatus = "Pending" StatusKey = "vcluster.loft.sh/status" DefaultTimeOut = 180 * time.Second HelmWorkDir = "/tmp" ChartPullError = "ChartPullFailed" InstallError = "InstallFailed" UpgradeError = "UpgradeFailed" UninstallError = "UninstallFailed" VClusterDeployConfigMap = "vcluster-deploy" VClusterDeployConfigMapNamespace = "kube-system" )
Variables ¶
This section is empty.
Functions ¶
func ApplyGivenInitManifests ¶
func ManifestStringToUnstructuredArray ¶
func ManifestStringToUnstructuredArray(out, defaultNamespace string) ([]*unstructured.Unstructured, error)
func RegisterInitManifestsController ¶
func RegisterInitManifestsController(controllerCtx *synccontext.ControllerContext) error
Types ¶
type ChartStatus ¶
type ChartStatus struct { Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` Phase string `json:"phase,omitempty"` Reason string `json:"reason,omitempty"` Message string `json:"message,omitempty"` LastAppliedChartConfigHash string `json:"lastAppliedChartConfigHash,omitempty"` }
type Deployer ¶
func (*Deployer) DeployHelmCharts ¶
func (*Deployer) DeployInitManifests ¶
func (*Deployer) ProcessHelmChart ¶
func (*Deployer) ProcessInitManifests ¶
type InitObjectStatus ¶
type InitObjectStatus string
type KObject ¶
func UnstructuredToKObject ¶
func UnstructuredToKObject(obj unstructured.Unstructured) KObject
func (*KObject) Equals ¶
func (k *KObject) Equals(obj unstructured.Unstructured) bool
type ManifestsStatus ¶
type Status ¶
type Status struct { Phase string `json:"phase,omitempty"` Reason string `json:"reason,omitempty"` Message string `json:"message,omitempty"` Charts []ChartStatus `json:"charts,omitempty"` Manifests ManifestsStatus `json:"manifests,omitempty"` }
func ParseStatus ¶
type UnstructuredMap ¶
type UnstructuredMap map[KObject]*unstructured.Unstructured
Click to show internal directories.
Click to hide internal directories.