-
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
317: score/apps: StatefulSets should have a valid headless serviceName r=zegl a=neglect-yp <!-- Optional: Add this change to the release notes by adding a RELNOTE comment If this shouldn't appear in the notes, simply remove this. --> ``` RELNOTE: Validate serviceName of a StatefulSet ``` This PR closes #315 This adds `statefulset-has-servicename` that checks following rules: - StatefulSets `.spec.serviceName` matches a Service in the same namespace. - The Service is a Headless Service. > StatefulSets currently require a Headless Service to be responsible for the network identity of the Pods. You are responsible for creating this Service. https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#limitations - The Service has a selector that matches the StatefulSet. Co-authored-by: neglect-yp <[email protected]>
- Loading branch information
Showing
10 changed files
with
548 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.