Skip to content

Removed usage of sample/standalone/ns1 namespaces in standalone - #15186

Merged
Technoboy- merged 6 commits into
apache:masterfrom
merlimat:sample-namespace
May 3, 2022
Merged

Removed usage of sample/standalone/ns1 namespaces in standalone#15186
Technoboy- merged 6 commits into
apache:masterfrom
merlimat:sample-namespace

Conversation

@merlimat

Copy link
Copy Markdown
Contributor

Motivation

The sample/standalone/ns1 namespace was introduced Pulsar 1.x for documentation examples when running standalone service.

It was superseded in Pulsar 2.x by public/default namespace and it's really not needed anymore to be created.

@merlimat merlimat added type/cleanup Code or doc cleanups e.g. remove the outdated documentation or remove the code no longer in use doc-not-needed Your PR changes do not impact docs labels Apr 15, 2022
@merlimat merlimat added this to the 2.11.0 milestone Apr 15, 2022
@merlimat merlimat self-assigned this Apr 15, 2022

@eolivelli eolivelli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lgtm

@merlimat
merlimat force-pushed the sample-namespace branch from 42b7ff6 to e96e211 Compare May 2, 2022 19:07
@Technoboy-
Technoboy- merged commit ab2e6a8 into apache:master May 3, 2022
@merlimat
merlimat deleted the sample-namespace branch May 3, 2022 03:54
BewareMyPower added a commit to BewareMyPower/pulsar that referenced this pull request Dec 13, 2022
### Motivation

apache#15186 changed the behavior of how
to create the default namespace. However, it brings a regression that
even if the built-in admin didn't have the authentication configured
while the standalone enabled the authentication, the namespace could
still be created successfully. This PR also changed the deploy script to
remove the creation of "public/default" namespace. Instead, it grants
the permission to this namespace directly.

After apache#17864 and
apache#18837, the namespace will be
created by the built-in admin again. But the deploy script would fail.

### Modifications

Create the default namespace via `pulsar-admin` in the deploy script.
BewareMyPower added a commit to BewareMyPower/pulsar that referenced this pull request Dec 13, 2022
### Motivation

Fix the regression brought by apache#15186. See
https://lists.apache.org/thread/vz3tqpgs5l1r0trq29r4hdf85t0rjc8j for
details.

### Modifications

Use `PulsarAdmin` to initialize the metadata so that it would fail if
the authentication of the built-in clients were not configured
correctly.

Add a `testMetadataInitialization` to avoid the regression. And move the
bundle policy test from `SmokeTest` to this test.
BewareMyPower added a commit to BewareMyPower/pulsar that referenced this pull request Dec 13, 2022
…zation

### Motivation

Fix the regression brought by apache#15186. See
https://lists.apache.org/thread/vz3tqpgs5l1r0trq29r4hdf85t0rjc8j for
details.

### Modifications

Use `PulsarAdmin` to initialize the metadata so that it would fail if
the authentication of the built-in clients were not configured
correctly.

Add a `testMetadataInitialization` to avoid the regression. And move the
bundle policy test from `SmokeTest` to this test.

xxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs type/cleanup Code or doc cleanups e.g. remove the outdated documentation or remove the code no longer in use

Projects

None yet

Development

Successfully merging this pull request may close these issues.