Documentation ¶
Index ¶
- Constants
- func CurrentDeployment(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) (*appsv1.Deployment, error)
- func DesiredDeployment(Sesame *operatorv1alpha1.Sesame, image string) *appsv1.Deployment
- func EnsureDeployment(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame, ...) error
- func EnsureDeploymentDeleted(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) error
- func SesameDeploymentPodSelector() *metav1.LabelSelector
Constants ¶
View Source
const ( // SesameDeploymentName is the name of Sesame's Deployment resource. // [TODO] danehans: Remove and use sesame.Name + "-sesame" when // https://github.com/projectsesame/Sesame/issues/2122 is fixed. SesameDeploymentName = "sesame" // SesameContainerName is the name of the Sesame container. SesameContainerName = "sesame" // SesameNsEnvVar is the name of the sesame namespace environment variable. SesameNsEnvVar = "Sesame_NAMESPACE" // SesamePodEnvVar is the name of the sesame pod name environment variable. SesamePodEnvVar = "POD_NAME" // SesameCertsVolName is the name of the sesame certificates volume. SesameCertsVolName = "Sesamecert" // SesameCertsVolMntDir is the directory name of the sesame certificates volume. SesameCertsVolMntDir = "certs" // SesameCertsSecretName is the name of the secret used as the certificate volume source. SesameCertsSecretName = SesameCertsVolName // SesameCfgVolName is the name of the sesame configuration volume. SesameCfgVolName = "sesame-config" // SesameCfgVolMntDir is the directory name of the sesame configuration volume. SesameCfgVolMntDir = "config" // SesameCfgFileName is the name of the sesame configuration file. SesameCfgFileName = "sesame.yaml" )
Variables ¶
This section is empty.
Functions ¶
func CurrentDeployment ¶
func CurrentDeployment(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) (*appsv1.Deployment, error)
CurrentDeployment returns the Deployment resource for the provided sesame.
func DesiredDeployment ¶
func DesiredDeployment(Sesame *operatorv1alpha1.Sesame, image string) *appsv1.Deployment
DesiredDeployment returns the desired deployment for the provided sesame using image as Sesame's container image.
func EnsureDeployment ¶
func EnsureDeployment(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame, image string) error
EnsureDeployment ensures a deployment using image exists for the given sesame.
func EnsureDeploymentDeleted ¶
func EnsureDeploymentDeleted(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) error
EnsureDeploymentDeleted ensures the deployment for the provided sesame is deleted if Sesame owner labels exist.
func SesameDeploymentPodSelector ¶
func SesameDeploymentPodSelector() *metav1.LabelSelector
SesameDeploymentPodSelector returns a label selector using "app: sesame" as the key/value pair.
TODO [danehans]: Update to use "sesame.operator.projectsesame.io/deployment-sesame" when https://github.com/projectsesame/Sesame/issues/1821 is fixed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.