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

fix: update proxy setter and iam resources #789

Closed alaincormier-ssc closed 8 months ago

alaincormier-ssc commented 8 months ago

closes #786 to accommodate more than one group

WARNING: contains change to an existing setter's value format

for example, a setter value like below:

  ...
  gke-admins: |
    - member: 'group:my-admins1@example.com'
    - member: 'group:my-admins2@example.com'
  ...

will render an IAMPartialPolicy bindings role members like this:

  ...
  bindings:
    - role: roles/viewer
      members: # kpt-set: ${gke-admins}
        - member: group:my-admins1@example.com
        - member: group:my-admins2@example.com
    ...