Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make binding executable directly in the bash #419

Merged
merged 1 commit into from
Mar 5, 2021
Merged

Conversation

wtrocki
Copy link
Collaborator

@wtrocki wtrocki commented Mar 4, 2021

@wtrocki wtrocki requested a review from craicoverflow March 4, 2021 09:48
@@ -57,6 +57,7 @@ Waiting for status from ManagedKafkaConnection resource.
Created ManagedKafkaConnection can be already injected to your application
by creating Service Binding (requires ServiceBindingOperator):

cat <<EOF | kubectl apply -f -
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should print to stdout.

Copy link
Collaborator Author

@wtrocki wtrocki Mar 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to ensure order of the messages ?
I really want this to be also printed in the bash in proper order.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be split into three messages.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah.. ok so bash will print both error and stdout.

  1. printErr(Success)
  2. printSTD binding
  3. printErro more bessages

Great idea! Will do that today!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly!

@wtrocki wtrocki force-pushed the binding-bash branch 2 times, most recently from c0838d5 to 8842cac Compare March 4, 2021 16:08
@wtrocki wtrocki requested a review from craicoverflow March 4, 2021 16:09
@wtrocki
Copy link
Collaborator Author

wtrocki commented Mar 4, 2021

Verification:

rhoas cluster connect --force > create_service_binding.sh

@wtrocki
Copy link
Collaborator Author

wtrocki commented Mar 4, 2021

FYI @secondsun :) might be handy for end to end testing sandbox :D

locales/cluster/kubernetes/active.en.toml Outdated Show resolved Hide resolved
pkg/cluster/mkcManager.go Show resolved Hide resolved
pkg/cluster/mkcManager.go Outdated Show resolved Hide resolved
pkg/cluster/mkcManager.go Show resolved Hide resolved
@wtrocki wtrocki merged commit 00d98ad into main Mar 5, 2021
@wtrocki wtrocki deleted the binding-bash branch March 5, 2021 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants