Skip to content

Commit b771d4a

Browse files
authored
fix: remove invalid CR from the connect command (#967)
1 parent 68a386d commit b771d4a

File tree

2 files changed

+2
-35
lines changed

2 files changed

+2
-35
lines changed

pkg/cluster/kcManager.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,6 @@ func getKafkaConnectionsAPIURL(namespace string) string {
8585
func 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
})

pkg/localize/locales/en/cluster_kubernetes.en.toml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -58,35 +58,11 @@ Created KafkaConnection can be already injected to your application.
5858
5959
To bind you need to have Service Binding Operator installed:
6060
https://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]
9167
one = 'could not create Service Account secret'
9268

0 commit comments

Comments
 (0)