Skip to content

Commit

Permalink
fixup! 76906cd
Browse files Browse the repository at this point in the history
  • Loading branch information
tstenner committed Sep 5, 2023
1 parent baa3c49 commit 957d59c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/postgres_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type PostgresSpec struct {
// +kubebuilder:pruning:PreserveUnknownFields
type PostgresStatus struct {
Succeeded bool `json:"succeeded"`
// name of the created db, including a prefix if configured
// name of the created db
DbName string `json:"dbname"`
Roles PostgresRoles `json:"roles"`
// +optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
description: PostgresStatus defines the observed state of Postgres
properties:
dbname:
description: name of the created db, including a prefix if configured
description: name of the created db
type: string
extensions:
items:
Expand Down
4 changes: 0 additions & 4 deletions charts/ext-postgres-operator/templates/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.name
{{- if .Values.prefix }}
- name: POSTGRES_OBJECT_PREFIX
value: {{ .Values.prefix }}
{{- end }}
- name: OPERATOR_NAME
value: {{ include "chart.fullname" . }}
{{- range $key, $value := .Values.env }}
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/db.movetokube.com_postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
description: PostgresStatus defines the observed state of Postgres
properties:
dbname:
description: name of the created db, including a prefix if configured
description: name of the created db
type: string
extensions:
items:
Expand Down
2 changes: 1 addition & 1 deletion internal/utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func GetConfig() *Cfg {
PostgresDefaultDb: os.Getenv("POSTGRES_DEFAULT_DATABASE"),
CloudProvider: os.Getenv("POSTGRES_CLOUD_PROVIDER"),
AnnotationFilter: os.Getenv("POSTGRES_INSTANCE"),
ObjectPrefix: os.Getenv("POSTGRES_OBJECT_PREFIX"),
ObjectPrefix: "",
}
})
return config
Expand Down

0 comments on commit 957d59c

Please sign in to comment.