Documentation ¶
Index ¶
- func MakeCronFakeJob(name, namespace string, completions int32, cpu, memory string, ...) *batchv1beta1.CronJob
- func MakeFakeDaemonSet(name, namespace string, cpu, memory string, opts ...FakeDaemonSetOption) *appsv1.DaemonSet
- func MakeFakeDeployment(name, namespace string, replica int32, cpu, memory string, ...) *appsv1.Deployment
- func MakeFakeJob(name, namespace string, completions int32, cpu, memory string, ...) *batchv1.Job
- func MakeFakeNode(name string, cpu, memory string, opts ...FakeNodeOption) *corev1.Node
- func MakeFakePod(name, namespace string, cpu, memory string, opts ...FakePodOption) *corev1.Pod
- func MakeFakeReplicaSet(name, namespace string, replica int32, cpu, memory string, ...) *appsv1.ReplicaSet
- func MakeFakeStatefulSet(name, namespace string, replica int32, cpu, memory string, ...) *appsv1.StatefulSet
- type FakeCronJobOption
- type FakeDaemonSetOption
- type FakeDeploymentOption
- type FakeJobOption
- type FakeNodeOption
- type FakePodOption
- func WithPodAffinity(affinity *corev1.Affinity) FakePodOption
- func WithPodAnnotations(annotations map[string]string) FakePodOption
- func WithPodLabels(labels map[string]string) FakePodOption
- func WithPodNodeName(nodeName string) FakePodOption
- func WithPodNodeSelector(nodeSelector map[string]string) FakePodOption
- func WithPodTolerations(tolerations []corev1.Toleration) FakePodOption
- type FakeReplicaSetOption
- type FakeStatefulSetOption
- func WithStatefulSetAffinity(affinity *corev1.Affinity) FakeStatefulSetOption
- func WithStatefulSetLocalStorage(volumes utils.VolumeRequest) FakeStatefulSetOption
- func WithStatefulSetNodeSelector(nodeSelector map[string]string) FakeStatefulSetOption
- func WithStatefulSetTolerations(tolerations []corev1.Toleration) FakeStatefulSetOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeCronFakeJob ¶
func MakeCronFakeJob(name, namespace string, completions int32, cpu, memory string, opts ...FakeCronJobOption) *batchv1beta1.CronJob
func MakeFakeDaemonSet ¶
func MakeFakeDaemonSet(name, namespace string, cpu, memory string, opts ...FakeDaemonSetOption) *appsv1.DaemonSet
func MakeFakeDeployment ¶
func MakeFakeDeployment(name, namespace string, replica int32, cpu, memory string, opts ...FakeDeploymentOption) *appsv1.Deployment
func MakeFakeJob ¶
func MakeFakeNode ¶
func MakeFakeNode(name string, cpu, memory string, opts ...FakeNodeOption) *corev1.Node
func MakeFakePod ¶
func MakeFakePod(name, namespace string, cpu, memory string, opts ...FakePodOption) *corev1.Pod
func MakeFakeReplicaSet ¶
func MakeFakeReplicaSet(name, namespace string, replica int32, cpu, memory string, opts ...FakeReplicaSetOption) *appsv1.ReplicaSet
func MakeFakeStatefulSet ¶
func MakeFakeStatefulSet(name, namespace string, replica int32, cpu, memory string, opts ...FakeStatefulSetOption) *appsv1.StatefulSet
Types ¶
type FakeCronJobOption ¶
type FakeCronJobOption func(*batchv1beta1.CronJob)
func WithCronJobAffinity ¶
func WithCronJobAffinity(affinity *corev1.Affinity) FakeCronJobOption
func WithCronJobNodeSelector ¶
func WithCronJobNodeSelector(nodeSelector map[string]string) FakeCronJobOption
func WithCronJobTolerations ¶
func WithCronJobTolerations(tolerations []corev1.Toleration) FakeCronJobOption
type FakeDaemonSetOption ¶
func WithDaemonSetAffinity ¶
func WithDaemonSetAffinity(affinity *corev1.Affinity) FakeDaemonSetOption
func WithDaemonSetNodeSelector ¶
func WithDaemonSetNodeSelector(nodeSelector map[string]string) FakeDaemonSetOption
func WithDaemonSetTolerations ¶
func WithDaemonSetTolerations(tolerations []corev1.Toleration) FakeDaemonSetOption
type FakeDeploymentOption ¶
type FakeDeploymentOption func(*appsv1.Deployment)
func WithDeploymentAffinity ¶
func WithDeploymentAffinity(affinity *corev1.Affinity) FakeDeploymentOption
func WithDeploymentNodeSelector ¶
func WithDeploymentNodeSelector(nodeSelector map[string]string) FakeDeploymentOption
func WithDeploymentTolerations ¶
func WithDeploymentTolerations(tolerations []corev1.Toleration) FakeDeploymentOption
type FakeJobOption ¶
func WithJobAffinity ¶
func WithJobAffinity(affinity *corev1.Affinity) FakeJobOption
func WithJobNodeSelector ¶
func WithJobNodeSelector(nodeSelector map[string]string) FakeJobOption
func WithJobTolerations ¶
func WithJobTolerations(tolerations []corev1.Toleration) FakeJobOption
type FakeNodeOption ¶
func WithNodeAnnotations ¶
func WithNodeAnnotations(annotations map[string]string) FakeNodeOption
WithNodeAnnotations
func WithNodeLocalStorage ¶
func WithNodeLocalStorage(storage utils.NodeStorage) FakeNodeOption
WithNodeLocalStorage
type FakePodOption ¶
func WithPodAffinity ¶
func WithPodAffinity(affinity *corev1.Affinity) FakePodOption
func WithPodAnnotations ¶
func WithPodAnnotations(annotations map[string]string) FakePodOption
func WithPodLabels ¶
func WithPodLabels(labels map[string]string) FakePodOption
func WithPodNodeName ¶
func WithPodNodeName(nodeName string) FakePodOption
func WithPodNodeSelector ¶
func WithPodNodeSelector(nodeSelector map[string]string) FakePodOption
func WithPodTolerations ¶
func WithPodTolerations(tolerations []corev1.Toleration) FakePodOption
type FakeReplicaSetOption ¶
type FakeReplicaSetOption func(*appsv1.ReplicaSet)
func WithReplicaSetAffinity ¶
func WithReplicaSetAffinity(affinity *corev1.Affinity) FakeReplicaSetOption
func WithReplicaSetNodeSelector ¶
func WithReplicaSetNodeSelector(nodeSelector map[string]string) FakeReplicaSetOption
func WithReplicaSetTolerations ¶
func WithReplicaSetTolerations(tolerations []corev1.Toleration) FakeReplicaSetOption
type FakeStatefulSetOption ¶
type FakeStatefulSetOption func(*appsv1.StatefulSet)
func WithStatefulSetAffinity ¶
func WithStatefulSetAffinity(affinity *corev1.Affinity) FakeStatefulSetOption
func WithStatefulSetLocalStorage ¶
func WithStatefulSetLocalStorage(volumes utils.VolumeRequest) FakeStatefulSetOption
func WithStatefulSetNodeSelector ¶
func WithStatefulSetNodeSelector(nodeSelector map[string]string) FakeStatefulSetOption
func WithStatefulSetTolerations ¶
func WithStatefulSetTolerations(tolerations []corev1.Toleration) FakeStatefulSetOption
Click to show internal directories.
Click to hide internal directories.