release

package
v0.0.0-...-f3f1ec7 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LabelReleaseNamespace is a label key which is set on secrets and deployment(as well as its pods)
	LabelReleaseNamespace string = "release.fleet.tess.io/namespace"
	// LabelReleaseName is a label key which is set on secrets and deployment(as well as its pods)
	LabelReleaseName string = "release.fleet.tess.io/name"
	// AnnotationQoS tells the QoS for this release object
	AnnotationQoS string = "release.fleet.tess.io/qos"
	// AnnotationDNSPolicy specifies the default DNS policy.
	AnnotationDNSPolicy string = "release.fleet.tess.io/dns-policy"

	// QoSBestEffort indicates the worker pod should run as best effort.
	QoSBestEffort string = "besteffort"
	// QoSHigh indicates the worker pod requires higher resources.
	QoSHigh string = "high"

	// KeyToken is the key in reference secret for git access token
	KeyToken string = "token"
	// KeyGPGKey is the key in reference secret for git-crypt key
	KeyGPGKey string = "gpg.key"
	// KeyKubeconfig is the key in reference secret for kubeconfig
	KeyKubeconfig string = "kubeconfig"

	// FinalizerReleased is added to Release object to ensure its resources
	// are cleaned up on deletion.
	FinalizerReleased = "fleet.crd.tess.io/released"

	AnnotationUserNamespace  string = "release.fleet.tess.io/userns"
	AnnotationManagedSecret  string = "application.tess.io/managed-secrets"
	LabelApplicationInstance string = "applicationinstance.tess.io/name"
)

Variables

This section is empty.

Functions

func GenerateName

func GenerateName(base string) string

GenerateName is a function which appends random characters to the base name.

Types

type Controller

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

Controller is the controller implementation for Release resources.

func NewController

func NewController(
	cluster string,
	namespace string,
	applicationInstance string,
	serverAddress string,
	remote bool,
	tokens map[string]string,
	gpgKey []byte,
	envMap map[string]string,
	gitSyncImage string,
	imageMap map[string]string,
	imagePullPolicy string,
	workerCPU string,
	workerMemory string,
	logNamespace string,
	metricsNamespace string,
	kubeclientset kubernetes.Interface,
	fleetclientset clientset.Interface,
	localkubeclientset kubernetes.Interface,
	releaseInformer informers.ReleaseInformer,
	controllerRevisionInformer appsinformers.ControllerRevisionInformer,
	localDeploymentInformer appsinformers.DeploymentInformer,
	localSecretInformer coreinformers.SecretInformer,
) *Controller

NewController returns a new release controller

func (*Controller) Run

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

Run the control loop

Jump to

Keyboard shortcuts

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