Skip to content

Commit

Permalink
Merge pull request #151 from kloeckner-i/METAL-3554/instance_name_fro…
Browse files Browse the repository at this point in the history
…m_spec

METAL-3554 read instance name from spec
  • Loading branch information
hyunysmile committed Jul 14, 2022
2 parents 84576ca + 6c8e6a0 commit 06ce67e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
3 changes: 1 addition & 2 deletions api/v1alpha1/database_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ type DatabaseStatus struct {
ProxyStatus DatabaseProxyStatus `json:"proxyStatus,omitempty"`
DatabaseName string `json:"database"`
UserName string `json:"user"`
InstanceName string `json:"instanceName"`
}

// DatabaseProxyStatus defines whether proxy for database is enabled or not
Expand All @@ -81,7 +80,7 @@ type DatabaseBackup struct {
//+kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase`,description="current db phase"
//+kubebuilder:printcolumn:name="Status",type=boolean,JSONPath=`.status.status`,description="current db status"
//+kubebuilder:printcolumn:name="Protected",type=boolean,JSONPath=`.spec.deletionProtected`,description="If database is protected to not get deleted."
//+kubebuilder:printcolumn:name="DBInstance",type=string,JSONPath=`.status.instanceName`,description="instance reference"
//+kubebuilder:printcolumn:name="DBInstance",type=string,JSONPath=`.spec.instance`,description="instance reference"
//+kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`,description="time since creation of resource"

// Database is the Schema for the databases API
Expand Down
2 changes: 1 addition & 1 deletion charts/db-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ kubeVersion: ">= 1.19-prerelease <= 1.23-prerelease"
appVersion: "1.6.4"
description: A Database Operator
name: db-operator
version: 1.2.4
version: 1.2.5
5 changes: 1 addition & 4 deletions charts/db-operator/crds/kci.rocks_databases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
name: Protected
type: boolean
- description: instance reference
jsonPath: .status.instanceName
jsonPath: .spec.instance
name: DBInstance
type: string
- description: time since creation of resource
Expand Down Expand Up @@ -115,8 +115,6 @@ spec:
properties:
database:
type: string
instanceName:
type: string
instanceRef:
description: DbInstance is the Schema for the dbinstances API
properties:
Expand Down Expand Up @@ -305,7 +303,6 @@ spec:
type: string
required:
- database
- instanceName
- instanceRef
- phase
- status
Expand Down
5 changes: 1 addition & 4 deletions config/crd/bases/kci.rocks_databases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
name: Protected
type: boolean
- description: instance reference
jsonPath: .status.instanceName
jsonPath: .spec.instance
name: DBInstance
type: string
- description: time since creation of resource
Expand Down Expand Up @@ -115,8 +115,6 @@ spec:
properties:
database:
type: string
instanceName:
type: string
instanceRef:
description: DbInstance is the Schema for the dbinstances API
properties:
Expand Down Expand Up @@ -305,7 +303,6 @@ spec:
type: string
required:
- database
- instanceName
- instanceRef
- phase
- status
Expand Down

0 comments on commit 06ce67e

Please sign in to comment.