Documentation ¶
Index ¶
- Constants
- func CheckIsACRImage(imageTag string) bool
- func CheckIsECRImage(imageTag string) bool
- func CheckIsGCRImage(imageTag string) bool
- func GetCloudProvider(currContext string) string
- func GetCloudVendorRegistryCredentials(imageTag string) (map[string]types.AuthConfig, error)
- func GetDescriptiveInfoFromCloudProvider(cluster string, cloudProvider string) (workloadinterface.IMetadata, error)
- func GetImageRegistryCredentials(imageTag string, pod *corev1.Pod) (map[string]types.AuthConfig, error)
- func GetKubeContextName() string
- func GetLoginDetailsForAzurCR(imageTag string) (string, string, error)
- func GetLoginDetailsForECR(imageTag string) (string, string, error)
- func GetLoginDetailsForGCR(imageTag string) (string, string, error)
- func GetWorkloadImageRegistryCredentials(imageTag string, workload k8sinterface.IWorkload) (map[string]types.AuthConfig, error)
- func GetWorkloadsImages(workload k8sinterface.IWorkload) map[string]string
- func IsRunningInCloudProvider(cluster string) bool
Constants ¶
const ( TypeCloudProviderDescription workloadinterface.ObjectType = "CloudProviderDescribe" // DEPRECATED CloudProviderDescriptionKind = "ClusterDescription" // DEPRECATED KS_CLOUD_PROVIDER_ENV_VAR = "KS_CLOUD_PROVIDER" KS_KUBE_CLUSTER_ENV_VAR = "KS_KUBE_CLUSTER" )
Variables ¶
This section is empty.
Functions ¶
func CheckIsACRImage ¶
func CheckIsECRImage ¶
CheckIsECRImage check if this image is suspected as ECR hosted image
func CheckIsGCRImage ¶
func GetCloudProvider ¶
Try to lookup from env var and then from current context
func GetCloudVendorRegistryCredentials ¶
func GetCloudVendorRegistryCredentials(imageTag string) (map[string]types.AuthConfig, error)
func GetDescriptiveInfoFromCloudProvider ¶
func GetDescriptiveInfoFromCloudProvider(cluster string, cloudProvider string) (workloadinterface.IMetadata, error)
func GetImageRegistryCredentials ¶
func GetImageRegistryCredentials(imageTag string, pod *corev1.Pod) (map[string]types.AuthConfig, error)
DEPRECATED GetImageRegistryCredentials returns various credentials for images in the pod imageTag empty means returns all of the credentials for all images in pod spec containers pod.ObjectMeta.Namespace must be well setted
func GetKubeContextName ¶
func GetKubeContextName() string
func GetLoginDetailsForAzurCR ¶
GetLoginDetailsForAzurCR return user name + password to use
func GetLoginDetailsForECR ¶
GetLoginDetailsForECR return user name + password using the default iam-role OR ~/.aws/config of the machine
func GetLoginDetailsForGCR ¶
GetLoginDetailsForGCR return user name + password to use
func GetWorkloadImageRegistryCredentials ¶
func GetWorkloadImageRegistryCredentials(imageTag string, workload k8sinterface.IWorkload) (map[string]types.AuthConfig, error)
GetImageRegistryCredentials returns various credentials for images in the pod imageTag empty means returns all of the credentials for all images in pod spec containers pod.ObjectMeta.Namespace must be well setted
func GetWorkloadsImages ¶
func GetWorkloadsImages(workload k8sinterface.IWorkload) map[string]string
GetWorkloadsImages returns map[<image name>]<container name>
Types ¶
This section is empty.