version

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithIngressSubDomain added in v0.3.2

func WithIngressSubDomain(domain string) func([]cue.Value)

Types

type ManifestGroup

type ManifestGroup struct {
	Deployment  *appsv1.Deployment  `json:"deployment"`
	StatefulSet *appsv1.StatefulSet `json:"statefulset"`
	Service     *corev1.Service     `json:"service"`
	ConfigMaps  []*corev1.ConfigMap `json:"configMaps"`
	Secrets     []*corev1.Secret    `json:"secrets"`
	Ingress     *netv1.Ingress      `json:"ingress"`
}

The manifests applied for a Grey Matter component or dependency.

type Opt added in v0.3.2

type Opt func(o []cue.Value)

type Sidecar

type Sidecar struct {
	Container    corev1.Container `json:"container"`
	Volumes      []corev1.Volume  `json:"volumes"`
	StaticConfig json.RawMessage  `json:"staticConfig"`
}

The manifests applied for Grey Matter sidecar injection.

type Version

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

Version contains a cue.Value that holds all installation templates for a version of Grey Matter, plus options applied from a Mesh custom resource.

func New added in v0.3.2

func New(tmpl cue.Value, mesh *v1alpha1.Mesh, opts ...Opt) (*Version, error)

New creates a *Version instance which contains all manifests needed to install a version of Grey Matter. It accepts a base install templates and a Mesh CR which overrides defaults when supplied.

func (Version) Manifests

func (v Version) Manifests() []ManifestGroup

Extracts manifests from a Version's cue.Value.

func (Version) SidecarTemplate

func (v Version) SidecarTemplate() func(string) Sidecar

Returns a function that extracts sidecar manifests from a Version's cue.Value.

func (*Version) Unify

func (v *Version) Unify(ws ...cue.Value)

Unify combines multiple cue.Values into a Version's cue.Value.

Jump to

Keyboard shortcuts

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