Documentation
¶
Index ¶
Constants ¶
const ( BuildReconcilerInfoName = "kpack-image-builder" ReadyConditionType = "Ready" )
const (
BuildWorkloadLabelKey = "korifi.cloudfoundry.org/build-workload-name"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildReconcilerInfoReconciler ¶ added in v0.2.0
type BuildReconcilerInfoReconciler struct {
client.Client
Scheme *runtime.Scheme
Log logr.Logger
ClusterBuilderName string
RootNamespaceName string
}
BuildReconcilerInfoReconciler reconciles a BuildReconcilerInfo object
func NewBuildReconcilerInfoReconciler ¶ added in v0.2.0
func (*BuildReconcilerInfoReconciler) Reconcile ¶ added in v0.2.0
func (r *BuildReconcilerInfoReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the BuildReconcilerInfo object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.11.0/pkg/reconcile
func (*BuildReconcilerInfoReconciler) SetupWithManager ¶ added in v0.2.0
func (r *BuildReconcilerInfoReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type BuildWorkloadReconciler ¶
type BuildWorkloadReconciler struct {
client.Client
Scheme *runtime.Scheme
Log logr.Logger
ControllerConfig *config.ControllerConfig
RegistryAuthFetcher RegistryAuthFetcher
RegistryCAPath string
ImageProcessFetcher ImageProcessFetcher
}
BuildWorkloadReconciler reconciles a BuildWorkload object
func NewBuildWorkloadReconciler ¶ added in v0.2.0
func NewBuildWorkloadReconciler(c client.Client, scheme *runtime.Scheme, log logr.Logger, config *config.ControllerConfig, registryAuthFetcher RegistryAuthFetcher, registryCAPath string, imageProcessFetcher ImageProcessFetcher) *BuildWorkloadReconciler
func (*BuildWorkloadReconciler) Reconcile ¶
func (r *BuildWorkloadReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.11.0/pkg/reconcile
func (*BuildWorkloadReconciler) SetupWithManager ¶
func (r *BuildWorkloadReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ImageProcessFetcher ¶
type ImageProcessFetcher func(imageRef string, credsOption remote.Option, transport remote.Option) ([]korifiv1alpha1.ProcessType, []int32, error)
type RegistryAuthFetcher ¶
func NewRegistryAuthFetcher ¶
func NewRegistryAuthFetcher(privilegedK8sClient k8sclient.Interface) RegistryAuthFetcher