Documentation ¶
Index ¶
- Constants
- func BuildIpsData(dockerRegistryUrl, dockerRegistryUsername, dockerRegistryPassword, ... string) map[string][]byte
- func BuildIpsName(dockerRegistryId string, ipsCredentialType string, ipsCredentialValue string) string
- func CheckIfImagePullSecretAccessProvided(appliedClusterIdsCsv string, ignoredClusterIdsCsv string, clusterId int) bool
- func CreateCredentialForEcr(awsRegion, awsAccessKey, awsSecretKey string) (string, string, error)
- func GetUsernamePasswordFromIpsSecret(dockerRegistryUrl string, data map[string][]byte) (string, string)
- func SetIpsNameInValues(valuesContent []byte, ipsName string) ([]byte, error)
- type DockerIpsCustomCredential
- type DockerRegistryIpsConfigService
- type DockerRegistryIpsConfigServiceImpl
- func (impl DockerRegistryIpsConfigServiceImpl) HandleImagePullSecretOnApplicationDeployment(environment *repository2.Environment, ciPipelineId int, ...) ([]byte, error)
- func (impl DockerRegistryIpsConfigServiceImpl) IsImagePullSecretAccessProvided(dockerRegistryId string, clusterId int) (bool, error)
Constants ¶
View Source
const ALL_CLUSTER_ID string = "-1"
View Source
const IMAGE_PULL_SECRET_KEY_IN_VALUES_YAML = "imagePullSecrets"
View Source
const IPS_CREDENTIAL_TYPE_CUSTOM_CREDENTIAL = "CUSTOM_CREDENTIAL"
View Source
const IPS_CREDENTIAL_TYPE_NAME = "NAME"
View Source
const IPS_CREDENTIAL_TYPE_SAME_AS_REGISTRY = "SAME_AS_REGISTRY"
Variables ¶
This section is empty.
Functions ¶
func BuildIpsData ¶
func BuildIpsName ¶
func BuildIpsName(dockerRegistryId string, ipsCredentialType string, ipsCredentialValue string) string
eg: quayio-dtron-ips
func CreateCredentialForEcr ¶
returns username and password
Types ¶
type DockerRegistryIpsConfigService ¶
type DockerRegistryIpsConfigService interface { IsImagePullSecretAccessProvided(dockerRegistryId string, clusterId int) (bool, error) HandleImagePullSecretOnApplicationDeployment(environment *repository2.Environment, ciPipelineId int, valuesFileContent []byte) ([]byte, error) }
type DockerRegistryIpsConfigServiceImpl ¶
type DockerRegistryIpsConfigServiceImpl struct {
// contains filtered or unexported fields
}
func NewDockerRegistryIpsConfigServiceImpl ¶
func NewDockerRegistryIpsConfigServiceImpl(logger *zap.SugaredLogger, dockerRegistryIpsConfigRepository repository.DockerRegistryIpsConfigRepository, k8sUtil *util.K8sUtil, clusterService cluster.ClusterService, ciPipelineRepository pipelineConfig.CiPipelineRepository, dockerArtifactStoreRepository repository.DockerArtifactStoreRepository) *DockerRegistryIpsConfigServiceImpl
func (DockerRegistryIpsConfigServiceImpl) HandleImagePullSecretOnApplicationDeployment ¶
func (impl DockerRegistryIpsConfigServiceImpl) HandleImagePullSecretOnApplicationDeployment(environment *repository2.Environment, ciPipelineId int, valuesFileContent []byte) ([]byte, error)
func (DockerRegistryIpsConfigServiceImpl) IsImagePullSecretAccessProvided ¶
func (impl DockerRegistryIpsConfigServiceImpl) IsImagePullSecretAccessProvided(dockerRegistryId string, clusterId int) (bool, error)
Click to show internal directories.
Click to hide internal directories.