controller

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Overview

Copyright 2022/9/1 Alibaba Cloud.

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.

Index

Constants

View Source
const (
	SuccessSynced                 = "Synced"
	MessageResourceSynced         = "NLSC synced successfully"
	AnnVolumeSnapshotBeingDeleted = "snapshot.storage.kubernetes.io/volumesnapshot-being-deleted"
)

Variables

View Source
var (
	OrphanedSnapshotContent featuregate.Feature = "OrphanedSnapshotContent"
	UpdateNLS               featuregate.Feature = "UpdateNLS"

	DefaultMutableFeatureGate featuregate.MutableFeatureGate = featuregate.NewFeatureGate()

	DefaultFeatureGate featuregate.FeatureGate = DefaultMutableFeatureGate
)

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(
	kubeclientset kubernetes.Interface,
	localclientset clientset.Interface,
	snapclientset snapshot.Interface,
	kubeInformerFactory kubeinformerfactory.SharedInformerFactory,
	localInformerFactory localinformerfactory.SharedInformerFactory,
	snapshotInformerFactory snapshotinformerfactory.SharedInformerFactory,
	nlscName string) *Controller

NewController returns a new sample c

func (*Controller) CleanUnusedResticRepo added in v0.7.0

func (c *Controller) CleanUnusedResticRepo()

背景: restic 不会自己删除 repo, 即使 repo 中没有快照 https://github.com/restic/restic/issues/1977 There's no way to let restic delete a repository completely. I think having a way to delete an entire repo is not so important...

func (*Controller) Run

func (c *Controller) Run(workers int, stopCh <-chan struct{}) error

type SyncNLSItem added in v0.6.0

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

type SyncPVByPodItem added in v0.6.0

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

Jump to

Keyboard shortcuts

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