Skip to content

Commit 89c9cad

Browse files
author
jmccormick2001
committed
major updates for Kube 1.8.5 api plus TLS
1 parent a6f66ec commit 89c9cad

35 files changed

+750
-774
lines changed

Godeps/Godeps.json

Lines changed: 0 additions & 700 deletions
This file was deleted.

Godeps/Readme

Lines changed: 0 additions & 5 deletions
This file was deleted.

Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,31 @@ endif
1313
#======= Main functions =======
1414
macpgo: check-go-vars
1515
cd pgo && env GOOS=darwin GOARCH=amd64 go build pgo.go && mv pgo $(GOBIN)/pgo-mac
16+
17+
gendeps:
18+
godep save \
19+
github.com/crunchydata/postgres-operator/apis/cr/v1 \
20+
github.com/crunchydata/postgres-operator/util \
21+
github.com/crunchydata/postgres-operator/operator \
22+
github.com/crunchydata/postgres-operator/operator/backup \
23+
github.com/crunchydata/postgres-operator/operator/cluster \
24+
github.com/crunchydata/postgres-operator/operator/pvc \
25+
github.com/crunchydata/postgres-operator/controller \
26+
github.com/crunchydata/postgres-operator/client \
27+
github.com/crunchydata/postgres-operator/pgo/cmd \
28+
github.com/crunchydata/postgres-operator/apiservermsgs \
29+
github.com/crunchydata/postgres-operator/apiserver \
30+
github.com/crunchydata/postgres-operator/apiserver/backupservice \
31+
github.com/crunchydata/postgres-operator/apiserver/cloneservice \
32+
github.com/crunchydata/postgres-operator/apiserver/clusterservice \
33+
github.com/crunchydata/postgres-operator/apiserver/labelservice \
34+
github.com/crunchydata/postgres-operator/apiserver/loadservice \
35+
github.com/crunchydata/postgres-operator/apiserver/policyservice \
36+
github.com/crunchydata/postgres-operator/apiserver/pvcservice \
37+
github.com/crunchydata/postgres-operator/apiserver/upgradeservice \
38+
github.com/crunchydata/postgres-operator/apiserver/userservice \
39+
github.com/crunchydata/postgres-operator/apiserver/util \
40+
github.com/crunchydata/postgres-operator/apiserver/versionservice
1641
setup:
1742
./bin/get-deps.sh
1843
deployoperator:
@@ -34,6 +59,8 @@ apiserverimage: check-go-vars
3459
cp $(GOBIN)/apiserver bin/
3560
docker build -t apiserver -f $(CO_BASEOS)/Dockerfile.apiserver.$(CO_BASEOS) .
3661
docker tag apiserver crunchydata/apiserver:$(CO_BASEOS)-$(CO_VERSION)
62+
postgres-operator: check-go-vars
63+
go install postgres-operator.go
3764
operatorimage: check-go-vars
3865
go install postgres-operator.go
3966
cp $(GOBIN)/postgres-operator bin/postgres-operator/

apis/cr/v1/backup.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ type PgbackupSpec struct {
3434
BackupStatus string `json:"backupstatus"`
3535
}
3636

37+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
3738
// Pgbackup ...
3839
type Pgbackup struct {
3940
metav1.TypeMeta `json:",inline"`
@@ -43,6 +44,7 @@ type Pgbackup struct {
4344
Status PgbackupStatus `json:"status,omitempty"`
4445
}
4546

47+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
4648
// PgbackupList ...
4749
type PgbackupList struct {
4850
metav1.TypeMeta `json:",inline"`

apis/cr/v1/cluster.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
// PgclusterResourcePlural ..
2323
const PgclusterResourcePlural = "pgclusters"
2424

25+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
2526
// Pgcluster ..
2627
type Pgcluster struct {
2728
metav1.TypeMeta `json:",inline"`
@@ -59,6 +60,7 @@ type PgclusterSpec struct {
5960
UserLabels map[string]string `json:"userlabels"`
6061
}
6162

63+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
6264
// PgclusterList ...
6365
type PgclusterList struct {
6466
metav1.TypeMeta `json:",inline"`

0 commit comments

Comments
 (0)