package build import ( "flag" ) // ContainerRegistryConfig contains the details needed to reference images within // a repository and pull them with authentication, assuming that the referenced // pull secret already exists. // This is bad and should probably not exist. type ContainerRegistryConfig struct { URI string PullSecret string } const ( // DefaultPublicContainerRegistry is the default Google Artifact Registry // URL used for public Edge images. Only mirrors of open source images // should be hosted at this registry. Binaries that need to modify this // value at runtime should use BindContainerRegistryFlags DefaultPublicContainerRegistry = "us-east1-docker.pkg.dev/ret-edge-pltf-infra/thirdparty" // EdgeWorkloadsRegistry is the default Google Artifact Registry // URL used for Edge Workload images EdgeWorkloadsRegistry = "us-east1-docker.pkg.dev/ret-edge-pltf-infra/edge-workloads" // WorkloadsDirectory is the default Google Artifact Registry // URL used for Warehouse images WarehouseRegistry = "us-east1-docker.pkg.dev/ret-edge-pltf-infra/warehouse" // WorkloadsDirectory is the default Google Artifact Registry // URL used for Workload images WorkloadsDirectory = "us-east1-docker.pkg.dev/ret-edge-pltf-infra/workloads" ) // BindContainerRegistryFlags binds a flag for a container registry URI using a // consistent flag name and default value. func RegisterContainerRegistryFlags(fs *flag.FlagSet) *string { return fs.String("container-registry-uri", DefaultPublicContainerRegistry, "the container registry uri containing Edge images") }