You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the instructions at https://github.com/GoogleCloudPlatform/blueprints/tree/a814f19df7a68e9e099203468177b4921bbb102b/catalog/project to create a project specific namespace. When the following IAM yaml file is applied with the commented line uncommented, the kpt live apply returned within 5 seconds. It took me almost 1 hour to figure out I was missing the namespace. None of the logs had any clues about why the kpt live apply was stuck as namespace: delete-me-356017 was missing. No IAM policy was created as expected. It was annoying to have a bug like this without explicit error. iam-exampe.yaml
$ kpt fn render && kpt live init --namespace ${NAMESPACE}
Package "delete-me-356017":
[RUNNING] "gcr.io/kpt-fn/apply-setters:v0.1"
[PASS] "gcr.io/kpt-fn/apply-setters:v0.1" in 400ms
Results:
[info] spec.bindings[0].members[0].member: set field value to "user:hilliao@gmail.com"
[info] spec.resourceRef.namespace: set field value to "projects"
[info] spec.resourceRef.name: set field value to "delete-me-356017"
Successfully executed 1 function(s) in 1 package(s).
initializing Kptfile inventory info (namespace: config-control)...success
$ kpt live apply
W0711 11:28:12.717846 2832869 gcp.go:120] WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead.
To learn more, consult https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
installing inventory ResourceGroup CRD.
configmap/setters created
iampartialpolicy.iam.cnrm.cloud.google.com/iam-storage-delete-me-356017 created
2 resource(s) applied. 2 created, 0 unchanged, 0 configured, 0 failed
configmap/setters reconcile pending
E0711 11:28:14.092293 2832869 task.go:270] Empty object UID from ResourceCache (status: NotFound): default_iam-storage-delete-me-356017_iam.cnrm.cloud.google.com_IAMPartialPolicy
iampartialpolicy.iam.cnrm.cloud.google.com/iam-storage-delete-me-356017 reconcile pending
configmap/setters reconciled
^C
The text was updated successfully, but these errors were encountered:
@kaariger , the linked issue shows karlkfi believes reconciliation was stuck. I think the expected behavior is to fail as the namespace was not correctly specified. DO you agree?
I followed the instructions at https://github.com/GoogleCloudPlatform/blueprints/tree/a814f19df7a68e9e099203468177b4921bbb102b/catalog/project to create a project specific namespace. When the following IAM yaml file is applied with the commented line uncommented, the
kpt live apply
returned within 5 seconds. It took me almost 1 hour to figure out I was missing the namespace. None of the logs had any clues about why thekpt live apply
was stuck asnamespace: delete-me-356017
was missing. No IAM policy was created as expected. It was annoying to have a bug like this without explicit error.iam-exampe.yaml
Kptfile
setters.yaml
Observe the stuck command. I had to Ctrl+C.
The text was updated successfully, but these errors were encountered: