Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update files to make them compatible for newer kube versions #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ch03/etcd-cluster-cr.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: etcd.database.coreos.com/v1beta2
apiVersion: etcd.database.coreos.com/v1
kind: EtcdCluster
metadata:
name: example-etcd-cluster
spec:
size: 3
version: 3.1.10
version: latest
20 changes: 19 additions & 1 deletion ch03/etcd-operator-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
singular: etcdcluster
scope: Namespaced
versions:
- name: v1beta2
- name: v1
served: true
storage: true
schema:
Expand All @@ -28,3 +28,21 @@ spec:
type: integer
version:
type: string
status:
type: object
required: [spec]
additionalPrinterColumns:
- name: Size
type: integer
description: The size of the cluster
jsonPath: .spec.size
- name: Version
type: string
description: The version of the cluster
jsonPath: .spec.version
- name: Status
type: string
description: The status of the cluster
jsonPath: .status.phase
subresources:
status: {}
2 changes: 1 addition & 1 deletion ch03/etcd-operator-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: etcd-operator
image: quay.io/coreos/etcd-operator:v0.9.4
image: quay.io/coreos/etcd-operator:latest
command:
- etcd-operator
- --create-crd=false
Expand Down