cloud-platform
cloud-platform copied to clipboard
Create OPA policy to restrict live-2 users to use old ingress controllers
Background
Currently, live-2 have both old and new ingress controllers, we want to restrict users from using old ingress-controllers in live-2
Create an OPA policy to restrict users from using ingress class as "nginx" and "modsec01"
Proposed user journey
OPA policy should check for below
spec:
ingressClassName: <is not nginx or modsec>
Also ingress class annotation is not used
kubernetes.io/ingress.class: "nginx"
Approach
This OPA policy should restrict users to create ingress using old ingress class
Which part of the user docs does this impact
Questions / Assumptions
Definition of done
- [ ] OPA policy created
- [ ] OPA test updated