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

add credentials create/update/delete handling for the broker #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Torsten105
Copy link

No description provided.

Copy link
Collaborator

@swoehrl-mw swoehrl-mw left a comment

Choose a reason for hiding this comment

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

@Torsten105 Looks like you have copied the credential handling methods for topic/queue without properly adapting them for the broker. As it is it will not work.

Comment on lines +24 to +26
# Wait for topic
topic_namespace = spec["topicRef"].get("namespace", namespace)
backend, backend_name, broker_name, topic_name, allowed_k8s_namespaces = _wait_for_topic(logger, topic_namespace, spec["topicRef"]["name"], retry)
Copy link
Collaborator

Choose a reason for hiding this comment

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

That cannot work, when a broker is created, there is no topic.

Comment on lines +88 to +89
def create_or_update_broker_credentials(self, topic_name, namespace_name, reset_credentials=False):
return self._create_or_update_broker_credentials(f"{topic_name}-owner", topic_name, namespace_name, [AccessRights.MANAGE, AccessRights.LISTEN, AccessRights.SEND], topic_name, reset_credentials)
Copy link
Collaborator

Choose a reason for hiding this comment

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

On the broker level there is no topic_name

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.

None yet

2 participants