Documentation ¶
Index ¶
- Variables
- func AssertTrackingConfig(namespace, name string) func(*testing.T, *rtesting.TableRow)
- func AssertTrackingObject(gvk schema.GroupVersionKind, namespace, name string) func(*testing.T, *rtesting.TableRow)
- func AssertTrackingRevision(namespace, name string) func(*testing.T, *rtesting.TableRow)
- func MakeFactory(ctor Ctor) rtesting.Factory
- func NewScheme() *runtime.Scheme
- func ToUnstructured(t *testing.T, sch *runtime.Scheme, objs []runtime.Object) (us []runtime.Object)
- type Ctor
- type Listers
- func (l *Listers) GetCMCertificateLister() certmanagerlisters.CertificateLister
- func (l *Listers) GetCMCertificateObjects() []runtime.Object
- func (l *Listers) GetCMChallengeLister() acmelisters.ChallengeLister
- func (l *Listers) GetCMClusterIssuerLister() certmanagerlisters.ClusterIssuerLister
- func (l *Listers) GetCachingObjects() []runtime.Object
- func (l *Listers) GetCertificateLister() networkinglisters.CertificateLister
- func (l *Listers) GetConfigMapLister() corev1listers.ConfigMapLister
- func (l *Listers) GetConfigurationLister() servinglisters.ConfigurationLister
- func (l *Listers) GetDeploymentLister() appsv1listers.DeploymentLister
- func (l *Listers) GetEndpointsLister() corev1listers.EndpointsLister
- func (l *Listers) GetGatewayLister() istiolisters.GatewayLister
- func (l *Listers) GetHorizontalPodAutoscalerLister() autoscalingv2beta1listers.HorizontalPodAutoscalerLister
- func (l *Listers) GetImageLister() cachinglisters.ImageLister
- func (l *Listers) GetIngressLister() networkinglisters.IngressLister
- func (l *Listers) GetIstioObjects() []runtime.Object
- func (l *Listers) GetK8sServiceLister() corev1listers.ServiceLister
- func (l *Listers) GetKnCertificateLister() networkinglisters.CertificateLister
- func (l *Listers) GetKubeObjects() []runtime.Object
- func (l *Listers) GetMetricLister() palisters.MetricLister
- func (l *Listers) GetNamespaceLister() corev1listers.NamespaceLister
- func (l *Listers) GetPodAutoscalerLister() palisters.PodAutoscalerLister
- func (l *Listers) GetPodsLister() corev1listers.PodLister
- func (l *Listers) GetRevisionLister() servinglisters.RevisionLister
- func (l *Listers) GetRouteLister() servinglisters.RouteLister
- func (l *Listers) GetSecretLister() corev1listers.SecretLister
- func (l *Listers) GetServerlessServiceLister() networkinglisters.ServerlessServiceLister
- func (l *Listers) GetServiceLister() servinglisters.ServiceLister
- func (l *Listers) GetServingObjects() []runtime.Object
- func (l *Listers) GetVirtualServiceLister() istiolisters.VirtualServiceLister
- func (l *Listers) IndexerFor(obj runtime.Object) cache.Indexer
- func (*Listers) NewScheme() *runtime.Scheme
Constants ¶
This section is empty.
Variables ¶
var TrackerKey key = struct{}{}
TrackerKey is used to looking a FakeTracker in a context.Context
Functions ¶
func AssertTrackingConfig ¶ added in v0.10.0
AssertTrackingConfig will ensure the provided Configuration is being tracked
func AssertTrackingObject ¶ added in v0.10.0
func AssertTrackingObject(gvk schema.GroupVersionKind, namespace, name string) func(*testing.T, *rtesting.TableRow)
AssertTrackingObject will ensure the following objects are being tracked
func AssertTrackingRevision ¶ added in v0.10.0
AssertTrackingRevision will ensure the provided Revision is being tracked
func MakeFactory ¶
MakeFactory creates a reconciler factory with fake clients and controller created by `ctor`.
func ToUnstructured ¶
ToUnstructured takes a list of k8s resources and converts them to Unstructured objects. We must pass objects as Unstructured to the dynamic client fake, or it won't handle them properly.
Types ¶
type Ctor ¶
type Ctor func(context.Context, *Listers, configmap.Watcher) controller.Reconciler
Ctor functions create a k8s controller with given params.
type Listers ¶
type Listers struct {
// contains filtered or unexported fields
}
func NewListers ¶
func (*Listers) GetCMCertificateLister ¶
func (l *Listers) GetCMCertificateLister() certmanagerlisters.CertificateLister
GetCMCertificateLister gets lister for Cert Manager Certificate resource.
func (*Listers) GetCMCertificateObjects ¶
GetCMCertificateObjects gets a list of Cert-Manager Certificate objects.
func (*Listers) GetCMChallengeLister ¶ added in v0.12.0
func (l *Listers) GetCMChallengeLister() acmelisters.ChallengeLister
GetCMChallengeLister gets lister for Cert Manager Challenge resource.
func (*Listers) GetCMClusterIssuerLister ¶ added in v0.12.0
func (l *Listers) GetCMClusterIssuerLister() certmanagerlisters.ClusterIssuerLister
GetCMClusterIssuerLister gets lister for Cert Manager ClusterIssuer resource.
func (*Listers) GetCachingObjects ¶
func (*Listers) GetCertificateLister ¶
func (l *Listers) GetCertificateLister() networkinglisters.CertificateLister
GetCertificateLister get lister for Certificate resource.
func (*Listers) GetConfigMapLister ¶
func (l *Listers) GetConfigMapLister() corev1listers.ConfigMapLister
func (*Listers) GetConfigurationLister ¶
func (l *Listers) GetConfigurationLister() servinglisters.ConfigurationLister
func (*Listers) GetDeploymentLister ¶
func (l *Listers) GetDeploymentLister() appsv1listers.DeploymentLister
func (*Listers) GetEndpointsLister ¶
func (l *Listers) GetEndpointsLister() corev1listers.EndpointsLister
func (*Listers) GetGatewayLister ¶
func (l *Listers) GetGatewayLister() istiolisters.GatewayLister
GetGatewayLister gets lister for Istio Gateway resource.
func (*Listers) GetHorizontalPodAutoscalerLister ¶
func (l *Listers) GetHorizontalPodAutoscalerLister() autoscalingv2beta1listers.HorizontalPodAutoscalerLister
GetHorizontalPodAutoscalerLister gets lister for HorizontalPodAutoscaler resources.
func (*Listers) GetImageLister ¶
func (l *Listers) GetImageLister() cachinglisters.ImageLister
func (*Listers) GetIngressLister ¶ added in v0.8.0
func (l *Listers) GetIngressLister() networkinglisters.IngressLister
GetIngressLister get lister for Ingress resource.
func (*Listers) GetIstioObjects ¶ added in v0.11.0
func (*Listers) GetK8sServiceLister ¶
func (l *Listers) GetK8sServiceLister() corev1listers.ServiceLister
func (*Listers) GetKnCertificateLister ¶
func (l *Listers) GetKnCertificateLister() networkinglisters.CertificateLister
GetKnCertificateLister gets lister for Knative Certificate resource.
func (*Listers) GetKubeObjects ¶
func (*Listers) GetMetricLister ¶ added in v0.8.0
func (l *Listers) GetMetricLister() palisters.MetricLister
GetMetricLister returns a lister for the Metric objects.
func (*Listers) GetNamespaceLister ¶ added in v0.9.0
func (l *Listers) GetNamespaceLister() corev1listers.NamespaceLister
GetNamespaceLister gets lister for Namespace resource.
func (*Listers) GetPodAutoscalerLister ¶
func (l *Listers) GetPodAutoscalerLister() palisters.PodAutoscalerLister
func (*Listers) GetPodsLister ¶ added in v0.13.0
func (l *Listers) GetPodsLister() corev1listers.PodLister
GetPodsLister gets lister for pods.
func (*Listers) GetRevisionLister ¶
func (l *Listers) GetRevisionLister() servinglisters.RevisionLister
func (*Listers) GetRouteLister ¶
func (l *Listers) GetRouteLister() servinglisters.RouteLister
func (*Listers) GetSecretLister ¶
func (l *Listers) GetSecretLister() corev1listers.SecretLister
func (*Listers) GetServerlessServiceLister ¶
func (l *Listers) GetServerlessServiceLister() networkinglisters.ServerlessServiceLister
GetServerlessServiceLister returns a lister for the ServerlessService objects.
func (*Listers) GetServiceLister ¶
func (l *Listers) GetServiceLister() servinglisters.ServiceLister
func (*Listers) GetServingObjects ¶
func (*Listers) GetVirtualServiceLister ¶
func (l *Listers) GetVirtualServiceLister() istiolisters.VirtualServiceLister
func (*Listers) IndexerFor ¶
IndexerFor returns the indexer for the given object.