GoogleCloudPlatform / GoogleCloudPlatform/pubsec-declarative-toolkit

[ENHANCEMENT] full workaround for #103 where we .krmignore the policy folders that block the landing-zone solution

Open
#114 2 comments 0 reactions 0 assignees View on GitHub
enhancement Landing Zone validate_with_v2
Dominant language
Shell
Stars
36
Forks
26
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
A better fix/enhancement for getting policy deployments working in the landing-zone solution

undo adding
```
environments/common/guardrails-policies
environments/common/general-policies/naming-rules
```
in https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/blob/main/solutions/landing-zone/.krmignore#L1

to avoid
```
michael@cloudshell:~/github/GoogleCloudPlatform/pubsec-declarative-toolkit (landing-zone-controller-1z583)$ kpt live apply landing-zone --reconcile-timeout=2m --output=table
Error: 4 resource types could not be found in the cluster or as CRDs among the applied resources.

Resource types:
constraints.gatekeeper.sh/v1beta1, Kind=NamingPolicy
constraints.gatekeeper.sh/v1beta1, Kind=DataLocation
constraints.gatekeeper.sh/v1beta1, Kind=LimitEgressTraffic
constraints.gatekeeper.sh/v1beta1, Kind=CloudMarketPlaceConfig
```

See linking to existing #103 and the PR https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/pull/107

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.