util

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// ComponentName is the name of this project
	ComponentName = "captain"

	//LeaderLockName is the name of lock for leader election
	LeaderLockName = "captain-controller-lock"

	// FinalizerName is the finalizer name we append to each HelmRequest resource
	FinalizerName = "captain.cpaas.io"

	// ProjectKey is the annotation key for project
	ProjectKey = "alauda.io/project"

	// NoSyncAnotation indicate to ignore a helmrequest
	NoSyncAnotation = "captain-no-sync"

	// KubectlCaptainSync is a key in annotations to indicate that kubectl-captain have force
	// trigger a upgrade for this HelmRequest, we need to resync it. Usally it's value is current timestamp
	KubectlCaptainSync = "kubectl-captain.resync"
)

Variables

This section is empty.

Functions

func InstallCRDIfRequired added in v0.9.3

func InstallCRDIfRequired(cfg *rest.Config, required bool) error

InstallCRDIfRequired install helmrequest CRD may be we should move it out of main

func InstallHelmRequestCRD added in v0.9.3

func InstallHelmRequestCRD(cfg *rest.Config) error

InstallHelmRequestCRD install HelmRequest crd with timeout

func NewOwnerRef added in v0.9.2

func NewOwnerRef(owner metav1.Object, gvk schema.GroupVersionKind) *metav1.OwnerReference

NewOwnerRef creates an OwnerReference pointing to the given owner.

func ParseChartName

func ParseChartName(name string) (repo, chart string)

ParseChartName is a simple function that parse chart name

Types

This section is empty.

Jump to

Keyboard shortcuts

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