From 238b1c86849f0800f368091b330f4287ec900c76 Mon Sep 17 00:00:00 2001 From: Zheng Qin Date: Wed, 11 Sep 2024 13:49:42 -0400 Subject: [PATCH 1/3] Generate metadata.display.yaml --- metadata.display.yaml | 135 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 metadata.display.yaml diff --git a/metadata.display.yaml b/metadata.display.yaml new file mode 100644 index 0000000..d9dbca4 --- /dev/null +++ b/metadata.display.yaml @@ -0,0 +1,135 @@ +apiVersion: blueprints.cloud.google.com/v1alpha1 +kind: BlueprintMetadata +metadata: + name: terraform-google-cloud-storage-display + annotations: + config.kubernetes.io/local-config: "true" +spec: + info: + title: Terraform Google Cloud Storage Module + source: + repo: https://github.com/terraform-google-modules/terraform-google-cloud-storage.git + sourceType: git + ui: + input: + variables: + admins: + name: admins + title: Admins + autoclass: + name: autoclass + title: Autoclass + bucket_admins: + name: bucket_admins + title: Bucket Admins + bucket_creators: + name: bucket_creators + title: Bucket Creators + bucket_hmac_key_admins: + name: bucket_hmac_key_admins + title: Bucket Hmac Key Admins + bucket_lifecycle_rules: + name: bucket_lifecycle_rules + title: Bucket Lifecycle Rules + bucket_policy_only: + name: bucket_policy_only + title: Bucket Policy Only + bucket_storage_admins: + name: bucket_storage_admins + title: Bucket Storage Admins + bucket_viewers: + name: bucket_viewers + title: Bucket Viewers + cors: + name: cors + title: Cors + creators: + name: creators + title: Creators + custom_placement_config: + name: custom_placement_config + title: Custom Placement Config + default_event_based_hold: + name: default_event_based_hold + title: Default Event Based Hold + encryption_key_names: + name: encryption_key_names + title: Encryption Key Names + folders: + name: folders + title: Folders + force_destroy: + name: force_destroy + title: Force Destroy + hmac_key_admins: + name: hmac_key_admins + title: Hmac Key Admins + hmac_service_accounts: + name: hmac_service_accounts + title: Hmac Service Accounts + labels: + name: labels + title: Labels + lifecycle_rules: + name: lifecycle_rules + title: Lifecycle Rules + location: + name: location + title: Location + logging: + name: logging + title: Logging + names: + name: names + title: Names + prefix: + name: prefix + title: Prefix + project_id: + name: project_id + title: Project Id + public_access_prevention: + name: public_access_prevention + title: Public Access Prevention + randomize_suffix: + name: randomize_suffix + title: Randomize Suffix + retention_policy: + name: retention_policy + title: Retention Policy + set_admin_roles: + name: set_admin_roles + title: Set Admin Roles + set_creator_roles: + name: set_creator_roles + title: Set Creator Roles + set_hmac_access: + name: set_hmac_access + title: Set Hmac Access + set_hmac_key_admin_roles: + name: set_hmac_key_admin_roles + title: Set Hmac Key Admin Roles + set_storage_admin_roles: + name: set_storage_admin_roles + title: Set Storage Admin Roles + set_viewer_roles: + name: set_viewer_roles + title: Set Viewer Roles + soft_delete_policy: + name: soft_delete_policy + title: Soft Delete Policy + storage_admins: + name: storage_admins + title: Storage Admins + storage_class: + name: storage_class + title: Storage Class + versioning: + name: versioning + title: Versioning + viewers: + name: viewers + title: Viewers + website: + name: website + title: Website From 95f2db3d3e9f2b8f938a5476645c6c7431b93ae2 Mon Sep 17 00:00:00 2001 From: Zheng Qin Date: Thu, 12 Sep 2024 12:29:49 -0400 Subject: [PATCH 2/3] Generate metadata.dispaly.yaml for submodule --- modules/simple_bucket/metadata.display.yaml | 76 +++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 modules/simple_bucket/metadata.display.yaml diff --git a/modules/simple_bucket/metadata.display.yaml b/modules/simple_bucket/metadata.display.yaml new file mode 100644 index 0000000..834d2dd --- /dev/null +++ b/modules/simple_bucket/metadata.display.yaml @@ -0,0 +1,76 @@ +apiVersion: blueprints.cloud.google.com/v1alpha1 +kind: BlueprintMetadata +metadata: + name: terraform-google-cloud-storage-display + annotations: + config.kubernetes.io/local-config: "true" +spec: + info: + title: Terraform Google Cloud Storage Module + source: + repo: https://github.com/terraform-google-modules/terraform-google-cloud-storage.git + sourceType: git + dir: /modules/simple_bucket + ui: + input: + variables: + autoclass: + name: autoclass + title: Autoclass + bucket_policy_only: + name: bucket_policy_only + title: Bucket Policy Only + cors: + name: cors + title: Cors + custom_placement_config: + name: custom_placement_config + title: Custom Placement Config + encryption: + name: encryption + title: Encryption + force_destroy: + name: force_destroy + title: Force Destroy + iam_members: + name: iam_members + title: Iam Members + labels: + name: labels + title: Labels + lifecycle_rules: + name: lifecycle_rules + title: Lifecycle Rules + location: + name: location + title: Location + log_bucket: + name: log_bucket + title: Log Bucket + log_object_prefix: + name: log_object_prefix + title: Log Object Prefix + name: + name: name + title: Name + project_id: + name: project_id + title: Project Id + public_access_prevention: + name: public_access_prevention + title: Public Access Prevention + retention_policy: + name: retention_policy + title: Retention Policy + soft_delete_policy: + name: soft_delete_policy + title: Soft Delete Policy + storage_class: + name: storage_class + title: Storage Class + versioning: + name: versioning + title: Versioning + website: + name: website + title: Website From 5c0744f7e0ea316b6e8d6be1b10cdc3d1a08c5f5 Mon Sep 17 00:00:00 2001 From: Zheng Qin Date: Wed, 18 Sep 2024 11:32:31 -0400 Subject: [PATCH 3/3] Fix headers for the display yaml files --- metadata.display.yaml | 14 ++++++++++++++ modules/simple_bucket/metadata.display.yaml | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/metadata.display.yaml b/metadata.display.yaml index d9dbca4..48eae9a 100644 --- a/metadata.display.yaml +++ b/metadata.display.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 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. + apiVersion: blueprints.cloud.google.com/v1alpha1 kind: BlueprintMetadata metadata: diff --git a/modules/simple_bucket/metadata.display.yaml b/modules/simple_bucket/metadata.display.yaml index 834d2dd..e098d4c 100644 --- a/modules/simple_bucket/metadata.display.yaml +++ b/modules/simple_bucket/metadata.display.yaml @@ -1,3 +1,17 @@ +# Copyright 2024 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. + apiVersion: blueprints.cloud.google.com/v1alpha1 kind: BlueprintMetadata metadata: