Documentation
¶
Index ¶
- Constants
- func IsInvalidConfig(err error) bool
- func IsNotReady(err error) bool
- func IsWrongType(err error) bool
- type Config
- type Image
- type Resource
- func (r *Resource) ApplyCreateChange(ctx context.Context, obj, createChange interface{}) error
- func (r *Resource) ApplyDeleteChange(ctx context.Context, obj, deleteChange interface{}) error
- func (r *Resource) ApplyUpdateChange(ctx context.Context, obj, updateChange interface{}) error
- func (r *Resource) GetCurrentState(ctx context.Context, obj interface{}) (interface{}, error)
- func (r *Resource) GetDesiredState(ctx context.Context, obj interface{}) (interface{}, error)
- func (r *Resource) Name() string
- func (r *Resource) NewDeletePatch(ctx context.Context, obj, currentState, desiredState interface{}) (*controller.Patch, error)
- func (r *Resource) NewUpdatePatch(ctx context.Context, obj, currentState, desiredState interface{}) (*controller.Patch, error)
- type ResourceState
- type Tiller
- type Values
Constants ¶
View Source
const (
// Name is the identifier of the resource.
Name = "chartoperatorv17"
)
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Config ¶
type Config struct { ApprClient apprclient.Interface BaseClusterConfig cluster.Config ClusterIPRange string Fs afero.Fs G8sClient versioned.Interface K8sClient kubernetes.Interface Logger micrologger.Logger ProjectName string RegistryDomain string Tenant tenantcluster.Interface ToClusterGuestConfigFunc func(obj interface{}) (v1alpha1.ClusterGuestConfig, error) ToClusterObjectMetaFunc func(obj interface{}) (metav1.ObjectMeta, error) }
Config represents the configuration used to create a new chartoperator resource.
type Image ¶
type Image struct {
Registry string `json:"registry"`
}
Image holds the image settings for chart-operator chart.
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource implements the chartoperator resource.
func (*Resource) ApplyCreateChange ¶
func (*Resource) ApplyDeleteChange ¶
func (*Resource) ApplyUpdateChange ¶
func (*Resource) GetCurrentState ¶
GetCurrentState gets the state of the chart in the guest cluster.
func (*Resource) GetDesiredState ¶
GetDesiredState returns the chart that should be installed including the release version it gets from the CNR channel.
func (*Resource) NewDeletePatch ¶
func (*Resource) NewUpdatePatch ¶
type ResourceState ¶
type ResourceState struct { // ChartName is the name of the Helm Chart. // e.g. chart-operator-chart ChartName string // ChartValues are the values to be passed to the chart-operator Helm Chart. // e.g. chart-operator-chart ChartValues Values // ReleaseName is the name of the Helm release when the chart is deployed. // e.g. chart-operator ReleaseName string // ReleaseStatus is the status of the Helm Release. // e.g. DEPLOYED ReleaseStatus string // ReleaseVersion is the version of the Helm Chart to be deployed. // e.g. 0.1.2 ReleaseVersion string }
ResourceState holds the state of the chart to be reconciled.
Click to show internal directories.
Click to hide internal directories.