Documentation
¶
Index ¶
- func ComputeInputHash(spec v1alpha1.KubernetesApplySpec, ...) (string, error)
- type Reconciler
- func (r *Reconciler) CreateBuilder(mgr ctrl.Manager) (*builder.Builder, error)
- func (r *Reconciler) ForceApply(ctx context.Context, spec v1alpha1.KubernetesApplySpec, ...) v1alpha1.KubernetesApplyStatus
- func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeInputHash ¶
func ComputeInputHash(spec v1alpha1.KubernetesApplySpec, imageMaps map[types.NamespacedName]*v1alpha1.ImageMap) (string, error)
Compute the hash of all the inputs we fed into this apply.
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
func NewReconciler ¶
func NewReconciler(ctrlClient ctrlclient.Client, k8sClient k8s.Client, scheme *runtime.Scheme, dkc build.DockerKubeConnection, kubeContext k8s.KubeContext, st store.RStore) *Reconciler
func (*Reconciler) CreateBuilder ¶
func (*Reconciler) ForceApply ¶
func (r *Reconciler) ForceApply( ctx context.Context, spec v1alpha1.KubernetesApplySpec, imageMaps map[types.NamespacedName]*v1alpha1.ImageMap) v1alpha1.KubernetesApplyStatus
Inject the images into the YAML and apply it to the cluster, unconditionally.
We expose this as a public method as a hack! Currently, in Tilt, BuildController handles dependencies between resources. The API server doesn't know about build dependencies yet. So Tiltfile-owned resources are applied manually, rather than going through the normal reconcile system.
Click to show internal directories.
Click to hide internal directories.