forked from GoogleCloudPlatform/csp-config-management
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synced from v1.8.0-rc.8-65-g4127ccd35
- Loading branch information
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,16 +19,17 @@ steps: | |
# available in the repository. | ||
name: 'gcr.io/google.com/cloudsdktool/cloud-sdk' | ||
entrypoint: '/bin/sh' | ||
args: ['-c', 'mkdir hydrated-manifests && kubectl kustomize config/prod > hydrated-manifests/prod.yaml'] | ||
args: ['-c', 'mkdir tmp && kubectl kustomize config/prod > tmp/prod.yaml'] | ||
- 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' | ||
# and consolidates every resource in a single directory. | ||
name: 'gcr.io/kpt-dev/kpt:v1.0.0-beta.3' | ||
entrypoint: '/bin/sh' | ||
args: ['-c', 'kpt pkg get https://github.com/GoogleCloudPlatform/csp-config-management.git/ci-app/acm-repo/[email protected] constraints | ||
&& kpt fn source constraints/ hydrated-manifests/ > hydrated-manifests/kpt-manifests.yaml'] | ||
&& cp -a constraints/* tmp/'] | ||
- id: 'Validate against policies' | ||
# This step validates that all resources comply with all policies. | ||
name: 'gcr.io/config-management-release/policy-controller-validate' | ||
args: ['--input', 'hydrated-manifests/kpt-manifests.yaml'] | ||
name: 'gcr.io/kpt-dev/kpt:v1.0.0-beta.3' | ||
entrypoint: '/bin/sh' | ||
args: ['-c', 'kpt fn eval tmp/ --image gcr.io/kpt-fn/gatekeeper:v0'] | ||
# [END cloudbuild_config] |