GoogleCloudPlatform / pubsec-declarative-toolkit

The GCP PubSec Declarative Toolkit is a collection of declarative solutions to help you on your Journey to Google Cloud. Solutions are designed using Config Connector and deployed using Config Controller.
Apache License 2.0
31 stars 28 forks source link

Automation: One click scripted Landing Zone : onboard org + KCC cluster + core-landing-zone/hub-env deployment #595

Open obriensystems opened 1 year ago

obriensystems commented 1 year ago

As part of automating the core-landing-zone and hub-env see #446 packages deployment a single script was developed that does all 3 steps

For example the following setters.yaml is generated from https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/blob/gh446-hub/solutions/setup.sh

apiVersion: v1
kind: ConfigMap
metadata: # kpt-merge: /setters
  name: setters
  annotations:
    config.kubernetes.io/local-config: "true"
    internal.kpt.dev/upstream-identifier: '|ConfigMap|default|setters'
data: 
  org-id: "59485982875"
  lz-folder-id: "355816628468"
  billing-id: "01E6E8-A42E99-D21FF3"
  management-project-id: "kcc-boot-ls-8704"
  management-project-number: "145363557028"
  management-namespace: config-control
  allowed-trusted-image-projects: |
    - "projects/cos-cloud"
  allowed-contact-domains: |
    - "@landing.systems"
  allowed-policy-domain-members: |
    - "C03lz5ebg"
  allowed-vpc-peering: |
    - "under:organizations/59485982875"
  logging-project-id: logging-project-ls4
  security-log-bucket: security-log-bucket-ls4
  platform-and-component-log-bucket: platform-and-component-log-bucket-ls4
  retention-locking-policy: "false"
  retention-in-days: "1"
  dns-project-id: dns-project-ls4
  dns-name: "landing.systems."
fmichaelobrien commented 1 year ago

see retest on a clean org in progress in https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/issues/611

fmichaelobrien commented 11 months ago