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 ErrInstallBinary(err error) error
- func ErrInstallIstio(err error) error
- func ErrInvalidOAMComponentType(compName string) error
- func ErrIstioVet(err error) error
- func ErrIstioVetSync(err error) error
- func ErrMeshConfig(err error) error
- func ErrParseIstioCoreComponent(err error) error
- func ErrRunIstioCtlCmd(err error, des string) 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 CompHandler
- type Istio
- func (istio *Istio) ApplyOperation(ctx context.Context, opReq adapter.OperationRequest) error
- func (istio *Istio) HandleApplicationConfiguration(config v1alpha1.Configuration, isDel bool) (string, error)
- func (istio *Istio) HandleComponents(comps []v1alpha1.Component, isDel bool) (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) ProcessOAM(ctx context.Context, oamReq adapter.OAMRequest) (string, 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 = "1002" // ErrUnzipFileCode represents the errors which are generated // during unzip process ErrUnzipFileCode = "1003" // ErrTarXZFCode represents the errors which are generated // during decompressing and extracting tar.gz file ErrTarXZFCode = "1004" // ErrMeshConfigCode represents the errors which are generated // when an invalid mesh config is found ErrMeshConfigCode = "1005" // ErrRunIstioCtlCmdCode represents the errors which are generated // during fetch manifest process ErrRunIstioCtlCmdCode = "1006" // ErrDownloadBinaryCode represents the errors which are generated // during binary download process ErrDownloadBinaryCode = "1007" // ErrInstallBinaryCode represents the errors which are generated // during binary installation process ErrInstallBinaryCode = "1008" // ErrSampleAppCode represents the errors which are generated // duing sample app installation ErrSampleAppCode = "1009" // ErrEnvoyFilterCode represents the errors which are generated // duing envoy filter patching ErrEnvoyFilterCode = "1010" // ErrApplyPolicyCode represents the errors which are generated // duing policy apply operation ErrApplyPolicyCode = "1011" // ErrCustomOperationCode represents the errors which are generated // when an invalid addon operation is requested ErrCustomOperationCode = "1012" // ErrAddonFromTemplateCode represents the errors which are generated // during addon deployment process ErrAddonFromTemplateCode = "1013" // ErrAddonInvalidConfigCode represents the errors which are generated // when an invalid addon operation is requested ErrAddonInvalidConfigCode = "1014" // ErrCreatingIstioClientCode represents the errors which are generated // during creating istio client process ErrCreatingIstioClientCode = "1015" // ErrIstioVetSyncCode represents the errors which are generated // during istio-vet sync process ErrIstioVetSyncCode = "1016" // ErrIstioVetCode represents the errors which are generated // during istio-vet process ErrIstioVetCode = "1017" // ErrParseOAMComponentCode represents the error code which is // generated during the OAM component parsing ErrParseOAMComponentCode = "1018" // ErrParseOAMConfigCode represents the error code which is // generated during the OAM configuration parsing ErrParseOAMConfigCode = "1019" // ErrNilClientCode represents the error code which is // generated when kubernetes client is nil ErrNilClientCode = "1020" // ErrParseIstioCoreComponentCode represents the error code which is // generated when istio core component manifest parsing fails ErrParseIstioCoreComponentCode = "1021" // ErrInvalidOAMComponentTypeCode represents the error code which is // generated when an invalid oam component is requested ErrInvalidOAMComponentTypeCode = "1022" // ErrOpInvalidCode represents the error code which is // generated when an invalid operation is requested ErrOpInvalidCode = "1023" // ErrOpInvalid represents the errors which are generated // when an invalid operation is requested ErrOpInvalid = errors.New(ErrOpInvalidCode, errors.Alert, []string{"Invalid operation"}, []string{}, []string{}, []string{}) // ErrParseOAMComponent represents the error which is // generated during the OAM component parsing ErrParseOAMComponent = errors.New(ErrParseOAMComponentCode, errors.Alert, []string{"error parsing the component"}, []string{}, []string{}, []string{}) // ErrParseOAMConfig represents the error which is // generated during the OAM configuration parsing ErrParseOAMConfig = errors.New(ErrParseOAMConfigCode, errors.Alert, []string{"error parsing the configuration"}, []string{}, []string{}, []string{}) // ErrNilClient represents the error which is // generated when kubernetes client is nil ErrNilClient = errors.New(ErrNilClientCode, errors.Alert, []string{"kubernetes client not initialized"}, []string{}, []string{}, []string{}) )
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 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 ErrInvalidOAMComponentType ¶ added in v0.5.9
ErrInvalidOAMComponentType is the error when the OAM component name is not valid
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 ErrParseIstioCoreComponent ¶ added in v0.5.9
ErrParseIstioCoreComponent is the error when istio core component manifest parsing fails
func ErrRunIstioCtlCmd ¶ added in v0.4.17
ErrRunIstioCtlCmd is the error for mesh port forward
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 CompHandler ¶ added in v0.5.9
CompHandler is the type for functions which can handle OAM components
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) HandleApplicationConfiguration ¶ added in v0.4.19
func (istio *Istio) HandleApplicationConfiguration(config v1alpha1.Configuration, isDel bool) (string, error)
HandleApplicationConfiguration handles the processing of OAM application configuration
func (*Istio) HandleComponents ¶ added in v0.4.19
HandleComponents handles the processing of OAM components
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)
func (*Istio) ProcessOAM ¶ added in v0.4.19
ProcessOAM will handles the grpc invocation for handling OAM objects