Documentation ¶
Index ¶
- Constants
- func CreatePullSecret(kubectl *kubernetes.Clientset, ...) error
- func CreatePullSecrets(dockerClient client.CommonAPIClient, client *kubernetes.Clientset, ...) error
- func GetImageURL(generatedConfig *generated.Config, imageConfig *v1.ImageConfig, ...) string
- func GetPullSecretNames() []string
- func GetRegistryAuthSecretName(registryURL string) string
- func GetRegistryConfig(imageConfig *v1.ImageConfig) (*v1.RegistryConfig, error)
- func GetRegistryConfigFromImageConfig(imageConf *v1.ImageConfig) (string, *v1.RegistryConfig, error)
- func GetRegistryFromImageName(imageName string) (string, error)
- func InitInternalRegistry(kubectl *kubernetes.Clientset, helm *helm.ClientWrapper, ...) error
- func InitRegistries(dockerClient client.CommonAPIClient, client *kubernetes.Clientset, ...) error
Constants ¶
const InternalRegistryDeploymentName = "devspace-registry-docker-registry"
InternalRegistryDeploymentName is the name of the kubernetes deployment
const InternalRegistryName = "devspace-registry"
InternalRegistryName is the name of the release used to deploy the internal registry
Variables ¶
This section is empty.
Functions ¶
func CreatePullSecret ¶ added in v1.0.0
func CreatePullSecret(kubectl *kubernetes.Clientset, namespace, registryURL, username, passwordOrToken, email string, log log.Logger) error
CreatePullSecret creates an image pull secret for a registry
func CreatePullSecrets ¶
func CreatePullSecrets(dockerClient client.CommonAPIClient, client *kubernetes.Clientset, log log.Logger) error
CreatePullSecrets creates the image pull secrets
func GetImageURL ¶ added in v1.0.0
func GetImageURL(generatedConfig *generated.Config, imageConfig *v1.ImageConfig, includingLatestTag bool) string
GetImageURL returns the image (optional with tag)
func GetPullSecretNames ¶
func GetPullSecretNames() []string
GetPullSecretNames returns all names of auto-generated image pull secrets
func GetRegistryAuthSecretName ¶ added in v1.0.0
GetRegistryAuthSecretName returns the name of the image pull secret for a registry
func GetRegistryConfig ¶ added in v1.0.0
func GetRegistryConfig(imageConfig *v1.ImageConfig) (*v1.RegistryConfig, error)
GetRegistryConfig returns the registry config for an image or an error if the registry is not defined
func GetRegistryConfigFromImageConfig ¶
func GetRegistryConfigFromImageConfig(imageConf *v1.ImageConfig) (string, *v1.RegistryConfig, error)
GetRegistryConfigFromImageConfig from image config returns a registry config from an image config
func GetRegistryFromImageName ¶
GetRegistryFromImageName retrieves the registry name from an imageName
func InitInternalRegistry ¶ added in v1.0.0
func InitInternalRegistry(kubectl *kubernetes.Clientset, helm *helm.ClientWrapper, internalRegistry *v1.InternalRegistryConfig, registryConfig *v1.RegistryConfig) error
InitInternalRegistry deploys and starts a new docker registry if necessary
func InitRegistries ¶
func InitRegistries(dockerClient client.CommonAPIClient, client *kubernetes.Clientset, log log.Logger) error
InitRegistries initializes all registries
Types ¶
This section is empty.