Skip to content

Commit

Permalink
Add service gateway info to db status (#1157)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha authored Mar 6, 2024
1 parent 5b267a5 commit ea1e988
Show file tree
Hide file tree
Showing 50 changed files with 1,649 additions and 19 deletions.
2 changes: 2 additions & 0 deletions apis/kubedb/v1alpha2/druid_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ type DruidStatus struct {
// Conditions applied to the database, such as approval or denial.
// +optional
Conditions []kmapi.Condition `json:"conditions,omitempty"`
// +optional
Gateway *Gateway `json:"gateway,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
2 changes: 2 additions & 0 deletions apis/kubedb/v1alpha2/elasticsearch_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ type ElasticsearchStatus struct {
Conditions []kmapi.Condition `json:"conditions,omitempty"`
// +optional
AuthSecret *Age `json:"authSecret,omitempty"`
// +optional
Gateway *Gateway `json:"gateway,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
2 changes: 2 additions & 0 deletions apis/kubedb/v1alpha2/etcd_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ type EtcdStatus struct {
Conditions []kmapi.Condition `json:"conditions,omitempty"`
// +optional
AuthSecret *Age `json:"authSecret,omitempty"`
// +optional
Gateway *Gateway `json:"gateway,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
2 changes: 2 additions & 0 deletions apis/kubedb/v1alpha2/ferretdb_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ type FerretDBStatus struct {
// Conditions applied to the database, such as approval or denial.
// +optional
Conditions []kmapi.Condition `json:"conditions,omitempty"`
// +optional
Gateway *Gateway `json:"gateway,omitempty"`
}

type FerretDBBackend struct {
Expand Down
2 changes: 2 additions & 0 deletions apis/kubedb/v1alpha2/kafka_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ type KafkaStatus struct {
// Conditions applied to the database, such as approval or denial.
// +optional
Conditions []kmapi.Condition `json:"conditions,omitempty"`
// +optional
Gateway *Gateway `json:"gateway,omitempty"`
}

type KafkaCruiseControl struct {
Expand Down
2 changes: 2 additions & 0 deletions apis/kubedb/v1alpha2/mariadb_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ type MariaDBStatus struct {
Conditions []kmapi.Condition `json:"conditions,omitempty"`
// +optional
AuthSecret *Age `json:"authSecret,omitempty"`
// +optional
Gateway *Gateway `json:"gateway,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
2 changes: 2 additions & 0 deletions apis/kubedb/v1alpha2/memcached_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ type MemcachedStatus struct {
// Conditions applied to the database, such as approval or denial.
// +optional
Conditions []kmapi.Condition `json:"conditions,omitempty"`
// +optional
Gateway *Gateway `json:"gateway,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
2 changes: 2 additions & 0 deletions apis/kubedb/v1alpha2/mongodb_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ type MongoDBStatus struct {
Conditions []kmapi.Condition `json:"conditions,omitempty"`
// +optional
AuthSecret *Age `json:"authSecret,omitempty"`
// +optional
Gateway *Gateway `json:"gateway,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
2 changes: 2 additions & 0 deletions apis/kubedb/v1alpha2/mysql_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ type MySQLStatus struct {
Conditions []kmapi.Condition `json:"conditions,omitempty"`
// +optional
AuthSecret *Age `json:"authSecret,omitempty"`
// +optional
Gateway *Gateway `json:"gateway,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
Loading

0 comments on commit ea1e988

Please sign in to comment.