Documentation ¶
Overview ¶
Package istio - Common operations for the adapter
Package istio - Error codes for the adapter
Index ¶
- Variables
- func ErrAddonFromTemplate(err error) error
- func ErrAddonInvalidConfig(err error) error
- func ErrApplyPolicy(err error) error
- func ErrCreatingIstioClient(err error) error
- func ErrCustomOperation(err error) error
- func ErrDownloadBinary(err error) error
- func ErrEnvoyFilter(err error) error
- func ErrFetchManifest(err error, des string) error
- func ErrInstallBinary(err error) error
- func ErrInstallIstio(err error) error
- func ErrIstioVet(err error) error
- func ErrIstioVetSync(err error) error
- func ErrMeshConfig(err error) error
- func ErrSampleApp(err error) error
- func ErrTarXZF(err error) error
- func ErrUnzipFile(err error) error
- func New(c adapterconfig.Handler, l logger.Handler, kc adapterconfig.Handler) adapter.Handler
- type Istio
- func (istio *Istio) ApplyOperation(ctx context.Context, opReq adapter.OperationRequest) error
- func (istio *Istio) InstallAddon(namespace string, del bool, addon string) (string, error)
- func (istio *Istio) LoadNamespaceToMesh(namespace string, remove bool) error
- func (istio *Istio) LoadToMesh(namespace string, service string, remove bool) error
- func (istio *Istio) RunVet(ch chan<- *adapter.Event)
- func (istio *Istio) StreamWarn(e *adapter.Event, err error)
Constants ¶
This section is empty.
Variables ¶
var ( // ErrInstallIstioCode represents the errors which are generated // during istio service mesh install process ErrInstallIstioCode = "istio_test_code" // ErrUnzipFileCode represents the errors which are generated // during unzip process ErrUnzipFileCode = "istio_test_code" // ErrTarXZFCode represents the errors which are generated // during decompressing and extracting tar.gz file ErrTarXZFCode = "istio_test_code" // ErrMeshConfigCode represents the errors which are generated // when an invalid mesh config is found ErrMeshConfigCode = "istio_test_code" // ErrFetchManifestCode represents the errors which are generated // during fetch manifest process ErrFetchManifestCode = "istio_test_code" // ErrDownloadBinaryCode represents the errors which are generated // during binary download process ErrDownloadBinaryCode = "istio_test_code" // ErrInstallBinaryCode represents the errors which are generated // during binary installation process ErrInstallBinaryCode = "istio_test_code" // ErrSampleAppCode represents the errors which are generated // duing sample app installation ErrSampleAppCode = "istio_test_code" // ErrEnvoyFilterCode represents the errors which are generated // duing envoy filter patching ErrEnvoyFilterCode = "istio_test_code" // ErrApplyPolicyCode represents the errors which are generated // duing policy apply operation ErrApplyPolicyCode = "istio_test_code" // ErrCustomOperationCode represents the errors which are generated // when an invalid addon operation is requested ErrCustomOperationCode = "istio_test_code" // ErrAddonFromTemplateCode represents the errors which are generated // during addon deployment process ErrAddonFromTemplateCode = "istio_test_code" // ErrAddonInvalidConfigCode represents the errors which are generated // when an invalid addon operation is requested ErrAddonInvalidConfigCode = "istio_test_code" // ErrCreatingIstioClientCode represents the errors which are generated // during creating istio client process ErrCreatingIstioClientCode = "istio_test_code" // ErrIstioVetSyncCode represents the errors which are generated // during istio-vet sync process ErrIstioVetSyncCode = "istio_test_code" // ErrIstioVetCode represents the errors which are generated // during istio-vet process ErrIstioVetCode = "istio_test_code" // ErrOpInvalid represents the errors which are generated // when an invalid operation is requested ErrOpInvalid = errors.NewDefault(errors.ErrOpInvalid, "Invalid operation") )
var AddonTemplate = map[string]adapter.Template{ config.PrometheusAddon: "https://raw.githubusercontent.com/istio/istio/master/samples/addons/prometheus.yaml", config.GrafanaAddon: "https://raw.githubusercontent.com/istio/istio/master/samples/addons/grafana.yaml", config.KialiAddon: "https://raw.githubusercontent.com/istio/istio/master/samples/addons/kiali.yaml", config.JaegerAddon: "https://raw.githubusercontent.com/istio/istio/master/samples/addons/jaeger.yaml", config.ZipkinAddon: "https://raw.githubusercontent.com/istio/istio/master/samples/addons/extras/zipkin.yaml", }
AddonTemplate is as a container for addon templates
Functions ¶
func ErrAddonFromTemplate ¶ added in v0.4.11
ErrAddonFromTemplate is the error for streaming event
func ErrAddonInvalidConfig ¶ added in v0.4.11
ErrAddonInvalidConfig is the error for streaming event
func ErrApplyPolicy ¶ added in v0.4.14
ErrApplyPolicy is the error for streaming event
func ErrCreatingIstioClient ¶ added in v0.4.11
ErrCreatingIstioClient is the error for streaming event
func ErrCustomOperation ¶ added in v0.4.10
ErrCustomOperation is the error for streaming event
func ErrDownloadBinary ¶ added in v0.4.10
ErrDownloadBinary is the error while downloading istio binary
func ErrEnvoyFilter ¶ added in v0.4.14
ErrEnvoyFilter is the error for streaming event
func ErrFetchManifest ¶ added in v0.4.10
ErrFetchManifest is the error for mesh port forward
func ErrInstallBinary ¶ added in v0.4.10
ErrInstallBinary is the error while downloading istio binary
func ErrInstallIstio ¶ added in v0.4.10
ErrInstallIstio is the error for install mesh
func ErrIstioVet ¶ added in v0.4.12
ErrIstioVet is the error for streaming event
func ErrIstioVetSync ¶ added in v0.4.11
ErrIstioVetSync is the error for streaming event
func ErrMeshConfig ¶ added in v0.4.10
ErrMeshConfig is the error for mesh config
func ErrSampleApp ¶ added in v0.4.10
ErrSampleApp is the error for streaming event
func ErrUnzipFile ¶ added in v0.4.10
ErrUnzipFile is the error for unzipping the file
func New ¶ added in v0.4.10
func New(c adapterconfig.Handler, l logger.Handler, kc adapterconfig.Handler) adapter.Handler
New initializes istio handler.
Types ¶
type Istio ¶ added in v0.4.10
Istio represents the istio adapter and embeds adapter.Adapter
func (*Istio) ApplyOperation ¶ added in v0.4.10
ApplyOperation applies the operation on istio
func (*Istio) InstallAddon ¶ added in v0.4.11
InstallAddon installs the specified addon in the given namespace
func (*Istio) LoadNamespaceToMesh ¶ added in v0.4.10
LoadNamespaceToMesh is used to mark namespaces for automatic sidecar injection (or not)
func (*Istio) LoadToMesh ¶ added in v0.4.10
LoadToMesh is used to mark deployment for automatic sidecar injection (or not)