Skip to content

Commit

Permalink
release 4.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Andersen committed Aug 2, 2017
1 parent 3a910a7 commit 701aa27
Show file tree
Hide file tree
Showing 10 changed files with 87 additions and 31 deletions.
8 changes: 2 additions & 6 deletions manifest_templates/btrdb.statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,8 @@ spec:
# btrdb tries to use. That is tweaked by BLOCK_CACHE below
memory: 32Gi
env:
- name: ETCD_ENDPOINT_0
value: http://etcd-0000.etcd:2379
- name: ETCD_ENDPOINT_1
value: http://etcd-0001.etcd:2379
- name: ETCD_ENDPOINT_2
value: http://etcd-0002.etcd:2379
- name: ETCD_ENDPOINT
value: http://etcd:2379
- name: CEPH_HOT_POOL
value: {{.SiteInfo.Ceph.BTrDBHotPool}}
- name: CEPH_DATA_POOL
Expand Down
10 changes: 4 additions & 6 deletions manifest_templates/createdb.job.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# {{ .GenLine }}
#this creates the database in ceph. If you run this when there is an
#existing database, you will have a bad time.
# DO NOT USE THIS FOR MIGRATING AN EXISTING DATABASE
apiVersion: batch/v1
kind: Job
metadata:
Expand All @@ -14,16 +15,13 @@ spec:
restartPolicy: Never
containers:
- name: btrdb-createdb
iKnowWhatIAmDoing: delete this line if you really want to use this file
image: btrdb/{{.Pfx}}db:{{.TargetVersion}}
imagePullPolicy: {{.Containers.ImagePullPolicy}}
args: [ "makedb" ]
env:
- name: ETCD_ENDPOINT_0
value: http://etcd-0000.etcd:2379
- name: ETCD_ENDPOINT_1
value: http://etcd-0001.etcd:2379
- name: ETCD_ENDPOINT_2
value: http://etcd-0002.etcd:2379
- name: ETCD_ENDPOINT
value: http://etcd:2379
- name: CEPH_HOT_POOL
value: {{.SiteInfo.Ceph.BTrDBHotPool}}
- name: CEPH_DATA_POOL
Expand Down
38 changes: 38 additions & 0 deletions manifest_templates/ensuredb.job.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# {{ .GenLine }}
# this migrates from a single pool BTrDB to a tiered storage BTrDB
# it does not move the old data, but new data will be properly tiered.
apiVersion: batch/v1
kind: Job
metadata:
name: btrdb-ensuredb
namespace: {{.TargetNamespace}}
spec:
template:
metadata:
name: btrdb-ensuredb
spec:
restartPolicy: Never
containers:
- name: btrdb-ensuredb
image: btrdb/{{.Pfx}}db:{{.TargetVersion}}
imagePullPolicy: {{.Containers.ImagePullPolicy}}
args: [ "ensuredb" ]
env:
- name: ETCD_ENDPOINT
value: http://etcd:2379
- name: CEPH_HOT_POOL
value: {{.SiteInfo.Ceph.BTrDBHotPool}}
- name: CEPH_DATA_POOL
value: {{.SiteInfo.Ceph.BTrDBDataPool}}
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
volumeMounts:
- name: ceph-keyring
mountPath: /etc/ceph/
readOnly: true
volumes:
- name: ceph-keyring
secret:
secretName: ceph-keyring
2 changes: 1 addition & 1 deletion manifest_templates/etcd-operator.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
serviceAccountName: etcd-operator
containers:
- name: etcd-operator
image: quay.io/coreos/etcd-operator:v0.4.1
image: quay.io/coreos/etcd-operator:v0.5.0
env:
- name: MY_POD_NAMESPACE
valueFrom:
Expand Down
4 changes: 2 additions & 2 deletions manifest_templates/etcd.cluster.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# {{ .GenLine }}
apiVersion: "etcd.coreos.com/v1beta1"
kind: "Cluster"
apiVersion: "etcd.database.coreos.com/v1beta2"
kind: "EtcdCluster"
metadata:
name: "etcd"
namespace: {{.TargetNamespace}}
Expand Down
8 changes: 4 additions & 4 deletions manifest_templates/etcd.clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ metadata:
name: etcd-operator
rules:
- apiGroups:
- etcd.coreos.com
- etcd.database.coreos.com
resources:
- clusters
- etcdclusters
verbs:
- "*"
- apiGroups:
- extensions
- apiextensions.k8s.io
resources:
- thirdpartyresources
- customresourcedefinitions
verbs:
- "*"
- apiGroups:
Expand Down
2 changes: 1 addition & 1 deletion mfgen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

//go:generate go-bindata -o templates.go -prefix ../manifest_templates ../manifest_templates/

const PackageVersion = "4.5.0"
const PackageVersion = "4.6.0"

func main() {
app := cli.NewApp()
Expand Down
1 change: 1 addition & 0 deletions mfgen/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ var Manifest []*ManifestEntry = []*ManifestEntry{
&ManifestEntry{Yep, "READMEFIRST.md", TemplateProcess("readme.md", "")},
&ManifestEntry{Yep, "adminconsole.deployment.yaml", TemplateProcess("adminconsole.deployment.yaml", "core")},
&ManifestEntry{Yep, "createdb.job.yaml", TemplateProcess("createdb.job.yaml", "core")},
&ManifestEntry{Yep, "ensuredb.job.yaml", TemplateProcess("ensuredb.job.yaml", "core")},
&ManifestEntry{Yep, "btrdb.statefulset.yaml", TemplateProcess("btrdb.statefulset.yaml", "core")},
&ManifestEntry{Yep, "create_admin_key.sh", TemplateProcess("create_admin_key.sh", "core")},
&ManifestEntry{Yep, "c37ingress.deployment.yaml", TemplateProcess("c37ingress.deployment.yaml", "ingress")},
Expand Down
43 changes: 33 additions & 10 deletions mfgen/templates.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tools/version.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package tools

const VersionMajor = 4
const VersionMinor = 5
const VersionMinor = 6
const VersionPatch = 0

0 comments on commit 701aa27

Please sign in to comment.