File tree Expand file tree Collapse file tree 2 files changed +2
-35
lines changed
Expand file tree Collapse file tree 2 files changed +2
-35
lines changed Original file line number Diff line number Diff line change @@ -85,15 +85,6 @@ func getKafkaConnectionsAPIURL(namespace string) string {
8585func watchForKafkaStatus (c * KubernetesCluster , crName string , namespace string ) error {
8686 c .logger .Info (c .localizer .MustLocalize ("cluster.kubernetes.watchForKafkaStatus.log.info.wait" ))
8787
88- templateEntries := []* localize.TemplateEntry {
89- localize .NewEntry ("Name" , crName ),
90- localize .NewEntry ("Namespace" , namespace ),
91- localize .NewEntry ("Group" , AKCGroup ),
92- localize .NewEntry ("Version" , AKCVersion ),
93- localize .NewEntry ("Kind" , AKCRMeta .Kind ),
94- }
95- fmt .Fprint (c .io .Out , c .localizer .MustLocalize ("cluster.kubernetes.watchForKafkaStatus.binding" , templateEntries ... ))
96-
9788 w , err := c .dynamicClient .Resource (AKCResource ).Namespace (namespace ).Watch (context .TODO (), metav1.ListOptions {
9889 FieldSelector : fields .OneTermEqualSelector ("metadata.name" , crName ).String (),
9990 })
Original file line number Diff line number Diff line change @@ -58,35 +58,11 @@ Created KafkaConnection can be already injected to your application.
5858
5959To bind you need to have Service Binding Operator installed:
6060https://github.com/redhat-developer/service-binding-operator
61- '''
62-
63- [cluster .kubernetes .watchForKafkaStatus .binding ]
64- one = '''
65- cat <<EOF | kubectl apply -f -
66- apiVersion: binding.operators.coreos.com/v1alpha1
67- kind: ServiceBinding
68- metadata:
69- name: kafka-config
70- namespace: {{.Namespace}}
71- spec:
72- application:
73- group: apps
74- name: name-of-your-application
75- resource: deployments
76- version: v1
77-
78- bindAsFiles: true
79- services:
80- - group: {{.Group}}
81- version: {{.Version}}
82- kind: {{.Kind}}
83- name: {{.Name}}
84- EOF
8561
62+ You can bind KafkaConnection to your application by executing "rhoas cluster bind"
63+ or directly in the OpenShift Console topology view.
8664'''
8765
88-
89-
9066[cluster .kubernetes .serviceaccountsecret .error .createError ]
9167one = ' could not create Service Account secret'
9268
You can’t perform that action at this time.
0 commit comments