forked from GoogleCloudPlatform/k8s-config-connector
-
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.
Merge pull request GoogleCloudPlatform#3021 from maqiuyujoyce/202410-…
…fix-pam Fix hanging deletion for PrivilegedAccessManagerEntitlement
- Loading branch information
Showing
8 changed files
with
172 additions
and
80 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...egedaccessmanagerentitlement/project-level-entitlement/iam_v1beta1_iamserviceaccount.yaml
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright 2024 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
apiVersion: iam.cnrm.cloud.google.com/v1beta1 | ||
kind: IAMServiceAccount | ||
metadata: | ||
annotations: | ||
# Replace ${PROJECT_ID?} with your project ID. | ||
cnrm.cloud.google.com/project-id: "${PROJECT_ID?}" | ||
name: pame-dep-project |
34 changes: 34 additions & 0 deletions
34
...evel-entitlement/privilegedaccessmanager_v1alpha1_privilegedaccessmanagerentitlement.yaml
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright 2024 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
apiVersion: privilegedaccessmanager.cnrm.cloud.google.com/v1alpha1 | ||
kind: PrivilegedAccessManagerEntitlement | ||
metadata: | ||
name: privilegedaccessmanagerentitlement-sample-project | ||
spec: | ||
projectRef: | ||
# Replace ${PROJECT_ID?} with your project ID | ||
external: "projects/${PROJECT_ID?}" | ||
location: global | ||
maxRequestDuration: 1800s | ||
privilegedAccess: | ||
gcpIAMAccess: | ||
roleBindings: | ||
- role: roles/pubsub.admin | ||
requesterJustificationConfig: | ||
notMandatory: {} | ||
eligibleUsers: | ||
- principals: | ||
# Replace ${PROJECT_ID?} with your project ID | ||
- serviceAccount:pame-dep-project@${PROJECT_ID?}.iam.gserviceaccount.com |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright 2024 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
apiVersion: core.cnrm.cloud.google.com/v1alpha1 | ||
kind: ServiceMapping | ||
metadata: | ||
name: privilegedaccessmanager.cnrm.cloud.google.com | ||
namespace: cnrm-system | ||
spec: | ||
name: PrivilegedAccessManager | ||
version: v1alpha1 | ||
serviceHostName: "privilegedaccessmanager.googleapis.com" | ||
resources: | ||
- name: google_privileged_access_manager_entitlement | ||
kind: PrivilegedAccessManagerEntitlement | ||
direct: true |
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
2 changes: 2 additions & 0 deletions
2
...basicproject/_generated_object_privilegedaccessmanagerentitlementbasicproject.golden.yaml
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
2 changes: 2 additions & 0 deletions
2
...mentfullfolder/_generated_object_privilegedaccessmanagerentitlementfullfolder.golden.yaml
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
2 changes: 2 additions & 0 deletions
2
...ntitlementfullorg/_generated_object_privilegedaccessmanagerentitlementfullorg.golden.yaml
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
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