|
| 1 | +# Copyright 2022 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +apiVersion: v1 |
| 16 | +kind: Namespace |
| 17 | +metadata: |
| 18 | + name: packagename |
| 19 | + annotations: |
| 20 | + cnrm.cloud.google.com/project-id: googleprojectid |
| 21 | + |
| 22 | +--- |
| 23 | + |
| 24 | +apiVersion: core.cnrm.cloud.google.com/v1beta1 |
| 25 | +kind: ConfigConnectorContext |
| 26 | +metadata: |
| 27 | + name: configconnectorcontext.core.cnrm.cloud.google.com |
| 28 | + namespace: packagename |
| 29 | +spec: |
| 30 | + googleServiceAccount: [email protected] |
| 31 | + |
| 32 | +--- |
| 33 | + |
| 34 | +apiVersion: v1 |
| 35 | +kind: ServiceAccount |
| 36 | +metadata: |
| 37 | + name: cnrm-controller-manager-packagename |
| 38 | + namespace: cnrm-system |
| 39 | + annotations: |
| 40 | + config.kubernetes.io/local-config: generated |
| 41 | + ownerReferences: |
| 42 | + - apiVersion: core.cnrm.cloud.google.com/v1beta1 |
| 43 | + kind: ConfigConnectorContext |
| 44 | + name: configconnectorcontext.core.cnrm.cloud.google.com |
| 45 | + namespace: packagename |
| 46 | + |
| 47 | +--- |
| 48 | + |
| 49 | +apiVersion: iam.cnrm.cloud.google.com/v1beta1 |
| 50 | +kind: IAMServiceAccount |
| 51 | +metadata: |
| 52 | + name: packagename-cc-robot |
| 53 | + namespace: config-control |
| 54 | + annotations: |
| 55 | + cnrm.cloud.google.com/project-id: googleprojectid |
| 56 | +spec: |
| 57 | + displayName: ConfigConnector ServiceAccount |
| 58 | + resourceID: cc-robot |
| 59 | + |
| 60 | +--- |
| 61 | + |
| 62 | +apiVersion: porch.kpt.dev/v1alpha1 |
| 63 | +kind: WorkloadIdentityBinding |
| 64 | +metadata: |
| 65 | + name: packagename-cnrm-controller-manager |
| 66 | + namespace: config-control |
| 67 | +spec: |
| 68 | + resourceRef: |
| 69 | + apiVersion: iam.cnrm.cloud.google.com/v1beta1 |
| 70 | + kind: IAMServiceAccount |
| 71 | + name: packagename-cc-robot |
| 72 | + serviceAccountRef: |
| 73 | + name: cnrm-controller-manager-packagename |
| 74 | + namespace: cnrm-system |
| 75 | + |
| 76 | +--- |
| 77 | + |
| 78 | +apiVersion: iam.cnrm.cloud.google.com/v1beta1 |
| 79 | +kind: IAMPolicyMember |
| 80 | +metadata: |
| 81 | + name: packagename-cc-robot |
| 82 | + namespace: config-control |
| 83 | +spec: |
| 84 | + memberFrom: |
| 85 | + serviceAccountRef: |
| 86 | + name: packagename-cc-robot |
| 87 | + role: roles/owner |
| 88 | + resourceRef: |
| 89 | + apiVersion: resourcemanager.cnrm.cloud.google.com/v1beta1 |
| 90 | + kind: Project |
| 91 | + name: packagename |
| 92 | +--- |
| 93 | +apiVersion: rbac.authorization.k8s.io/v1 |
| 94 | +kind: RoleBinding |
| 95 | +metadata: |
| 96 | + name: "packagename-cnrm:cnrm-viewer" |
| 97 | + namespace: config-control |
| 98 | +subjects: |
| 99 | +- kind: ServiceAccount |
| 100 | + namespace: cnrm-system |
| 101 | + name: cnrm-controller-manager-packagename |
| 102 | +roleRef: |
| 103 | + kind: ClusterRole |
| 104 | + name: cnrm-viewer |
| 105 | + apiGroup: rbac.authorization.k8s.io |
0 commit comments