Skip to content

[ordering] Wait for clusterRole creation before creating clusterRoleBinding #145

Closed
@galamiram

Description

@galamiram

kapp try to create clusterRoleBinding before clusterRole has been created:

Changes                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                         
Namespace    Name                Kind                Conds.  Age  Op      Op st.  Wait to    Rs  Ri                                                                                                                                                                                                                      
(cluster)    kube-state-metrics  ClusterRole         -       -    create  -       reconcile  -   -                                                                                                                                                                                                                       
^            kube-state-metrics  ClusterRoleBinding  -       -    create  -       reconcile  -   -                                                                                                                                                                                                                       
kube-system  kube-state-metrics  Deployment          -       -    create  -       reconcile  -   -                                                                                                                                                                                                                       
^            kube-state-metrics  Service             -       -    create  -       reconcile  -   -                                                                                                                                                                                                                       
^            kube-state-metrics  ServiceAccount      -       -    create  -       reconcile  -   -                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                         
Op:      5 create, 0 delete, 0 update, 0 noop                                                                                                                                                                                                                                                                            
Wait to: 5 reconcile, 0 delete, 0 noop                                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                                                         
3:10:51PM: ---- applying 3 changes [0/5 done] ----                                                                                                                                                                                                                                                                       
3:10:51PM: create clusterrolebinding/kube-state-metrics (rbac.authorization.k8s.io/v1) cluster                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                                                                         
kapp: Error: Applying create clusterrolebinding/kube-state-metrics (rbac.authorization.k8s.io/v1) cluster:                                                                                                                                                                                                               
  Creating resource clusterrolebinding/kube-state-metrics (rbac.authorization.k8s.io/v1) cluster: clusterroles.rbac.authorization.k8s.io "kube-state-metrics" not found (reason: NotFound)   

Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this worked on as soon as possible"
👎 "There are more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help fix this issue.

Metadata

Metadata

Assignees

Labels

carvel acceptedThis issue should be considered for future work and that the triage process has been completedcarvel triageThis issue has not yet been reviewed for validity

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions