Documentation ¶
Index ¶
Constants ¶
const ( BuilderInfoName = "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 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.golang.ir/sigs.k8s.io/[email protected]/pkg/reconcile
func (*BuildWorkloadReconciler) SetupWithManager ¶
func (r *BuildWorkloadReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type BuilderInfoReconciler ¶ added in v0.3.0
type BuilderInfoReconciler struct { client.Client Scheme *runtime.Scheme Log logr.Logger ClusterBuilderName string RootNamespaceName string }
BuilderInfoReconciler reconciles a BuilderInfo object
func NewBuilderInfoReconciler ¶ added in v0.3.0
func (*BuilderInfoReconciler) Reconcile ¶ added in v0.3.0
func (r *BuilderInfoReconciler) 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 BuilderInfo 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.golang.ir/sigs.k8s.io/[email protected]/pkg/reconcile
func (*BuilderInfoReconciler) SetupWithManager ¶ added in v0.3.0
func (r *BuilderInfoReconciler) 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