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

backpopulate the project label on a namesapce if that namespace is used in launching an app #1143

Closed
cjellick opened this issue Jan 27, 2023 · 4 comments
Assignees
Labels
kind/enhancement New feature or request
Milestone

Comments

@cjellick
Copy link
Member

As the title says. This will make that namespace show up as a project when you do acorn projects

@cjellick cjellick added the kind/enhancement New feature or request label Jan 27, 2023
@cjellick cjellick added this to the v.Next milestone Jan 27, 2023
@flobaader
Copy link

This would be nice! With the GitLab Kubernetes Integration a Namespace is automatically created for that environment, that can directly be used for the project namespace

@cjellick cjellick modified the milestones: v.Next, v0.6.0 Jan 28, 2023
@cjellick
Copy link
Member Author

@ibuildthecloud i'm going to have someone do this for v0.6.0. Just let me know if you have any grander schemes for projects that would affect this

@sangee2004
Copy link
Contributor

sangee2004 commented Feb 7, 2023

Tested with acorn version - v0.5.1-46-g1e0a96b+1e0a96be

  1. Create a namespace in kubectl - test1
  2. Deployed app in the namespace using - acorn run -j test1 .
  3. This resulted in test1 becoming a project - label - acorn.io/project=true was added to test1 namespace.
    This is not the right behavior. This should fail with error message stating that project is not valid. This issue is tracked in -check if project is valid when -j argument is used #1212

@sangee2004
Copy link
Contributor

Tested with acorn version v0.5.1-49-gdc65d88+dc65d881

  1. Create a namespace and deploy apps in the namespace using kubectl apply
% cat  testns.yml 
apiVersion: v1
kind: Namespace
metadata:
  name: testy3

 % cat  test.yml  
apiVersion: api.acorn.io/v1
kind: App
metadata:
  name: test1
  namespace: testy3
spec:
  image: docker.io/sangeetha/myfirstacorn:v6.0.0

 % kubectl apply -f testns.yml -f test.yml
namespace/testy3 created
app.api.acorn.io/test1 created

label - acorn.io/project=true gets added to testy3 namespace.
We see testy3 project being listed in project list view.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants