cluster

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 28 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

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

func New

func New(config Config, cl *v1alpha2.NatsCluster) *Cluster

New returns a new instance of the reconciler for NatsCluster resources.

func (*Cluster) Reconcile added in v0.4.2

func (c *Cluster) Reconcile() error

Reconcile looks at the current state of the associated NatsCluster resource and attempts to drive it towards the desired state.

type Config

type Config struct {
	// Deprecated: Use KubeClient and its CoreV1() function instead.
	KubeCli corev1client.CoreV1Interface
	// Deprecated: Use NatsClient and its NatsV1alpha2() function instead.
	OperatorCli           natsalphav2client.NatsV1alpha2Interface
	PodLister             corev1listers.PodLister
	SecretLister          corev1listers.SecretLister
	ServiceLister         corev1listers.ServiceLister
	NatsServiceRoleLister natslisters.NatsServiceRoleLister

	KubeClient kubernetes.Interface
	KubeConfig *rest.Config
	NatsClient natsclient.Interface
}

type Status

type Status struct {
	CurrentVersion string `json:"currentVersion"`
	TargetVersion  string `json:"targetVersion"`
}

Jump to

Keyboard shortcuts

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