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 ¶
- func ActionValidate(expected, actual k8stest.Action) error
- func ExpectCreateConfigMapAction(cm *apicorev1.ConfigMap) k8stest.Action
- func ExpectCreateDaemonSetAction(ds *apiappsv1.DaemonSet) k8stest.Action
- func ExpectCreateDeploymentAction(dpl *apiappsv1.Deployment) k8stest.Action
- func ExpectCreatePodAction(pod *apicorev1.Pod) k8stest.Action
- func ExpectCreateServiceAction(svc *apicorev1.Service) k8stest.Action
- func ExpectCreateStatefulSetAction(sts *apiappsv1.StatefulSet) k8stest.Action
- func ExpectGetConfigMapAction(cm *apicorev1.ConfigMap) k8stest.Action
- func ExpectGetDaemonSetAction(ds *apiappsv1.DaemonSet) k8stest.Action
- func ExpectGetDeploymentAction(dpl *apiappsv1.Deployment) k8stest.Action
- func ExpectGetPodAction(pod *apicorev1.Pod) k8stest.Action
- func ExpectGetServiceAction(svc *apicorev1.Service) k8stest.Action
- func ExpectGetStatefulSetAction(sts *apiappsv1.StatefulSet) k8stest.Action
- func ExpectUpdateConfigMapAction(cm *apicorev1.ConfigMap) k8stest.Action
- func ExpectUpdateCustomResourceAction(cr runtime.Object) k8stest.Action
- func ExpectUpdateCustomResourceStatusAction(cr runtime.Object) k8stest.Action
- func ExpectUpdateDaemonSetAction(ds *apiappsv1.DaemonSet) k8stest.Action
- func ExpectUpdateDeploymentAction(dpl *apiappsv1.Deployment) k8stest.Action
- func ExpectUpdatePodAction(pod *apicorev1.Pod) k8stest.Action
- func ExpectUpdateServiceAction(svc *apicorev1.Service) k8stest.Action
- func ExpectUpdateStatefulSetAction(sts *apiappsv1.StatefulSet) k8stest.Action
- type Fixture
- func (f *Fixture) AddConfigMapLister(cms ...*apicorev1.ConfigMap) error
- func (f *Fixture) AddCustomResourceLister(cr runtime.Object) error
- func (f *Fixture) AddDaemonSetLister(dss ...*apiappsv1.DaemonSet) error
- func (f *Fixture) AddDeploymentLister(dpls ...*apiappsv1.Deployment) error
- func (f *Fixture) AddPodLister(pods ...*apicorev1.Pod) error
- func (f *Fixture) AddServiceLister(svs ...*apicorev1.Service) error
- func (f *Fixture) AddStatefulSetLister(sts ...*apiappsv1.StatefulSet) error
- func (f *Fixture) GetCustomResourceActions() []k8stest.Action
- func (f *Fixture) GetKubeActions() []k8stest.Action
- func (f *Fixture) PutCustomResourceActions(crActions ...k8stest.Action)
- func (f *Fixture) PutKubeActions(kubeActions ...k8stest.Action)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionValidate ¶
Validate validate action
func ExpectCreateConfigMapAction ¶
ExpectCreateConfigMapAction return create configMap action
func ExpectCreateDaemonSetAction ¶
ExpectCreateDaemonSetAction return daemonSet's CreateAction
func ExpectCreateDeploymentAction ¶
func ExpectCreateDeploymentAction(dpl *apiappsv1.Deployment) k8stest.Action
ExpectCreateDeploymentAction return deployment's CreateAction
func ExpectCreatePodAction ¶
ExpectCreatePodAction return pod's CreateAction
func ExpectCreateServiceAction ¶
ExpectCreateServiceAction return service's CreateAction
func ExpectCreateStatefulSetAction ¶
func ExpectCreateStatefulSetAction(sts *apiappsv1.StatefulSet) k8stest.Action
ExpectCreateStatefulSetAction return statefulSet's CreateAction
func ExpectGetConfigMapAction ¶
ExpectGetConfigMapAction return get configMap action
func ExpectGetDaemonSetAction ¶
ExpectGetDaemonSetAction return daemonSet's GetAction
func ExpectGetDeploymentAction ¶
func ExpectGetDeploymentAction(dpl *apiappsv1.Deployment) k8stest.Action
ExpectGetDeploymentAction return deployment's GetAction
func ExpectGetPodAction ¶
ExpectGetPodAction return pod's GetAction
func ExpectGetServiceAction ¶
ExpectGetServiceAction return service's GetAction
func ExpectGetStatefulSetAction ¶
func ExpectGetStatefulSetAction(sts *apiappsv1.StatefulSet) k8stest.Action
ExpectGetStatefulSetAction return statefulSet's GetAction
func ExpectUpdateConfigMapAction ¶
ExpectUpdateConfigMapAction return update configMap action
func ExpectUpdateCustomResourceAction ¶
for custom resource actions
func ExpectUpdateDaemonSetAction ¶
ExpectUpdateDaemonSetAction return daemonSet's UpdateAction
func ExpectUpdateDeploymentAction ¶
func ExpectUpdateDeploymentAction(dpl *apiappsv1.Deployment) k8stest.Action
ExpectUpdateDeploymentAction return deployment's UpdateAction
func ExpectUpdatePodAction ¶
ExpectUpdatePodAction return pod's UpdateAction
func ExpectUpdateServiceAction ¶
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 (*Fixture) AddCustomResourceLister ¶
func (*Fixture) AddDaemonSetLister ¶
func (*Fixture) AddDeploymentLister ¶
func (f *Fixture) AddDeploymentLister(dpls ...*apiappsv1.Deployment) error
func (*Fixture) AddServiceLister ¶
func (*Fixture) AddStatefulSetLister ¶
func (f *Fixture) AddStatefulSetLister(sts ...*apiappsv1.StatefulSet) error
func (*Fixture) GetCustomResourceActions ¶
func (*Fixture) GetKubeActions ¶
func (*Fixture) PutCustomResourceActions ¶
func (*Fixture) PutKubeActions ¶
add expect actions