Skip to content

Commit bca174c

Browse files
author
Jeff McCormick
committed
fix merge pre26 conflicts
2 parents 8649ac0 + 2936e4b commit bca174c

File tree

219 files changed

+10291
-1865
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+10291
-1865
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,17 @@ apiserverimage: check-go-vars
6565
docker build -t pgo-apiserver -f $(CO_BASEOS)/Dockerfile.pgo-apiserver.$(CO_BASEOS) .
6666
docker tag pgo-apiserver $(CO_IMAGE_PREFIX)/pgo-apiserver:$(CO_BASEOS)-$(CO_VERSION)
6767
# docker push $(CO_IMAGE_PREFIX)/pgo-apiserver:$(CO_IMAGE_TAG)
68-
postgres-operator: check-go-vars
68+
operator: check-go-vars
6969
go install postgres-operator.go
7070
operatorimage: check-go-vars
7171
go install postgres-operator.go
7272
cp $(GOBIN)/postgres-operator bin/postgres-operator/
7373
docker build -t postgres-operator -f $(CO_BASEOS)/Dockerfile.postgres-operator.$(CO_BASEOS) .
7474
docker tag postgres-operator $(CO_IMAGE_PREFIX)/postgres-operator:$(CO_BASEOS)-$(CO_VERSION)
7575
# docker push $(CO_IMAGE_PREFIX)/postgres-operator:$(CO_IMAGE_TAG)
76+
deepsix:
77+
cd $(COROOT)/apis/cr/v1
78+
deepcopy-gen --go-header-file=$(COROOT)/apis/cr/v1/header.go.txt --input-dirs=.
7679
lsimage:
7780
docker build -t pgo-lspvc -f $(CO_BASEOS)/Dockerfile.pgo-lspvc.$(CO_BASEOS) .
7881
docker tag pgo-lspvc $(CO_IMAGE_PREFIX)/pgo-lspvc:$(CO_BASEOS)-$(CO_VERSION)

README.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
= PostgreSQL Operator
22
:toc:
3-
v2.5, {docdate}
3+
v2.6, {docdate}
44

55
== Overview
66

@@ -13,6 +13,7 @@ image::docs/tty.gif?raw=true[]
1313
The PostgreSQL Operator leverages Kubernetes Custom Resource Definitions to define custom resource types such as:
1414

1515
* *pgcluster*
16+
* *pgreplica*
1617
* *pgbackups*
1718
* *pgpolicies*
1819

apis/cr/v1/backup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package v1
22

33
/*
4-
Copyright 2018 Crunchy Data Solutions, Inc.
4+
Copyright 2017-2018 Crunchy Data Solutions, Inc.
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
77
You may obtain a copy of the License at

apis/cr/v1/cluster.go

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package v1
22

33
/*
4-
Copyright 2018 Crunchy Data Solutions, Inc.
4+
Copyright 2017-2018 Crunchy Data Solutions, Inc.
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
77
You may obtain a copy of the License at
@@ -33,32 +33,33 @@ type Pgcluster struct {
3333

3434
// PgclusterSpec ...
3535
type PgclusterSpec struct {
36-
Name string `json:"name"`
37-
ClusterName string `json:"clustername"`
38-
Policies string `json:"policies"`
39-
CCPImageTag string `json:"ccpimagetag"`
40-
Port string `json:"port"`
41-
NodeName string `json:"nodename"`
42-
PrimaryStorage PgStorageSpec `json:primarystorage`
43-
ReplicaStorage PgStorageSpec `json:replicastorage`
44-
PrimaryHost string `json:"primaryhost"`
45-
PrimaryPassword string `json:"primarypassword"`
46-
User string `json:"user"`
47-
Password string `json:"password"`
48-
Database string `json:"database"`
49-
RootPassword string `json:"rootpassword"`
50-
Replicas string `json:"replicas"`
51-
Strategy string `json:"strategy"`
52-
SecretFrom string `json:"secretfrom"`
53-
BackupPVCName string `json:"backuppvcname"`
54-
BackupPath string `json:"backuppath"`
55-
UserSecretName string `json:"usersecretname"`
56-
RootSecretName string `json:"rootsecretname"`
57-
PrimarySecretName string `json:"primarysecretname"`
58-
Status string `json:"status"`
59-
PswLastUpdate string `json:"pswlastupdate"`
60-
CustomConfig string `json:"customconfig"`
61-
UserLabels map[string]string `json:"userlabels"`
36+
Name string `json:"name"`
37+
ClusterName string `json:"clustername"`
38+
Policies string `json:"policies"`
39+
CCPImageTag string `json:"ccpimagetag"`
40+
Port string `json:"port"`
41+
NodeName string `json:"nodename"`
42+
PrimaryStorage PgStorageSpec `json:primarystorage`
43+
ReplicaStorage PgStorageSpec `json:replicastorage`
44+
ContainerResources PgContainerResources `json:containerresources`
45+
PrimaryHost string `json:"primaryhost"`
46+
PrimaryPassword string `json:"primarypassword"`
47+
User string `json:"user"`
48+
Password string `json:"password"`
49+
Database string `json:"database"`
50+
RootPassword string `json:"rootpassword"`
51+
Replicas string `json:"replicas"`
52+
Strategy string `json:"strategy"`
53+
SecretFrom string `json:"secretfrom"`
54+
BackupPVCName string `json:"backuppvcname"`
55+
BackupPath string `json:"backuppath"`
56+
UserSecretName string `json:"usersecretname"`
57+
RootSecretName string `json:"rootsecretname"`
58+
PrimarySecretName string `json:"primarysecretname"`
59+
Status string `json:"status"`
60+
PswLastUpdate string `json:"pswlastupdate"`
61+
CustomConfig string `json:"customconfig"`
62+
UserLabels map[string]string `json:"userlabels"`
6263
}
6364

6465
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

apis/cr/v1/common.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package v1
22

33
/*
4-
Copyright 2018 Crunchy Data Solutions, Inc.
4+
Copyright 2017-2018 Crunchy Data Solutions, Inc.
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
77
You may obtain a copy of the License at
@@ -48,3 +48,11 @@ type PgStorageSpec struct {
4848
Fsgroup string `json:"fsgroup"`
4949
SupplementalGroups string `json:"supplementalgroups"`
5050
}
51+
52+
// PgContainerResource ...
53+
type PgContainerResources struct {
54+
RequestsMemory string `json:"requestsmemory"`
55+
RequestsCPU string `json:"requestscpu"`
56+
LimitsMemory string `json:"limitsmemory"`
57+
LimitsCPU string `json:"limitscpu"`
58+
}

0 commit comments

Comments
 (0)