Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document some labeling good practice #29

Closed
goern opened this issue Jun 5, 2020 · 7 comments
Closed

document some labeling good practice #29

goern opened this issue Jun 5, 2020 · 7 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@goern
Copy link
Member

goern commented Jun 5, 2020

I have stated using a set of commonLabels with all the kustomize files:

commonLabels:
  app.kubernetes.io/name: thoth
  app.kubernetes.io/component: kebechet
  app.kubernetes.io/managed-by: aicoe-thoth-devops-argocd

ArgoCD itself is adding app.kubernetes.io/instance=test-thoth-kebechet depending on the ArgoCD application created.

I would like to standardize on the usage of managed-by: shall we make it the rover group of the team responsible for the management/operation of the app and append -argocd if managed via ArgoCD or -manual if we do it manually using kustomize...

@accorvin
Copy link
Member

accorvin commented Jun 5, 2020

I like this proposal. Is this something that we could have a bot enforce? I'm notoriously bad at remembering this sort of stuff.

@goern
Copy link
Member Author

goern commented Jun 8, 2020

Looks like we can use Tekton to run a conftest task, so that we validate PR going it, the validating will be based on some Open Policy Agent policies. We need some policies, like https://github.com/thoth-station/thoth-application/blob/master/policy/deployment.rego and define which labels are recommended/required/... https://github.com/AICoE/aicoe-cd/blob/master/docs/recommended_labels.md

https://github.com/open-policy-agent/conftest/blob/master/examples/tekton/taskrun.yaml

@harshad16 please create an issue with some medium prio

@goern
Copy link
Member Author

goern commented Jun 8, 2020

@goern
Copy link
Member Author

goern commented Jun 8, 2020

tektoncd/pipeline#1078

@tumido
Copy link
Member

tumido commented Jun 17, 2020

@goern do you expect the app.kubernetes.io/managed-by label (without the suffix) to match any ldap group/github team or anything like that? Or is this expected to be fully up to people's imagination?

@goern
Copy link
Member Author

goern commented Jun 17, 2020

hmm, a rover group might be helpful, but not required.

@sesheta
Copy link
Contributor

sesheta commented Jul 3, 2021

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@sesheta sesheta added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 3, 2021
@harshad16 harshad16 changed the title document some labeling good practice No requirements file found for runtime environment default. Oct 12, 2021
@harshad16 harshad16 changed the title No requirements file found for runtime environment default. document some labeling good practice Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

5 participants