Version: v1.7.4 Latest Latest

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 16 Imported by: 0




View Source
const (
	// DefaultKubeClusterDomain is the default value of KubeClusterDomain.
	DefaultKubeClusterDomain = "cluster.local"
View Source
const (
	// HostIPEnvVar is the environment variable to override host's chosen IP address.
	HostIPEnvVar = "DAPR_HOST_IP"


This section is empty.


func GetConfig

func GetConfig() *rest.Config

GetConfig gets a kubernetes rest config.

func GetHostAddress added in v0.8.0

func GetHostAddress() (string, error)

GetHostAddress selects a valid outbound IP address for the host.

func GetKubeClient

func GetKubeClient() *kubernetes.Clientset

GetKubeClient gets a kubernetes client.

func GetKubeClusterDomain added in v1.3.0

func GetKubeClusterDomain() (string, error)

GetKubeClusterDomain search KubeClusterDomain value from /etc/resolv.conf file.

func ParseEnvString added in v1.1.0

func ParseEnvString(envStr string) []corev1.EnvVar

add env-vars from annotations.

func StringSliceContains added in v1.1.0

func StringSliceContains(needle string, haystack []string) bool

StringSliceContains return true if an array containe the "str" string.

func ToISO8601DateTimeString added in v0.5.0

func ToISO8601DateTimeString(dateTime time.Time) string

ToISO8601DateTimeString converts dateTime to ISO8601 Format ISO8601 Format: 2020-01-01T01:01:01.10101Z.


This section is empty.

Jump to

Keyboard shortcuts

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