Support universe-specific package domain in artifact registry module (#3671)
* universe * tflint * yamllint
This commit is contained in:
committed by
GitHub
parent
8dde9fe773
commit
b18a883506
18
tests/modules/artifact_registry/tftest.yaml
Normal file
18
tests/modules/artifact_registry/tftest.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
# Copyright 2026 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
module: modules/artifact-registry
|
||||
|
||||
tests:
|
||||
universe:
|
||||
27
tests/modules/artifact_registry/universe.tfvars
Normal file
27
tests/modules/artifact_registry/universe.tfvars
Normal file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* Copyright 2026 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
project_id = "eu0:myproject"
|
||||
location = "u-germany-northeast1"
|
||||
name = "myregistry"
|
||||
format = { docker = { standard = {} } }
|
||||
iam = {
|
||||
"roles/artifactregistry.admin" = ["group:cicd@example.com"]
|
||||
}
|
||||
universe = {
|
||||
package_domain = "pkg-berlin-build0.goog"
|
||||
prefix = "eu0"
|
||||
}
|
||||
48
tests/modules/artifact_registry/universe.yaml
Normal file
48
tests/modules/artifact_registry/universe.yaml
Normal file
@@ -0,0 +1,48 @@
|
||||
# Copyright 2026 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# docker.pkg-berlin-build0.goog/eu0/ftpc00-prod-iac-core-0/test
|
||||
|
||||
values:
|
||||
google_artifact_registry_repository.registry:
|
||||
cleanup_policies: []
|
||||
cleanup_policy_dry_run: null
|
||||
description: Terraform-managed registry
|
||||
docker_config: []
|
||||
effective_labels:
|
||||
goog-terraform-provisioned: 'true'
|
||||
format: DOCKER
|
||||
kms_key_name: null
|
||||
labels: null
|
||||
location: u-germany-northeast1
|
||||
maven_config: []
|
||||
mode: STANDARD_REPOSITORY
|
||||
project: eu0:myproject
|
||||
remote_repository_config: []
|
||||
repository_id: myregistry
|
||||
terraform_labels:
|
||||
goog-terraform-provisioned: 'true'
|
||||
timeouts: null
|
||||
virtual_repository_config: []
|
||||
vulnerability_scanning_config:
|
||||
- enablement_config: null
|
||||
google_artifact_registry_repository_iam_binding.authoritative["roles/artifactregistry.admin"]:
|
||||
condition: []
|
||||
location: u-germany-northeast1
|
||||
members:
|
||||
- group:cicd@example.com
|
||||
project: eu0:myproject
|
||||
role: roles/artifactregistry.admin
|
||||
outputs:
|
||||
url: docker.pkg-berlin-build0.goog/eu0/myproject/myregistry
|
||||
Reference in New Issue
Block a user