You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package kubernetes.admission
deny[msg] {
input.request.kind.kind == “Route”
hostname := input.request.object.spec.hostname
not startswith(hostname, “example.com”)
msg := sprintf(“hostname not valid BLA BLA BLA %v”, [hostname])
}
@jtudelag ; yes, the core bits look correct, i.e.: not startswith.
But, have a look at the example, as the policies wouldn't explicitly use kubernetes.admission - there might be a use-case for that, but not seen one yet.
Parent: #23
Suggestion: https://learnk8s.io/production-best-practices#application-development
Solved By: TODO
The text was updated successfully, but these errors were encountered: