Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Select namespace of converted releases #225

Closed
barmic opened this issue Mar 27, 2023 · 2 comments
Closed

Select namespace of converted releases #225

barmic opened this issue Mar 27, 2023 · 2 comments
Labels
question Further information is requested

Comments

@barmic
Copy link

barmic commented Mar 27, 2023

Hi,

When I convert my releases from helm2 with tiller, the plugin puts it to default namespace instead of namespace of deployment.

When I send kubectl config view --minify, I have:

apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: DATA+OMITTED
    server: https://10.0.0.1:443
  name: kubernetes
contexts:
- context:
    cluster: kubernetes
    namespace: env-dev
    user: kubernetes-admin
  name: kubernetes-admin@kubernetes
current-context: kubernetes-admin@kubernetes
kind: Config
preferences: {}
users:
- name: kubernetes-admin
  user:
    client-certificate-data: REDACTED
    client-key-data: REDACTED

But after conversion, my releases are created in default namespace. If I correctly understand the best practice I should put my release in the same namespace where my software is installed? Is it possible to put converted releases in another namespace or move them after conversion? I want to avoid reinstalling my release and it's why this plugin seems useful.

Thank you for this plugin and for your help

@hickeyma
Copy link
Collaborator

@barmic Releases metadata should be migrated to the namespace that the v2 release is deployed to.

So, if you run helm2 list, is should show the namespace of each release. 2to3 plugin will deploy the metadata to that namespace because Helm 3 is namespace specific for releases whereas in Helm 2 release metadata was in the Tiller namespace.

@hickeyma hickeyma added the question Further information is requested label Jul 11, 2024
@hickeyma
Copy link
Collaborator

Closing as repository is archived.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants