Skip to content

kctrl: When adding a package repo, include option to create the namespace if not existing #1001

@ThomasVitale

Description

@ThomasVitale

Describe the problem/challenge you have
When I add a Carvel package repository to a cluster, I first need to create a dedicated namespace explicitly.

  1. kubectl create namespace kadras-packages
  2. kctrl package repository add -r kadras-repo --url ghcr.io/arktonix/kadras-packages:0.5.1 -n kadras-packages

Describe the solution you'd like
I'd like to skip the explicit creation of the namespace and have it created as part of the kctrl package command, similar to how the helm CLI works. For example, the functionality could be enabled via a --create-namespace flag.

kctrl package repository add -r kadras-repo --url ghcr.io/arktonix/kadras-packages:0.5.1 -n kadras-packages --create-namespace

Anything else you would like to add:
One of the reasons for this feature request is to make the onboarding experience even simpler when introducing people to Carvel packaging or when using a Carvel metapackage as the foundation of projects/tutorials relying on a Carvel-based platform.

With this feature, that would result in three operations rather than four:

  1. deploy kapp-controller
  2. add the package repository
  3. install the package

Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    carvel-acceptedThis issue should be considered for future work and that the triage process has been completedcliIssue for kapp-controller clienhancementThis issue is a feature requestpriority/unprioritized-backlogHigher priority than priority/awaiting-more-evidence but not planned. Contributions are welcome.

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions