-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kubernetes): throw more helpful errors for invalid services (#4504)
* chore(kubernetes): add tests demonstrating problems with service selector validation * fix(kubernetes): throw more helpful errors for invalid services Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4517b21
commit 680d90e
Showing
4 changed files
with
60 additions
and
5 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
13 changes: 13 additions & 0 deletions
13
...netflix/spinnaker/clouddriver/kubernetes/v2/op/deploy/replicaset-overlapping-selector.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: replicaSet | ||
metadata: | ||
name: my-name | ||
namespace: my-namespace | ||
spec: | ||
selector: | ||
matchLabels: | ||
selector-key: selector-value | ||
template: | ||
metadata: | ||
labels: | ||
selector-key: selector-value |
5 changes: 5 additions & 0 deletions
5
...sources/com/netflix/spinnaker/clouddriver/kubernetes/v2/op/deploy/service-no-selector.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v1 | ||
kind: service | ||
metadata: | ||
name: my-service | ||
namespace: my-namespace |