Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver interface { // LookupMapping returns the mapping template for the workload. Typically a ClusterWorkloadResourceMapping is defined for the workload's // fully qualified resource `{resource}.{group}`. The workload's version is either directly matched, or the wildcard version `*` // mapping template is returned. If no explicit mapping is found, a mapping appropriate for a PodSpecable resource may be used. LookupMapping(ctx context.Context, workload runtime.Object) (*servicebindingv1beta1.ClusterWorkloadResourceMappingTemplate, error) // LookupBindingSecret returns the binding secret name exposed by the service following the Provisioned Service duck-type // (`.status.binding.name`). If a direction binding is used (where the referenced service is itself a Secret) the referenced Secret is // returned without a lookup. LookupBindingSecret(ctx context.Context, serviceRef corev1.ObjectReference) (string, error) // LookupWorkloads returns the referenced objects. Often a unstructured Object is used to sidestep issues with schemes and registered // types. The selector is mutually exclusive with the reference name. LookupWorkloads(ctx context.Context, workloadRef corev1.ObjectReference, selector *metav1.LabelSelector) ([]runtime.Object, error) }
func New ¶
func New(config reconcilers.Config) Resolver
New creates a new resolver backed by a reconciler-runtime config
Click to show internal directories.
Click to hide internal directories.