Documentation
¶
Index ¶
- func AsLearner(member *etcdserverpb.Member) *etcdserverpb.Member
- func AssertBundleCorrectness(t *testing.T, secrets []corev1.Secret, bundles []corev1.ConfigMap)
- func AssertCertificateCorrectness(t *testing.T, secrets []corev1.Secret)
- func AssertMatchingBundles(t *testing.T, expectedBundle []*x509.Certificate, ...)
- func AssertNodeSpecificCertificates(t *testing.T, node *corev1.Node, secrets []corev1.Secret)
- func BootstrapConfigMap(configs ...func(bootstrap *corev1.ConfigMap)) *corev1.ConfigMap
- func ClusterConfigConfigMap(maxLearner int) *corev1.ConfigMap
- func DefaultEtcdMembers() []*etcdserverpb.Member
- func EndpointsConfigMap(configs ...func(endpoints *corev1.ConfigMap)) *corev1.ConfigMap
- func FakeClusterVersionLister(t *testing.T, clusterVersion *configv1.ClusterVersion) configv1listers.ClusterVersionLister
- func FakeConfigMap(namespace string, name string, data map[string]string) *corev1.ConfigMap
- func FakeEtcdBootstrapMember(member int) *etcdserverpb.Member
- func FakeEtcdMember(member int, etcdMock []*mockserver.MockServer) *etcdserverpb.Member
- func FakeEtcdMemberWithoutServer(member int) *etcdserverpb.Member
- func FakeInfrastructureTopology(topologyMode configv1.TopologyMode) *configv1.Infrastructure
- func FakeNetwork(isIPv6 bool) *configv1.Network
- func FakeNetworkLister(t *testing.T, isIPv6 bool) configv1listers.NetworkLister
- func FakeNode(name string, configs ...func(node *corev1.Node)) *corev1.Node
- func FakePod(name string, configs ...func(node *corev1.Pod)) *corev1.Pod
- func FakeSecret(namespace, name string, cert map[string][]byte) *corev1.Secret
- func FakeSecretWithAnnotations(namespace, name string, cert map[string][]byte, annotations map[string]string) *corev1.Secret
- func MustAbsPath(path string) string
- func StaticPodOperatorStatus(configs ...func(status *operatorv1.StaticPodOperatorStatus)) *operatorv1.StaticPodOperatorStatus
- func WithAllocatableStorage(allocatable int64) func(*corev1.Node)
- func WithBootstrapIP(ip string) func(*corev1.ConfigMap)
- func WithBootstrapStatus(status string) func(*corev1.ConfigMap)
- func WithCreationTimestamp(time metav1.Time) func(pod *corev1.Pod)
- func WithEndpoint(memberID uint64, peerURl string) func(*corev1.ConfigMap)
- func WithLatestRevision(latest int32) func(status *operatorv1.StaticPodOperatorStatus)
- func WithMasterLabel() func(*corev1.Node)
- func WithNodeInternalIP(ip string) func(*corev1.Node)
- func WithNodeStatusAtCurrentRevision(current int32) func(*operatorv1.StaticPodOperatorStatus)
- func WithNodeStatusAtCurrentRevisionNamed(current int32, name string) func(*operatorv1.StaticPodOperatorStatus)
- func WithPodLabels(labels map[string]string) func(pod *corev1.Pod)
- func WithPodStatus(status corev1.PodPhase) func(pod *corev1.Pod)
- func WithScheduledNodeName(name string) func(pod *corev1.Pod)
- type FakeNodeLister
- type FakePodLister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsLearner ¶
func AsLearner(member *etcdserverpb.Member) *etcdserverpb.Member
func AssertBundleCorrectness ¶
func AssertCertificateCorrectness ¶
AssertCertificateCorrectness ensures that the certificates are signed by the correct signer
func AssertMatchingBundles ¶
func AssertMatchingBundles(t *testing.T, expectedBundle []*x509.Certificate, actualBundle []*x509.Certificate)
func BootstrapConfigMap ¶
func ClusterConfigConfigMap ¶
func DefaultEtcdMembers ¶
func DefaultEtcdMembers() []*etcdserverpb.Member
func EndpointsConfigMap ¶
func FakeClusterVersionLister ¶
func FakeClusterVersionLister(t *testing.T, clusterVersion *configv1.ClusterVersion) configv1listers.ClusterVersionLister
func FakeConfigMap ¶
func FakeEtcdBootstrapMember ¶
func FakeEtcdBootstrapMember(member int) *etcdserverpb.Member
func FakeEtcdMember ¶
func FakeEtcdMember(member int, etcdMock []*mockserver.MockServer) *etcdserverpb.Member
func FakeEtcdMemberWithoutServer ¶
func FakeEtcdMemberWithoutServer(member int) *etcdserverpb.Member
func FakeInfrastructureTopology ¶
func FakeInfrastructureTopology(topologyMode configv1.TopologyMode) *configv1.Infrastructure
func FakeNetwork ¶
FakeNetwork creates a fake network. !isIpv6 serviceNetwork = []string{"10.0.1.0/24"} isIPv6 serviceNetwork = []string{"2001:4860:4860::8888/32"}
func FakeNetworkLister ¶
func FakeNetworkLister(t *testing.T, isIPv6 bool) configv1listers.NetworkLister
FakeNetworkLister creates a fake lister. !isIpv6 serviceNetwork = []string{"10.0.1.0/24"} isIPv6 serviceNetwork = []string{"2001:4860:4860::8888/32"}
func MustAbsPath ¶
func StaticPodOperatorStatus ¶
func StaticPodOperatorStatus(configs ...func(status *operatorv1.StaticPodOperatorStatus)) *operatorv1.StaticPodOperatorStatus
func WithAllocatableStorage ¶
func WithBootstrapIP ¶
func WithBootstrapStatus ¶
func WithLatestRevision ¶
func WithLatestRevision(latest int32) func(status *operatorv1.StaticPodOperatorStatus)
func WithMasterLabel ¶
func WithNodeInternalIP ¶
func WithNodeStatusAtCurrentRevision ¶
func WithNodeStatusAtCurrentRevision(current int32) func(*operatorv1.StaticPodOperatorStatus)
func WithNodeStatusAtCurrentRevisionNamed ¶
func WithNodeStatusAtCurrentRevisionNamed(current int32, name string) func(*operatorv1.StaticPodOperatorStatus)
func WithScheduledNodeName ¶
Types ¶
type FakeNodeLister ¶
type FakePodLister ¶
func (*FakePodLister) Pods ¶
func (f *FakePodLister) Pods(namespace string) corev1listers.PodNamespaceLister
Click to show internal directories.
Click to hide internal directories.