Documentation ¶
Index ¶
- type ControlPlaneBuilder
- func (builder *ControlPlaneBuilder) Create() (*ControlPlaneBuilder, error)
- func (builder *ControlPlaneBuilder) Delete() error
- func (builder *ControlPlaneBuilder) Exists() bool
- func (builder *ControlPlaneBuilder) Get() (*istiov2.ServiceMeshControlPlane, error)
- func (builder *ControlPlaneBuilder) Update(force bool) (*ControlPlaneBuilder, error)
- func (builder *ControlPlaneBuilder) WithAllAddonsDisabled() *ControlPlaneBuilder
- func (builder *ControlPlaneBuilder) WithGatewaysEnablement(enablement bool) *ControlPlaneBuilder
- func (builder *ControlPlaneBuilder) WithGrafanaAddon(enablement bool, grafanaInstallConfig *istiov2.GrafanaInstallConfig, ...) *ControlPlaneBuilder
- func (builder *ControlPlaneBuilder) WithJaegerAddon(name string, jaegerInstallConfig *istiov2.JaegerInstallConfig) *ControlPlaneBuilder
- func (builder *ControlPlaneBuilder) WithKialiAddon(enablement bool, name string, kialiInstallConfig *istiov2.KialiInstallConfig) *ControlPlaneBuilder
- func (builder *ControlPlaneBuilder) WithPrometheusAddon(enablement bool, scrape bool, metricsExpiryDuration string, address string, ...) *ControlPlaneBuilder
- type MemberRollBuilder
- func (builder *MemberRollBuilder) Create() (*MemberRollBuilder, error)
- func (builder *MemberRollBuilder) Delete() error
- func (builder *MemberRollBuilder) Exists() bool
- func (builder *MemberRollBuilder) Get() (*istiov1.ServiceMeshMemberRoll, error)
- func (builder *MemberRollBuilder) GetMembersList() (*[]string, error)
- func (builder *MemberRollBuilder) IsReady(timeout time.Duration) (bool, error)
- func (builder *MemberRollBuilder) Update(force bool) (*MemberRollBuilder, error)
- func (builder *MemberRollBuilder) WithMembersList(membersList []string) *MemberRollBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlPlaneBuilder ¶
type ControlPlaneBuilder struct { // serviceMeshControlPlane definition, used to create the serviceMeshControlPlane object. Definition *istiov2.ServiceMeshControlPlane // Created serviceMeshControlPlane object. Object *istiov2.ServiceMeshControlPlane // contains filtered or unexported fields }
ControlPlaneBuilder provides a struct for serviceMeshControlPlane object from the cluster and a serviceMeshControlPlane definition.
func NewControlPlaneBuilder ¶
func NewControlPlaneBuilder(apiClient *clients.Settings, name, nsname string) *ControlPlaneBuilder
NewControlPlaneBuilder method creates new instance of builder.
func PullControlPlane ¶
func PullControlPlane(apiClient *clients.Settings, name, nsname string) (*ControlPlaneBuilder, error)
PullControlPlane retrieves an existing serviceMeshControlPlane object from the cluster.
func (*ControlPlaneBuilder) Create ¶
func (builder *ControlPlaneBuilder) Create() (*ControlPlaneBuilder, error)
Create makes a serviceMeshControlPlane in the cluster and stores the created object in struct.
func (*ControlPlaneBuilder) Delete ¶
func (builder *ControlPlaneBuilder) Delete() error
Delete removes serviceMeshControlPlane from a cluster.
func (*ControlPlaneBuilder) Exists ¶
func (builder *ControlPlaneBuilder) Exists() bool
Exists checks whether the given serviceMeshControlPlane exists.
func (*ControlPlaneBuilder) Get ¶
func (builder *ControlPlaneBuilder) Get() (*istiov2.ServiceMeshControlPlane, error)
Get fetches existing serviceMeshControlPlane from cluster.
func (*ControlPlaneBuilder) Update ¶
func (builder *ControlPlaneBuilder) Update(force bool) (*ControlPlaneBuilder, error)
Update renovates the existing serviceMeshControlPlane object with serviceMeshControlPlane definition in builder.
func (*ControlPlaneBuilder) WithAllAddonsDisabled ¶
func (builder *ControlPlaneBuilder) WithAllAddonsDisabled() *ControlPlaneBuilder
WithAllAddonsDisabled disables all addons to the serviceMeshControlPlane.
func (*ControlPlaneBuilder) WithGatewaysEnablement ¶
func (builder *ControlPlaneBuilder) WithGatewaysEnablement(enablement bool) *ControlPlaneBuilder
WithGatewaysEnablement adds gateway enablement to the serviceMeshControlPlane.
func (*ControlPlaneBuilder) WithGrafanaAddon ¶
func (builder *ControlPlaneBuilder) WithGrafanaAddon( enablement bool, grafanaInstallConfig *istiov2.GrafanaInstallConfig, address string) *ControlPlaneBuilder
WithGrafanaAddon adds grafana addon to the serviceMeshControlPlane.
func (*ControlPlaneBuilder) WithJaegerAddon ¶
func (builder *ControlPlaneBuilder) WithJaegerAddon( name string, jaegerInstallConfig *istiov2.JaegerInstallConfig) *ControlPlaneBuilder
WithJaegerAddon adds jaeger addon to the serviceMeshControlPlane.
func (*ControlPlaneBuilder) WithKialiAddon ¶
func (builder *ControlPlaneBuilder) WithKialiAddon( enablement bool, name string, kialiInstallConfig *istiov2.KialiInstallConfig) *ControlPlaneBuilder
WithKialiAddon adds kiali addons to the serviceMeshControlPlane.
func (*ControlPlaneBuilder) WithPrometheusAddon ¶
func (builder *ControlPlaneBuilder) WithPrometheusAddon( enablement bool, scrape bool, metricsExpiryDuration string, address string, prometheusInstallConfig *istiov2.PrometheusInstallConfig) *ControlPlaneBuilder
WithPrometheusAddon adds prometheus addons to the serviceMeshControlPlane.
type MemberRollBuilder ¶
type MemberRollBuilder struct { // serviceMeshMemberRoll definition, used to create the serviceMeshMemberRoll object. Definition *istiov1.ServiceMeshMemberRoll // Created serviceMeshMemberRoll object. Object *istiov1.ServiceMeshMemberRoll // contains filtered or unexported fields }
MemberRollBuilder provides a struct for serviceMeshMemberRoll object from the cluster and a serviceMeshMemberRoll definition.
func NewMemberRollBuilder ¶
func NewMemberRollBuilder(apiClient *clients.Settings, name, nsname string) *MemberRollBuilder
NewMemberRollBuilder method creates new instance of builder.
func PullMemberRoll ¶
func PullMemberRoll(apiClient *clients.Settings, name, nsname string) (*MemberRollBuilder, error)
PullMemberRoll retrieves an existing serviceMeshMemberRoll object from the cluster.
func (*MemberRollBuilder) Create ¶
func (builder *MemberRollBuilder) Create() (*MemberRollBuilder, error)
Create makes a serviceMeshMemberRoll in the cluster and stores the created object in struct.
func (*MemberRollBuilder) Delete ¶
func (builder *MemberRollBuilder) Delete() error
Delete removes serviceMeshMemberRoll from a cluster.
func (*MemberRollBuilder) Exists ¶
func (builder *MemberRollBuilder) Exists() bool
Exists checks whether the given serviceMeshMemberRoll exists.
func (*MemberRollBuilder) Get ¶
func (builder *MemberRollBuilder) Get() (*istiov1.ServiceMeshMemberRoll, error)
Get fetches existing serviceMeshMemberRoll from cluster.
func (*MemberRollBuilder) GetMembersList ¶
func (builder *MemberRollBuilder) GetMembersList() (*[]string, error)
GetMembersList fetches memberRoll's membersList.
func (*MemberRollBuilder) IsReady ¶
func (builder *MemberRollBuilder) IsReady(timeout time.Duration) (bool, error)
IsReady check if the ServiceMesh MemberRoll is Ready.
func (*MemberRollBuilder) Update ¶
func (builder *MemberRollBuilder) Update(force bool) (*MemberRollBuilder, error)
Update renovates the existing serviceMeshMemberRoll object with serviceMeshMemberRoll definition in builder.
func (*MemberRollBuilder) WithMembersList ¶
func (builder *MemberRollBuilder) WithMembersList(membersList []string) *MemberRollBuilder
WithMembersList adds member list section to the MemberRollBuilder.