Documentation
¶
Overview ¶
Package mesh_install exposes functions for applying resources to a Kubernetes cluster. Its exposed functions receive a K8sClient for communicating with the cluster.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Installer ¶
type Installer struct {
*gmapi.CLI // Grey Matter CLI
K8sClient *client.Client
// Container for THE mesh (on the way to an experimental 1:1 operator:mesh paradigm)
// Contains the default after load
Mesh *v1alpha1.Mesh
// Container for all K8s and GM CUE cue.Values
OperatorCUE *cuemodule.OperatorCUE
// Root on disk of the operator CUE. Used for reloading the default configs on teardown
CueRoot string
// Operator config loadable from CUE
Config cuemodule.Config
// Select defaults that may be directly overridden from Go
Defaults cuemodule.Defaults
// Sync configuration with access to a callback for updating on git repo changes
Sync *sync.Sync
// contains filtered or unexported fields
}
Installer stores a map of version.Version and a distinct version.Sidecar for each mesh.
func New ¶
func New(c *client.Client, operatorCUE *cuemodule.OperatorCUE, initialMesh *v1alpha1.Mesh, cueRoot string, gmcli *gmapi.CLI, cfssl *cfsslsrv.CFSSLServer, sync *sync.Sync) (*Installer, error)
New returns a new *Installer instance for installing Grey Matter components and dependencies.
func (*Installer) ApplyMesh ¶
ApplyMesh installs and updates Grey Matter core components and dependencies for a single mesh.
func (*Installer) RemoveMesh ¶
RemoveMesh removes all references to a deleted Mesh custom resource. It does not uninstall core components and dependencies, since that is handled by the apiserver when the Mesh custom resource is deleted.