-
Notifications
You must be signed in to change notification settings - Fork 293
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Checklist
- I did not find a related open issue.
- I did not find a solution in the troubleshooting guide: (https://cloud.google.com/config-connector/docs/troubleshooting)
- If this issue is time-sensitive, I have submitted a corresponding issue with GCP support.
Bug Description
I'm trying to use the Go client package for IAMPolicyMember
based on https://cloud.google.com/config-connector/docs/reference/resource-docs/iam/iampolicymember#external_project_level_policy_member. But the package doesn't match the schema in the document.
In the doc:
// ...
spec:
member: serviceAccount:iampolicymember-dep-projectlevel@${PROJECT_ID?}.iam.gserviceaccount.com
role: roles/storage.admin
resourceRef:
apiVersion: resourcemanager.cnrm.cloud.google.com/v1beta1
kind: Project
external: projects/${PROJECT_ID?}
In the package (https://github.com/GoogleCloudPlatform/k8s-config-connector/blob/f158208856e727336001b17397cbaa4c918d2ba4/pkg/apis/k8s/v1alpha1/condition_types.go#L29-L37):
type ResourceRef struct {
/* The external name of the referenced resource */
External string `json:"external,omitempty"`
/* Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */
Name string `json:"name,omitempty"`
/* Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */
Namespace string `json:"namespace,omitempty"`
}
Therefore, I can't specify a response properly.
Additional Diagnostic Information
Kubernetes Cluster Version
N/A
Config Connector Version
N/A
Config Connector Mode
N/A
Log Output
N/A
Steps to Reproduce
Steps to reproduce the issue
$ go get github.com/GoogleCloudPlatform/k8s-config-connector@1.40.0
YAML snippets
N/A
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working