istio

package
v1.0.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperatorComponent   = "operator"
	OneAgentComponent   = "oneagent"
	ActiveGateComponent = "activegate"
	IstioGVRName        = "networking.istio.io"
	IstioGVRVersion     = "v1beta1"
)

Variables

View Source
var (
	IstioGVR = fmt.Sprintf("%s/%s", IstioGVRName, IstioGVRVersion)
)

Functions

func BuildNameForFQDNServiceEntry

func BuildNameForFQDNServiceEntry(ownerName, component string) string

func BuildNameForIPServiceEntry

func BuildNameForIPServiceEntry(ownerName, component string) string

Types

type Client

type Client struct {
	IstioClientset istioclientset.Interface
	Scheme         *runtime.Scheme
	Owner          metav1.Object
}

Client - an adapter for the external istioclientset library

func NewClient

func NewClient(config *rest.Config, scheme *runtime.Scheme, owner metav1.Object) (*Client, error)

func (*Client) CheckIstioInstalled

func (cl *Client) CheckIstioInstalled() (bool, error)

func (*Client) CreateOrUpdateServiceEntry

func (cl *Client) CreateOrUpdateServiceEntry(ctx context.Context, newServiceEntry *istiov1beta1.ServiceEntry) error

func (*Client) CreateOrUpdateVirtualService

func (cl *Client) CreateOrUpdateVirtualService(ctx context.Context, newVirtualService *istiov1beta1.VirtualService) error

func (*Client) DeleteServiceEntry

func (cl *Client) DeleteServiceEntry(ctx context.Context, name string) error

func (*Client) DeleteVirtualService

func (cl *Client) DeleteVirtualService(ctx context.Context, name string) error

func (*Client) GetServiceEntry

func (cl *Client) GetServiceEntry(ctx context.Context, name string) (*istiov1beta1.ServiceEntry, error)

func (*Client) GetVirtualService

func (cl *Client) GetVirtualService(ctx context.Context, name string) (*istiov1beta1.VirtualService, error)

type ClientBuilder

type ClientBuilder func(config *rest.Config, scheme *runtime.Scheme, owner metav1.Object) (*Client, error)

type Reconciler

type Reconciler interface {
	ReconcileAPIUrl(ctx context.Context, dynakube *dynatracev1beta1.DynaKube) error
	ReconcileCodeModuleCommunicationHosts(ctx context.Context, dynakube *dynatracev1beta1.DynaKube) error
	ReconcileActiveGateCommunicationHosts(ctx context.Context, dynakube *dynatracev1beta1.DynaKube) error
}

func NewReconciler

func NewReconciler(istio *Client) Reconciler

type ReconcilerBuilder added in v1.0.0

type ReconcilerBuilder func(istio *Client) Reconciler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL