boshdeployment

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBPM added in v0.2.2

func AddBPM(ctx context.Context, config *config.Config, mgr manager.Manager) error

AddBPM creates a new BPM controller to watch for BPM configs and instance group manifests. It will reconcile those into k8s resources (QuarksStatefulSet, QuarksJob), which represent BOSH instance groups and BOSH errands.

func AddDeployment added in v0.2.0

func AddDeployment(ctx context.Context, config *config.Config, mgr manager.Manager) error

AddDeployment creates a new BOSHDeployment controller to watch for BOSHDeployment manifest custom resources and start the rendering, which will finally produce the "desired manifest", the instance group manifests and the BPM configs.

func AddGeneratedVariable added in v0.2.2

func AddGeneratedVariable(ctx context.Context, config *config.Config, mgr manager.Manager) error

AddGeneratedVariable creates a new generated variable controller to watch for the intermediate "with-ops" manifest and reconcile them into one QuarksSecret for each explicit variable.

func NewBOSHDeploymentValidator added in v0.4.0

func NewBOSHDeploymentValidator(log *zap.SugaredLogger, config *config.Config) *wh.OperatorWebhook

NewBOSHDeploymentValidator creates a validating hook for BOSHDeployment and adds it to the Manager

func NewBPMReconciler added in v0.2.2

func NewBPMReconciler(ctx context.Context, config *config.Config, mgr manager.Manager, resolver converter.DesiredManifest, srf setReferenceFunc, kubeConverter KubeConverter) reconcile.Reconciler

NewBPMReconciler returns a new reconcile.Reconciler

func NewDeploymentReconciler added in v0.2.2

func NewDeploymentReconciler(ctx context.Context, config *config.Config, mgr manager.Manager, resolver converter.Resolver, jobFactory JobFactory, srf setReferenceFunc) reconcile.Reconciler

NewDeploymentReconciler returns a new reconcile.Reconciler

func NewGeneratedVariableReconciler added in v0.2.2

func NewGeneratedVariableReconciler(ctx context.Context, config *config.Config, mgr manager.Manager, srf setReferenceFunc, kubeConverter KubeConverter) reconcile.Reconciler

NewGeneratedVariableReconciler returns a new reconcile.Reconciler

func NewValidator added in v0.3.1

func NewValidator(log *zap.SugaredLogger, config *config.Config) admission.Handler

NewValidator returns a new BOSHDeploymentValidator

Types

type JobFactory added in v0.4.1

type JobFactory interface {
	VariableInterpolationJob(manifest bdm.Manifest) (*qjv1a1.QuarksJob, error)
	InstanceGroupManifestJob(manifest bdm.Manifest, linkInfos converter.LinkInfos, initialRollout bool) (*qjv1a1.QuarksJob, error)
}

JobFactory creates Jobs for a given manifest

type KubeConverter added in v0.4.1

type KubeConverter interface {
	BPMResources(manifestName string, dns bdm.DomainNameService, qStsVersion string, instanceGroup *bdm.InstanceGroup, releaseImageProvider converter.ReleaseImageProvider, bpmConfigs bpm.Configs, igResolvedSecretVersion string) (*converter.BPMResources, error)
	Variables(manifestName string, variables []bdm.Variable) ([]qsv1a1.QuarksSecret, error)
}

KubeConverter converts k8s resources from single BOSH manifest

type ReconcileBOSHDeployment

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

ReconcileBOSHDeployment reconciles a BOSHDeployment object

func (*ReconcileBOSHDeployment) Reconcile

Reconcile starts the deployment process for a BOSHDeployment and deploys QuarksJobs to generate required properties for instance groups and rendered BPM

type ReconcileBPM added in v0.2.2

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

ReconcileBPM reconciles an Instance Group BPM versioned secret

func (*ReconcileBPM) Reconcile added in v0.2.2

func (r *ReconcileBPM) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reconciles an Instance Group BPM versioned secret read the corresponding desired manifest. It then applies BPM information and deploys instance groups.

type ReconcileGeneratedVariable added in v0.2.2

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

ReconcileGeneratedVariable reconciles a manifest with ops

func (*ReconcileGeneratedVariable) Reconcile added in v0.2.2

Reconcile creates or updates variables quarksSecrets

type Validator added in v0.3.1

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

Validator s

func (*Validator) Handle added in v0.3.1

Handle validates a BOSHDeployment

func (*Validator) InjectClient added in v0.3.1

func (v *Validator) InjectClient(c client.Client) error

InjectClient injects the client.

func (*Validator) InjectDecoder added in v0.3.1

func (v *Validator) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

func (*Validator) OpsResourcesExist added in v0.4.0

func (v *Validator) OpsResourcesExist(ctx context.Context, specOpsResource []bdv1.ResourceReference, ns string) (bool, string)

OpsResourcesExist verify if a resource exist in the namespace, it will check its existence during 5 seconds, otherwise it will timeout.

Jump to

Keyboard shortcuts

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