controllers

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DrainServiceTemplate = &appsv1.Deployment{
		ObjectMeta: metav1.ObjectMeta{
			Name: "drain-service",
		},
		Spec: appsv1.DeploymentSpec{
			Selector: &metav1.LabelSelector{
				MatchLabels: appLabels,
			},
			Template: v1.PodTemplateSpec{
				ObjectMeta: metav1.ObjectMeta{
					Labels: appLabels,
				},
				Spec: v1.PodSpec{
					Containers: []v1.Container{
						{
							Name: "drain-service",
							Env: []v1.EnvVar{
								{
									Name: "NATS_SERVER_URL",
									ValueFrom: &v1.EnvVarSource{
										SecretKeyRef: &v1.SecretKeySelector{
											LocalObjectReference: drainServiceSecret,
											Key:                  "nats-server-url",
										},
									},
								},
								{
									Name: "S3_ACCESS_KEY",
									ValueFrom: &v1.EnvVarSource{
										SecretKeyRef: &v1.SecretKeySelector{
											LocalObjectReference: s3Secret,
											Key:                  "access-key",
										},
									},
								},
								{
									Name: "S3_SECRET_KEY",
									ValueFrom: &v1.EnvVarSource{
										SecretKeyRef: &v1.SecretKeySelector{
											LocalObjectReference: s3Secret,
											Key:                  "secret-key",
										},
									},
								},
								{
									Name: "ES_USERNAME",
									ValueFrom: &v1.EnvVarSource{
										SecretKeyRef: &v1.SecretKeySelector{
											LocalObjectReference: esSecret,
											Key:                  "username",
										},
									},
								},
								{
									Name: "ES_PASSWORD",
									ValueFrom: &v1.EnvVarSource{
										SecretKeyRef: &v1.SecretKeySelector{
											LocalObjectReference: esSecret,
											Key:                  "password",
										},
									},
								},
								{
									Name:  "FAIL_KEYWORDS",
									Value: "fail,error,missing,unable",
								},
							},
						},
					},
				},
			},
		},
	}
)

Functions

This section is empty.

Types

type OpniClusterReconciler

type OpniClusterReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

OpniClusterReconciler reconciles a OpniCluster object

func (*OpniClusterReconciler) Reconcile

func (r *OpniClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*OpniClusterReconciler) SetupWithManager

func (r *OpniClusterReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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