Documentation
¶
Overview ¶
Copyright 2022 NVIDIA CORPORATION & AFFILIATES Licensed under the Apache License, 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.
Code generated by mockery v1.0.0. DO NOT EDIT. nolint
Index ¶
- type CordonManager
- type DrainManager
- type NodeUpgradeStateProvider
- func (_m *NodeUpgradeStateProvider) ChangeNodeUpgradeAnnotation(ctx context.Context, node *v1.Node, key string, value string) error
- func (_m *NodeUpgradeStateProvider) ChangeNodeUpgradeState(ctx context.Context, node *v1.Node, newNodeState string) error
- func (_m *NodeUpgradeStateProvider) GetNode(ctx context.Context, nodeName string) (*v1.Node, error)
- type PodManager
- func (_m *PodManager) GetDaemonsetControllerRevisionHash(ctx context.Context, daemonset *v1.DaemonSet) (string, error)
- func (_m *PodManager) GetPodControllerRevisionHash(ctx context.Context, pod *corev1.Pod) (string, error)
- func (_m *PodManager) GetPodDeletionFilter() upgrade.PodDeletionFilter
- func (_m *PodManager) ScheduleCheckOnPodCompletion(ctx context.Context, config *upgrade.PodManagerConfig) error
- func (_m *PodManager) SchedulePodEviction(ctx context.Context, config *upgrade.PodManagerConfig) error
- func (_m *PodManager) SchedulePodsRestart(ctx context.Context, pods []*corev1.Pod) error
- type ValidationManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CordonManager ¶
CordonManager is an autogenerated mock type for the CordonManager type
func NewCordonManager ¶
func NewCordonManager(t mockConstructorTestingTNewCordonManager) *CordonManager
NewCordonManager creates a new instance of CordonManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type DrainManager ¶
DrainManager is an autogenerated mock type for the DrainManager type
func (*DrainManager) ScheduleNodesDrain ¶
func (_m *DrainManager) ScheduleNodesDrain(ctx context.Context, drainConfig *upgrade.DrainConfiguration) error
ScheduleNodesDrain provides a mock function with given fields: ctx, drainConfig
type NodeUpgradeStateProvider ¶
NodeUpgradeStateProvider is an autogenerated mock type for the NodeUpgradeStateProvider type
func NewNodeUpgradeStateProvider ¶
func NewNodeUpgradeStateProvider(t mockConstructorTestingTNewNodeUpgradeStateProvider) *NodeUpgradeStateProvider
NewNodeUpgradeStateProvider creates a new instance of NodeUpgradeStateProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*NodeUpgradeStateProvider) ChangeNodeUpgradeAnnotation ¶
func (_m *NodeUpgradeStateProvider) ChangeNodeUpgradeAnnotation(ctx context.Context, node *v1.Node, key string, value string) error
ChangeNodeUpgradeAnnotation provides a mock function with given fields: ctx, node, key, value
func (*NodeUpgradeStateProvider) ChangeNodeUpgradeState ¶
func (_m *NodeUpgradeStateProvider) ChangeNodeUpgradeState(ctx context.Context, node *v1.Node, newNodeState string) error
ChangeNodeUpgradeState provides a mock function with given fields: ctx, node, newNodeState
type PodManager ¶
PodManager is an autogenerated mock type for the PodManager type
func NewPodManager ¶
func NewPodManager(t mockConstructorTestingTNewPodManager) *PodManager
NewPodManager creates a new instance of PodManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PodManager) GetDaemonsetControllerRevisionHash ¶
func (_m *PodManager) GetDaemonsetControllerRevisionHash(ctx context.Context, daemonset *v1.DaemonSet) (string, error)
GetDaemonsetControllerRevisionHash provides a mock function with given fields: ctx, daemonset
func (*PodManager) GetPodControllerRevisionHash ¶
func (_m *PodManager) GetPodControllerRevisionHash(ctx context.Context, pod *corev1.Pod) (string, error)
GetPodControllerRevisionHash provides a mock function with given fields: ctx, pod
func (*PodManager) GetPodDeletionFilter ¶
func (_m *PodManager) GetPodDeletionFilter() upgrade.PodDeletionFilter
GetPodDeletionFilter provides a mock function with given fields:
func (*PodManager) ScheduleCheckOnPodCompletion ¶
func (_m *PodManager) ScheduleCheckOnPodCompletion(ctx context.Context, config *upgrade.PodManagerConfig) error
ScheduleCheckOnPodCompletion provides a mock function with given fields: ctx, config
func (*PodManager) SchedulePodEviction ¶
func (_m *PodManager) SchedulePodEviction(ctx context.Context, config *upgrade.PodManagerConfig) error
SchedulePodEviction provides a mock function with given fields: ctx, config
func (*PodManager) SchedulePodsRestart ¶
SchedulePodsRestart provides a mock function with given fields: ctx, pods
type ValidationManager ¶
ValidationManager is an autogenerated mock type for the ValidationManager type
func NewValidationManager ¶
func NewValidationManager(t mockConstructorTestingTNewValidationManager) *ValidationManager
NewValidationManager creates a new instance of ValidationManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.