Skip to content

Commit

Permalink
fix Deployments in examples for apps/v1 selector requirement (#1684)
Browse files Browse the repository at this point in the history
The apps/v1 API makes the selector in Deployments a required property.

Signed-off-by: Adnan Abdulhussein <[email protected]>
  • Loading branch information
Adnan Abdulhussein authored and skriss committed Jul 19, 2019
1 parent c8bac5b commit 65906ef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/minio/00-minio-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ metadata:
spec:
strategy:
type: Recreate
selector:
matchLabels:
component: minio
template:
metadata:
labels:
Expand Down
3 changes: 3 additions & 0 deletions examples/nginx-app/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ metadata:
namespace: nginx-example
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
Expand Down
3 changes: 3 additions & 0 deletions examples/nginx-app/with-pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ metadata:
namespace: nginx-example
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
Expand Down

0 comments on commit 65906ef

Please sign in to comment.