Documentation ¶
Index ¶
- func ImageWithDigest(image string, imageDigest string) (string, error)
- type DeploymentReconciler
- type EachObjectChunker
- type GenericClusterObjectSet
- type GenericClusterObjectSetList
- type GenericClusterPackage
- type GenericObjectSet
- type GenericObjectSetList
- type GenericPackage
- type NoOpChunker
- type PackageDeployer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeploymentReconciler ¶
type DeploymentReconciler struct {
// contains filtered or unexported fields
}
DeploymentReconciler creates or updates an (Cluster)ObjectDeployment. Will respect the given chunking strategy to create multiple ObjectSlices.
func (*DeploymentReconciler) Reconcile ¶
func (r *DeploymentReconciler) Reconcile( ctx context.Context, desiredDeploy adapters.ObjectDeploymentAccessor, chunker objectChunker, ) error
type EachObjectChunker ¶
type EachObjectChunker struct{}
NoOpChunker implements objectChunker, by putting every object into it's own ObjectSlice.
func (*EachObjectChunker) Chunk ¶
func (c *EachObjectChunker) Chunk(_ context.Context, phase *corev1alpha1.ObjectSetTemplatePhase) ([][]corev1alpha1.ObjectSetObject, error)
type GenericClusterObjectSet ¶
type GenericClusterObjectSet struct{ corev1alpha1.ClusterObjectSet }
func (*GenericClusterObjectSet) ClientObject ¶
func (a *GenericClusterObjectSet) ClientObject() client.Object
func (*GenericClusterObjectSet) GetPhases ¶
func (a *GenericClusterObjectSet) GetPhases() []corev1alpha1.ObjectSetTemplatePhase
type GenericClusterObjectSetList ¶
type GenericClusterObjectSetList struct {
corev1alpha1.ClusterObjectSetList
}
func (*GenericClusterObjectSetList) ClientObjectList ¶
func (a *GenericClusterObjectSetList) ClientObjectList() client.ObjectList
func (*GenericClusterObjectSetList) GetItems ¶
func (a *GenericClusterObjectSetList) GetItems() []genericObjectSet
type GenericClusterPackage ¶
type GenericClusterPackage struct{ corev1alpha1.ClusterPackage }
func (*GenericClusterPackage) ClientObject ¶
func (a *GenericClusterPackage) ClientObject() client.Object
func (*GenericClusterPackage) GetConditions ¶
func (a *GenericClusterPackage) GetConditions() *[]metav1.Condition
func (*GenericClusterPackage) TemplateContext ¶
func (a *GenericClusterPackage) TemplateContext() manifestsv1alpha1.TemplateContext
type GenericObjectSet ¶
type GenericObjectSet struct{ corev1alpha1.ObjectSet }
func (*GenericObjectSet) ClientObject ¶
func (a *GenericObjectSet) ClientObject() client.Object
func (*GenericObjectSet) GetPhases ¶
func (a *GenericObjectSet) GetPhases() []corev1alpha1.ObjectSetTemplatePhase
type GenericObjectSetList ¶
type GenericObjectSetList struct{ corev1alpha1.ObjectSetList }
func (*GenericObjectSetList) ClientObjectList ¶
func (a *GenericObjectSetList) ClientObjectList() client.ObjectList
func (*GenericObjectSetList) GetItems ¶
func (a *GenericObjectSetList) GetItems() []genericObjectSet
type GenericPackage ¶
type GenericPackage struct{ corev1alpha1.Package }
func (*GenericPackage) ClientObject ¶
func (a *GenericPackage) ClientObject() client.Object
func (*GenericPackage) GetConditions ¶
func (a *GenericPackage) GetConditions() *[]metav1.Condition
func (*GenericPackage) TemplateContext ¶
func (a *GenericPackage) TemplateContext() manifestsv1alpha1.TemplateContext
type NoOpChunker ¶
type NoOpChunker struct{}
NoOpChunker implements objectChunker, but does not actually chunk.
func (*NoOpChunker) Chunk ¶
func (c *NoOpChunker) Chunk(context.Context, *corev1alpha1.ObjectSetTemplatePhase) ([][]corev1alpha1.ObjectSetObject, error)
type PackageDeployer ¶
type PackageDeployer struct {
// contains filtered or unexported fields
}
PackageDeployer loads package contents from file, wraps it into an ObjectDeployment and deploys it.
func NewClusterPackageDeployer ¶
func NewClusterPackageDeployer(c client.Client, scheme *runtime.Scheme) *PackageDeployer
Returns a new cluster-scoped loader for the ClusterPackage API.
func NewPackageDeployer ¶
func NewPackageDeployer(c client.Client, scheme *runtime.Scheme) *PackageDeployer
Returns a new namespace-scoped loader for the Package API.
func (*PackageDeployer) Load ¶
func (l *PackageDeployer) Load(ctx context.Context, packageKey client.ObjectKey, files packagecontent.Files) error
Click to show internal directories.
Click to hide internal directories.