...

Source file src/edge-infra.dev/pkg/edge/component/build/registry.go

Documentation: edge-infra.dev/pkg/edge/component/build

     1  package build
     2  
     3  import (
     4  	"flag"
     5  )
     6  
     7  // ContainerRegistryConfig contains the details needed to reference images within
     8  // a repository and pull them with authentication, assuming that the referenced
     9  // pull secret already exists.
    10  // This is bad and should probably not exist.
    11  type ContainerRegistryConfig struct {
    12  	URI        string
    13  	PullSecret string
    14  }
    15  
    16  const (
    17  	// DefaultPublicContainerRegistry is the default Google Artifact Registry
    18  	// URL used for public Edge images. Only mirrors of open source images
    19  	// should be hosted at this registry. Binaries that need to modify this
    20  	// value at runtime should use BindContainerRegistryFlags
    21  	DefaultPublicContainerRegistry = "us-east1-docker.pkg.dev/ret-edge-pltf-infra/thirdparty"
    22  	// EdgeWorkloadsRegistry is the default Google Artifact Registry
    23  	// URL used for Edge Workload images
    24  	EdgeWorkloadsRegistry = "us-east1-docker.pkg.dev/ret-edge-pltf-infra/edge-workloads"
    25  	// WorkloadsDirectory is the default Google Artifact Registry
    26  	// URL used for Warehouse images
    27  	WarehouseRegistry = "us-east1-docker.pkg.dev/ret-edge-pltf-infra/warehouse"
    28  	// WorkloadsDirectory is the default Google Artifact Registry
    29  	// URL used for Workload images
    30  	WorkloadsDirectory = "us-east1-docker.pkg.dev/ret-edge-pltf-infra/workloads"
    31  )
    32  
    33  // BindContainerRegistryFlags binds a flag for a container registry URI using a
    34  // consistent flag name and default value.
    35  func RegisterContainerRegistryFlags(fs *flag.FlagSet) *string {
    36  	return fs.String("container-registry-uri", DefaultPublicContainerRegistry, "the container registry uri containing Edge images")
    37  }
    38  

View as plain text