k8s

package
v0.0.0-...-477b72e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Copyright 2022 The minio-operator Authors. Licensed under the Apache License, PROJECT_VERSION 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionValidate

func ActionValidate(expected, actual k8stest.Action) error

Validate validate action

func ExpectCreateConfigMapAction

func ExpectCreateConfigMapAction(cm *apicorev1.ConfigMap) k8stest.Action

ExpectCreateConfigMapAction return create configMap action

func ExpectCreateDaemonSetAction

func ExpectCreateDaemonSetAction(ds *apiappsv1.DaemonSet) k8stest.Action

ExpectCreateDaemonSetAction return daemonSet's CreateAction

func ExpectCreateDeploymentAction

func ExpectCreateDeploymentAction(dpl *apiappsv1.Deployment) k8stest.Action

ExpectCreateDeploymentAction return deployment's CreateAction

func ExpectCreatePodAction

func ExpectCreatePodAction(pod *apicorev1.Pod) k8stest.Action

ExpectCreatePodAction return pod's CreateAction

func ExpectCreateServiceAction

func ExpectCreateServiceAction(svc *apicorev1.Service) k8stest.Action

ExpectCreateServiceAction return service's CreateAction

func ExpectCreateStatefulSetAction

func ExpectCreateStatefulSetAction(sts *apiappsv1.StatefulSet) k8stest.Action

ExpectCreateStatefulSetAction return statefulSet's CreateAction

func ExpectGetConfigMapAction

func ExpectGetConfigMapAction(cm *apicorev1.ConfigMap) k8stest.Action

ExpectGetConfigMapAction return get configMap action

func ExpectGetDaemonSetAction

func ExpectGetDaemonSetAction(ds *apiappsv1.DaemonSet) k8stest.Action

ExpectGetDaemonSetAction return daemonSet's GetAction

func ExpectGetDeploymentAction

func ExpectGetDeploymentAction(dpl *apiappsv1.Deployment) k8stest.Action

ExpectGetDeploymentAction return deployment's GetAction

func ExpectGetPodAction

func ExpectGetPodAction(pod *apicorev1.Pod) k8stest.Action

ExpectGetPodAction return pod's GetAction

func ExpectGetServiceAction

func ExpectGetServiceAction(svc *apicorev1.Service) k8stest.Action

ExpectGetServiceAction return service's GetAction

func ExpectGetStatefulSetAction

func ExpectGetStatefulSetAction(sts *apiappsv1.StatefulSet) k8stest.Action

ExpectGetStatefulSetAction return statefulSet's GetAction

func ExpectUpdateConfigMapAction

func ExpectUpdateConfigMapAction(cm *apicorev1.ConfigMap) k8stest.Action

ExpectUpdateConfigMapAction return update configMap action

func ExpectUpdateCustomResourceAction

func ExpectUpdateCustomResourceAction(cr runtime.Object) k8stest.Action

for custom resource actions

func ExpectUpdateCustomResourceStatusAction

func ExpectUpdateCustomResourceStatusAction(cr runtime.Object) k8stest.Action

func ExpectUpdateDaemonSetAction

func ExpectUpdateDaemonSetAction(ds *apiappsv1.DaemonSet) k8stest.Action

ExpectUpdateDaemonSetAction return daemonSet's UpdateAction

func ExpectUpdateDeploymentAction

func ExpectUpdateDeploymentAction(dpl *apiappsv1.Deployment) k8stest.Action

ExpectUpdateDeploymentAction return deployment's UpdateAction

func ExpectUpdatePodAction

func ExpectUpdatePodAction(pod *apicorev1.Pod) k8stest.Action

ExpectUpdatePodAction return pod's UpdateAction

func ExpectUpdateServiceAction

func ExpectUpdateServiceAction(svc *apicorev1.Service) k8stest.Action

ExpectUpdateServiceAction return service's UpdateAction

func ExpectUpdateStatefulSetAction

func ExpectUpdateStatefulSetAction(sts *apiappsv1.StatefulSet) k8stest.Action

ExpectUpdateStatefulSetAction return statefulSet's UpdateAction

Types

type Fixture

type Fixture struct {
	// contains filtered or unexported fields
}

func NewFixture

func NewFixture(k8sFakeClient *k8sfake.Clientset, crFakeClient *crfakeclients.Clientset,
	kubeInformers informers.SharedInformerFactory, crInformers crinformers.SharedInformerFactory) *Fixture

func (*Fixture) AddConfigMapLister

func (f *Fixture) AddConfigMapLister(cms ...*apicorev1.ConfigMap) error

func (*Fixture) AddCustomResourceLister

func (f *Fixture) AddCustomResourceLister(cr runtime.Object) error

func (*Fixture) AddDaemonSetLister

func (f *Fixture) AddDaemonSetLister(dss ...*apiappsv1.DaemonSet) error

func (*Fixture) AddDeploymentLister

func (f *Fixture) AddDeploymentLister(dpls ...*apiappsv1.Deployment) error

func (*Fixture) AddPodLister

func (f *Fixture) AddPodLister(pods ...*apicorev1.Pod) error

func (*Fixture) AddServiceLister

func (f *Fixture) AddServiceLister(svs ...*apicorev1.Service) error

func (*Fixture) AddStatefulSetLister

func (f *Fixture) AddStatefulSetLister(sts ...*apiappsv1.StatefulSet) error

func (*Fixture) GetCustomResourceActions

func (f *Fixture) GetCustomResourceActions() []k8stest.Action

func (*Fixture) GetKubeActions

func (f *Fixture) GetKubeActions() []k8stest.Action

func (*Fixture) PutCustomResourceActions

func (f *Fixture) PutCustomResourceActions(crActions ...k8stest.Action)

func (*Fixture) PutKubeActions

func (f *Fixture) PutKubeActions(kubeActions ...k8stest.Action)

add expect actions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL