Skip to content

Add namespace parameter to redpanda license command#1588

Open
jason-da-redpanda wants to merge 2 commits intomainfrom
jason-da-redpanda-patch-2
Open

Add namespace parameter to redpanda license command#1588
jason-da-redpanda wants to merge 2 commits intomainfrom
jason-da-redpanda-patch-2

Conversation

@jason-da-redpanda
Copy link
Contributor

Updated the kubectl command to include the namespace parameter. well the \ specifically

Description

Resolves https://redpandadata.atlassian.net/browse/
Review deadline:

Page previews

Checks

  • New feature
  • Content gap
  • Support Follow-up
  • Small fix (typos, links, copyedits, etc)

Updated the kubectl command to include the namespace parameter. well the \ specifically
@jason-da-redpanda jason-da-redpanda requested a review from a team as a code owner February 26, 2026 11:38
@netlify
Copy link

netlify bot commented Feb 26, 2026

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit aa7dc63
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-docs-preview/deploys/69a031991f7e9300084250fa
😎 Deploy Preview https://deploy-preview-1588--redpanda-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 26, 2026

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This change updates documentation for Kubernetes Secret creation in the Redpanda getting started guide. The kubectl command is modified to include a line continuation character and a namespace flag, allowing users to specify the target namespace when creating the license secret.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description is vague and incomplete. It mentions updating the kubectl command and references 'the \ specifically' without clear context, the Jira ticket is a placeholder, and no preview URLs or checkbox selections are provided. Complete the description by specifying which command was updated, replace the Jira placeholder with the actual ticket, provide page preview URLs, and check the appropriate category for this change (likely 'Small fix').
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: adding a namespace parameter to the redpanda license command, which aligns with the file modification.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch jason-da-redpanda-patch-2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jason-da-redpanda
Copy link
Contributor Author

urgh,,, needs another \

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@modules/get-started/pages/licensing/add-license-redpanda/kubernetes.adoc`:
- Around line 28-30: The kubectl secret creation command is missing a
line-continuation backslash at the end of the first line ("kubectl create secret
generic redpanda-license"), causing the shell to treat the next line as a
separate (invalid) command; fix by adding a trailing backslash to that first
line and keep the subsequent lines as continued arguments (optionally indent
continuation lines for consistency with the other multi-line kubectl example
such as the update command).

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Jira integration is disabled

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 7c7507c and 9591340.

📒 Files selected for processing (1)
  • modules/get-started/pages/licensing/add-license-redpanda/kubernetes.adoc

Comment on lines 28 to 30
kubectl create secret generic redpanda-license
--from-file=license=./redpanda.license
--from-file=license=./redpanda.license \
--namespace <namespace>
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

Critical: Missing line continuation backslash on line 28.

The kubectl command will fail because line 28 doesn't end with a backslash (\). Without it, bash executes line 28 as a complete command, then treats --from-file on line 29 as an invalid command.

🐛 Proposed fix
-kubectl create secret generic redpanda-license
---from-file=license=./redpanda.license \
+kubectl create secret generic redpanda-license \
+  --from-file=license=./redpanda.license \
+  --namespace <namespace>

Note: Added 2-space indentation to continuation lines for consistency with the update command at lines 205-207.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@modules/get-started/pages/licensing/add-license-redpanda/kubernetes.adoc`
around lines 28 - 30, The kubectl secret creation command is missing a
line-continuation backslash at the end of the first line ("kubectl create secret
generic redpanda-license"), causing the shell to treat the next line as a
separate (invalid) command; fix by adding a trailing backslash to that first
line and keep the subsequent lines as continued arguments (optionally indent
continuation lines for consistency with the other multi-line kubectl example
such as the update command).

Copy link
Contributor

@micheleRP micheleRP left a comment

Choose a reason for hiding this comment

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

thank you @jason-da-redpanda!

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