Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get external Policies Constraint and ConstraintTemplate resources #12

Open
mathieu-benoit opened this issue Feb 28, 2022 · 0 comments
Open
Labels

Comments

@mathieu-benoit
Copy link
Owner

mathieu-benoit commented Feb 28, 2022

In GitHub actions (in template repo), add a way to grab additional Constraint and ConstraintTemplate resources from an external repo.

Take inspiration of this like illustrated here:

- id: 'Download policies'
  # This step fetches the policies from the Anthos Config Management repository
  # and consolidates every resource in a single file.
  name: 'gcr.io/kpt-dev/kpt'
  entrypoint: '/bin/sh'
  args: ['-c', 'kpt pkg get https://github.com/GoogleCloudPlatform/anthos-config-management-samples.git/ci-app/acm-repo/[email protected] constraints
                  && kpt fn source constraints/ hydrated-manifests/ > hydrated-manifests/kpt-manifests.yaml']
@mathieu-benoit mathieu-benoit changed the title Add a parameter to grab external Policies Constraint and ConstratingTemplate resources Add a parameter to grab external Policies Constraint and ConstraintTemplate resources Feb 28, 2022
@mathieu-benoit mathieu-benoit changed the title Add a parameter to grab external Policies Constraint and ConstraintTemplate resources Get external Policies Constraint and ConstraintTemplate resources Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant