File tree Expand file tree Collapse file tree
deploy/helm/druid-operator/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9696 {{- if .Values.maintenance.customResourceDefinitions.maintain }}
9797 - create
9898 - patch
99+ # Required for startup condition
100+ - list
101+ - watch
99102 {{- end }}
100103 - apiGroups :
101104 - listeners.stackable.tech
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ use stackable_operator::{
1717 core:: v1:: { ConfigMap , Service } ,
1818 } ,
1919 kube:: {
20- ResourceExt ,
20+ CustomResourceExt , ResourceExt ,
2121 core:: DeserializeGuard ,
2222 runtime:: {
2323 Controller ,
@@ -29,7 +29,7 @@ use stackable_operator::{
2929 logging:: controller:: report_controller_reconciled,
3030 shared:: yaml:: SerializeOptions ,
3131 telemetry:: Tracing ,
32- utils:: signal:: SignalWatcher ,
32+ utils:: signal:: { self , SignalWatcher } ,
3333} ;
3434
3535use crate :: {
@@ -187,7 +187,12 @@ async fn main() -> anyhow::Result<()> {
187187 )
188188 . map ( anyhow:: Ok ) ;
189189
190- futures:: try_join!( druid_controller, eos_checker, webhook_server) ?;
190+ let delayed_druid_controller = async {
191+ signal:: crd_established ( & client, v1alpha1:: DruidCluster :: crd_name ( ) , None ) . await ?;
192+ druid_controller. await
193+ } ;
194+
195+ futures:: try_join!( delayed_druid_controller, eos_checker, webhook_server) ?;
191196 }
192197 }
193198
You can’t perform that action at this time.
0 commit comments