Skip to content

Commit edde883

Browse files
authored
fest: support reading the db address from the secret instead spec.address (#163)
* fest: support reading the db address from the secret instead spec.address * x * fix: addr field * f * fix: goreleaser config
1 parent 6d88b55 commit edde883

21 files changed

+101
-44
lines changed

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ builds:
1111
archives:
1212
- id: manager
1313
name_template: "manager_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
14-
builds:
14+
ids:
1515
- manager
1616

1717
checksum:

api/v1beta1/database_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ type SecretReference struct {
7979
// +optional
8080
// +kubebuilder:default:=password
8181
PasswordField string `json:"passwordField"`
82+
83+
// +optional
84+
// +kubebuilder:default:=address
85+
AddressField string `json:"addressField"`
8286
}
8387

8488
// conditionalResource is a resource with conditions

chart/db-controller/crds/dbprovisioning.infra.doodle.com_mongodbdatabases.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ spec:
6363
description: Contains a credentials set of a user with enough permission
6464
to manage databases and user accounts
6565
properties:
66+
addressField:
67+
default: address
68+
type: string
6669
name:
6770
description: Name referrs to the name of the secret, must be located
6871
whithin the same namespace

chart/db-controller/crds/dbprovisioning.infra.doodle.com_mongodbusers.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ spec:
5454
description: SecretReference is a named reference to a secret which
5555
contains user credentials
5656
properties:
57+
addressField:
58+
default: address
59+
type: string
5760
name:
5861
description: Name referrs to the name of the secret, must be located
5962
whithin the same namespace

chart/db-controller/crds/dbprovisioning.infra.doodle.com_postgresqldatabases.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ spec:
7272
description: Contains a credentials set of a user with enough permission
7373
to manage databases and user accounts
7474
properties:
75+
addressField:
76+
default: address
77+
type: string
7578
name:
7679
description: Name referrs to the name of the secret, must be located
7780
whithin the same namespace

chart/db-controller/crds/dbprovisioning.infra.doodle.com_postgresqlusers.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ spec:
5454
description: SecretReference is a named reference to a secret which
5555
contains user credentials
5656
properties:
57+
addressField:
58+
default: address
59+
type: string
5760
name:
5861
description: Name referrs to the name of the secret, must be located
5962
whithin the same namespace

config/base/crd/bases/dbprovisioning.infra.doodle.com_mongodbdatabases.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ spec:
6363
description: Contains a credentials set of a user with enough permission
6464
to manage databases and user accounts
6565
properties:
66+
addressField:
67+
default: address
68+
type: string
6669
name:
6770
description: Name referrs to the name of the secret, must be located
6871
whithin the same namespace

config/base/crd/bases/dbprovisioning.infra.doodle.com_mongodbusers.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ spec:
5454
description: SecretReference is a named reference to a secret which
5555
contains user credentials
5656
properties:
57+
addressField:
58+
default: address
59+
type: string
5760
name:
5861
description: Name referrs to the name of the secret, must be located
5962
whithin the same namespace

config/base/crd/bases/dbprovisioning.infra.doodle.com_postgresqldatabases.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ spec:
7272
description: Contains a credentials set of a user with enough permission
7373
to manage databases and user accounts
7474
properties:
75+
addressField:
76+
default: address
77+
type: string
7578
name:
7679
description: Name referrs to the name of the secret, must be located
7780
whithin the same namespace

config/base/crd/bases/dbprovisioning.infra.doodle.com_postgresqlusers.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ spec:
5454
description: SecretReference is a named reference to a secret which
5555
contains user credentials
5656
properties:
57+
addressField:
58+
default: address
59+
type: string
5760
name:
5861
description: Name referrs to the name of the secret, must be located
5962
whithin the same namespace

0 commit comments

Comments
 (0)