Documentation ¶
Index ¶
- Constants
- 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(ctx context.Context, cluster clusters.Cluster) (map[string][]byte, error)
- func (a *Addon) EnableMeshForNamespace(ctx context.Context, cluster clusters.Cluster, name string) 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() semver.Version
- type Builder
Constants ¶
const ( // AddonName is the unique name of the Kong cluster.Addon AddonName clusters.AddonName = "istio" // Namespace is the namespace that the Addon compontents // will be deployed under when deployment finishes Namespace = "istio-system" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addon ¶
type Addon struct {
// contains filtered or unexported fields
}
Addon is a Kong Proxy addon which can be deployed on a clusters.Cluster.
func New ¶
func New() *Addon
New produces a new clusters.Addon for Kong but uses a very opionated set of default configurations (see the defaults() function for more details). If you need to customize your Kong deployment, use the kong.Builder instead.
func (*Addon) Dependencies ¶ added in v0.11.0
func (*Addon) DumpDiagnostics ¶ added in v0.17.0
func (*Addon) EnableMeshForNamespace ¶
func (a *Addon) EnableMeshForNamespace(ctx context.Context, cluster clusters.Cluster, name string) error
EnableMeshForNamespace will add the "istio-injection=enabled" label to the provided namespace by name which will indicate to Istio to inject sidecard pods to add it to the mesh network.
func (*Addon) Namespace ¶
Namespace indicates the namespace where the Istio 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 Istio cluster addons.
func NewBuilder ¶
func NewBuilder() *Builder
NewBuilder provides a new Builder object for configuring Istio 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) WithGrafana ¶
WithGrafana triggers a deployment of Grafana configured specifically for Istio.
func (*Builder) WithJaeger ¶
WithJaeger triggers a deployment of Jaeger configured specifically for Istio.
func (*Builder) WithKiali ¶
WithKiali triggers a deployment of Kiali configured specifically for Istio.
func (*Builder) WithPrometheus ¶
WithPrometheus triggers a deployment of Prometheus configured specifically for Istio.
See: https://istio.io/latest/docs/ops/integrations/prometheus/
func (*Builder) WithVersion ¶
WithVersion configures the specific version of Istio which should be deployed.