func()

in controllers/testutils.go [256:271]


func (e *etcdadmClusterTest) newInitSecret() {
	e.initSecret = &corev1.Secret{
		TypeMeta: metav1.TypeMeta{
			Kind:       "Secret",
			APIVersion: "v1",
		},
		ObjectMeta: metav1.ObjectMeta{
			Name:      e.etcdadmCluster.Status.InitMachineAddress,
			Namespace: e.cluster.Namespace,
		},
		Data: map[string][]byte{
			"address":    []byte(getEtcdMachineAddressFromClientURL(e.etcdadmCluster.Status.InitMachineAddress)),
			"clientUrls": []byte(e.etcdadmCluster.Status.Endpoints),
		},
	}
}