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
// 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
// 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) (*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.