-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from sparkfabrik/feat/2763_add_mode_option_to_r…
…epository feat: add mode option to artifact registry repository
- Loading branch information
Showing
9 changed files
with
130 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,10 @@ Create two sample Artifact Registry registry in `my-sample-project-id` project: | |
|
||
the group [email protected] can read the repository, only [email protected] user can write | ||
|
||
- project-2-images | ||
- project-2-virtual (virtual repository) | ||
|
||
the group [email protected] can read the repository, only [email protected] user can write | ||
|
||
- project-3-remote (remote repository) | ||
|
||
the group [email protected] can read the repository, only [email protected] user can write |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
project_id = "my-sample-project-id" | ||
|
||
artifact_repositories = { | ||
repositories = { | ||
"project-images" = { | ||
description = "Docker images repository" | ||
readers = [ | ||
|
@@ -11,8 +11,32 @@ artifact_repositories = { | |
] | ||
location = "europe-west1" | ||
}, | ||
"project-2-images" = { | ||
"project-2-virtual" = { | ||
description = "Docker images repository 2" | ||
mode = "VIRTUAL_REPOSITORY" | ||
virtual_repository_config = { | ||
"my-repository-upstream-1" = { | ||
repository = "projects/p1/locations/us-central1/repository/repo1" | ||
priority = 10 | ||
} | ||
"my-repository-upstream-2" = { | ||
repository = "projects/p1/locations/us-central1/repository/repo2" | ||
} | ||
} | ||
readers = [ | ||
"group:[email protected]" | ||
] | ||
writers = [ | ||
"user:[email protected]" | ||
] | ||
} | ||
"project-3-remote" = { | ||
description = "Docker images repository 3" | ||
mode = "REMOTE_REPOSITORY" | ||
remote_repository_config_docker = { | ||
description = "Docker images repository 3" | ||
custom_repository_uri = "https://registry-1.docker.io" | ||
} | ||
readers = [ | ||
"group:[email protected]" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
variable "repositories" { | ||
description = "List of Artifact Registry repositories to create." | ||
type = map(any) | ||
} | ||
|
||
variable "project_id" { | ||
description = "The GCP project ID that hosts the Artifact Registry." | ||
type = string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters