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

configuration help aadpodidbinding, in deployment/statefullset #43

Open
NissesSenap opened this issue Apr 23, 2021 · 1 comment
Open

Comments

@NissesSenap
Copy link
Contributor

NissesSenap commented Apr 23, 2021

Recently I did a stupid error that was to label the deployment with: aadpodidbinding instead of the pod template.
Let's create a warning that tells the user that you shouldn't do that :)

Bellow is not okay

apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    aadpodidbinding: backend
  name: podinfo
spec:

This one is okay

apiVersion: apps/v1
kind: Deployment
metadata:
  name: podinfo
spec:
  template:
    metadata:
      labels:
        aadpodidbinding: backend
        app: podinfo
@phillebaba
Copy link
Contributor

My suggestion is that this should be implemented in another medium. Gatekeeper does not give the best information to the end user.

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

No branches or pull requests

2 participants