Documentation
¶
Overview ¶
Package gmapi executes greymatter CLI commands to configure mesh behavior in Control and Catalog APIs in each install namespace for each mesh. It enables Mesh CR specifications to define how a mesh should be configured.
Index ¶
- func ApplyAll(client *Client, objects []json.RawMessage, kinds []string)
- func ApplyCoreMeshConfigs(client *Client, operatorCUE *cuemodule.OperatorCUE)
- func DeleteAllByGMObjectRefs(client *Client, objectsToDelete []gitops.GMObjectRef)
- func UnApplyAll(client *Client, objects []json.RawMessage, kinds []string)
- type CLI
- func (c *CLI) ConfigureMeshClient(mesh *v1alpha1.Mesh, sync *gitops.Sync)
- func (c *CLI) EnsureClient(in string)
- func (c *CLI) MaybeConfigureSidecar(operatorCUE *cuemodule.OperatorCUE, name string, annotations map[string]string)
- func (c *CLI) RemoveMeshClient()
- func (c *CLI) UnconfigureSidecar(operatorCUE *cuemodule.OperatorCUE, name string, annotations map[string]string)
- type Client
- type Cmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyCoreMeshConfigs ¶
func ApplyCoreMeshConfigs(client *Client, operatorCUE *cuemodule.OperatorCUE)
func DeleteAllByGMObjectRefs ¶ added in v0.10.0
func DeleteAllByGMObjectRefs(client *Client, objectsToDelete []gitops.GMObjectRef)
func UnApplyAll ¶
func UnApplyAll(client *Client, objects []json.RawMessage, kinds []string)
Types ¶
type CLI ¶
CLI exposes methods for configuring clients that execute greymatter CLI commands.
func New ¶
New returns a new *CLI instance. It receives a context for cleaning up goroutines started by the *CLI.
func (*CLI) ConfigureMeshClient ¶
ConfigureMeshClient initializes or updates a greymatter CLI client utilizing a base64 encoded config.toml file.
func (*CLI) EnsureClient ¶
func (*CLI) MaybeConfigureSidecar ¶ added in v0.10.0
func (c *CLI) MaybeConfigureSidecar(operatorCUE *cuemodule.OperatorCUE, name string, annotations map[string]string)
MaybeConfigureSidecar applies fabric objects that add a workload to the mesh specified given the workload's annotations and a list of its corev1.Containers.
func (*CLI) RemoveMeshClient ¶
func (c *CLI) RemoveMeshClient()
RemoveMeshClient cleans up a Client's goroutines before removing it from the *CLI.
func (*CLI) UnconfigureSidecar ¶
func (c *CLI) UnconfigureSidecar(operatorCUE *cuemodule.OperatorCUE, name string, annotations map[string]string)
UnconfigureSidecar removes fabric objects, disconnecting the workload from the mesh specified