Documentation ¶
Index ¶
- Constants
- func BuildPatchStruct(config string) (*types.Struct, error)
- func FQDN(name, namespace string) string
- func IsHTTP(port corev1.ServicePort) bool
- func IsLazyEnabled(annotations map[string]string) bool
- func NewIstioClient(kubeconfigPath string) (*istioclient.Clientset, error)
- func NewKubeClient(kubeconfigPath string) (*kubernetes.Clientset, error)
- func ObjectID(name, namespace string) string
- func ParseID(id string) (string, string)
- func PortID(svcID, port string) string
- func ServiceID2EgressString(id string) string
- func UpstreamCluster2ServiceID(cluster string) string
- func WaitDeployment(ctx context.Context, client *kubernetes.Clientset, ns, name string) (err error)
Constants ¶
View Source
const (
// DefaultDNS is the suffix of default fqdn in kubernetes
DefaultDNS = "svc.cluster.local"
)
Variables ¶
This section is empty.
Functions ¶
func BuildPatchStruct ¶
BuildPatchStruct creates types.Struct from istio EnvoyFilter slice string
func IsHTTP ¶
func IsHTTP(port corev1.ServicePort) bool
IsHTTP check if the port is using http protocol
func IsLazyEnabled ¶
IsLazyEnabled check if lazyxds is enabled
func NewIstioClient ¶
func NewIstioClient(kubeconfigPath string) (*istioclient.Clientset, error)
NewIstioClient creates new istio client which use to handle istio CRD
func NewKubeClient ¶
func NewKubeClient(kubeconfigPath string) (*kubernetes.Clientset, error)
NewKubeClient creates new kube client
func ServiceID2EgressString ¶
ServiceID2EgressString turn the service id to egress string of sidecar crd
func UpstreamCluster2ServiceID ¶
UpstreamCluster2ServiceID extract the service id from xds cluster id
func WaitDeployment ¶
WaitDeployment wait the deployment ready
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.