Documentation ¶
Index ¶
- Constants
- func EnableMeshForNamespace(ctx context.Context, cluster clusters.Cluster, name string) error
- type Addon
- func (a *Addon) Delete(ctx context.Context, cluster clusters.Cluster) error
- func (a *Addon) Dependencies(_ context.Context, _ clusters.Cluster) []clusters.AddonName
- func (a *Addon) Deploy(ctx context.Context, cluster clusters.Cluster) error
- func (a *Addon) DumpDiagnostics(context.Context, clusters.Cluster) (map[string][]byte, error)
- func (a *Addon) Name() clusters.AddonName
- func (a *Addon) Namespace() string
- func (a *Addon) Ready(ctx context.Context, cluster clusters.Cluster) (waitForObjects []runtime.Object, ready bool, err error)
- func (a *Addon) Version() (v semver.Version, ok bool)
- type Builder
Constants ¶
const ( // AddonName is the unique name of the Kong cluster.Addon AddonName clusters.AddonName = "kuma" // Namespace is the namespace that the Addon compontents // will be deployed under when deployment finishes Namespace = "kuma-system" // KumaHelmRepo is the Kuma Helm repo URL KumaHelmRepo = "https://kumahq.github.io/charts" // DefaultReleaseName is the default Helm release name DefaultReleaseName = "ktfkuma" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Addon ¶
type Addon struct {
// contains filtered or unexported fields
}
Addon is a Kuma addon which can be deployed on a clusters.Cluster.
func (*Addon) Dependencies ¶
func (*Addon) DumpDiagnostics ¶ added in v0.17.0
func (*Addon) Namespace ¶
Namespace indicates the namespace where the Kuma addon components are to be deployed and managed.
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is a configuration tool to generate Kuma cluster addons.
func NewBuilder ¶
func NewBuilder() *Builder
NewBuilder provides a new Builder object for configuring Kuma cluster addons.
func (*Builder) Build ¶
Build generates a new kong cluster.Addon which can be loaded and deployed into a test Environment's cluster.Cluster.
func (*Builder) WithAdditionalValue ¶ added in v0.46.0
WithAdditionalValue sets a key and value to pass to Helm using --set.
func (*Builder) WithLogger ¶
WithLogger adds a logger that will provide extra information about the build step of the addon at various configured log levels.
func (*Builder) WithVersion ¶
WithVersion configures the specific version of Kuma which should be deployed.