Documentation
¶
Index ¶
- func FetchOperatorDeployment(c client.Client, log *logrus.Logger) *appsv1.Deployment
- type Asset
- type Manager
- func (m *Manager) Deploy(ctx context.Context) error
- func (m *Manager) DeployConfigMaps(ctx context.Context, setKernelVar bool) error
- func (m *Manager) LoadFromConfigMap(ctx context.Context) error
- func (m *Manager) LoadFromConfigMapAndDeploy(ctx context.Context) error
- func (m *Manager) LoadFromFile(ctx context.Context, setKernelVar bool) error
- type ReadinessPollConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchOperatorDeployment ¶
Types ¶
type Asset ¶
type Asset struct {
// Path contains a filepath to the asset
Path string
ConfigMapName string
// BlockingReadiness stores polling configuration.
BlockingReadiness ReadinessPollConfig
// contains filtered or unexported fields
}
Asset represents a set of Kubernetes objects to be deployed.
type Manager ¶
type Manager struct {
Client client.Client
Namespace string
Log *logrus.Logger
Assets []Asset
// Prefix used to gather environment variables for the templating the assets
EnvPrefix string
// Can be removed after sigs.k8s.io/controller-runtime v0.7.0 release where client.Scheme() is available
Scheme *runtime.Scheme
Owner metav1.Object
}
Manager loads & deploys assets specified in the Asset field
func (*Manager) DeployConfigMaps ¶
DeployConfigMaps issues an asset load from the path and then deployment
func (*Manager) LoadFromConfigMap ¶
LoadFromConfigMap loads given asset from the ConfigMap
func (*Manager) LoadFromConfigMapAndDeploy ¶
LoadFromConfigMapAndDeploy issues an asset load from the ConfigMap and then deployment
type ReadinessPollConfig ¶
type ReadinessPollConfig struct {
// How many times readiness should be checked before returning error
Retries int
// Delay between retries
Delay time.Duration
}
ReadinessPollConfig stores config for waiting block Use when deployment of an asset should wait until the asset is ready
Click to show internal directories.
Click to hide internal directories.