Skip to content

Commit

Permalink
Add distribution tags for KubeDB (#815)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha authored Nov 2, 2021
1 parent 24d4421 commit 90d4647
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apis/catalog/v1alpha1/elasticsearch_version_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const (
ElasticsearchAuthPluginXpack ElasticsearchAuthPlugin = "X-Pack"
)

// +kubebuilder:validation:Enum=ElasticStack;OpenDistro;SearchGuard;KubeDB;OpenSearch
// +kubebuilder:validation:Enum=ElasticStack;OpenDistro;SearchGuard;OpenSearch;KubeDB
type ElasticsearchDistro string

const (
Expand Down
3 changes: 2 additions & 1 deletion apis/catalog/v1alpha1/mongodb_version_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,11 @@ type MongoDBVersionList struct {
Items []MongoDBVersion `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"`
}

// +kubebuilder:validation:Enum=Official;Percona;MongoDB
// +kubebuilder:validation:Enum=Official;Percona;KubeDB;MongoDB
type MongoDBDistro string

const (
MongoDBDistroOfficaial MongoDBDistro = "Official"
MongoDBDistroPercona MongoDBDistro = "Percona"
MongoDBDistroKubeDB MongoDBDistro = "KubeDB"
)
3 changes: 2 additions & 1 deletion apis/catalog/v1alpha1/mysql_version_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,12 @@ type MySQLVersionList struct {
Items []MySQLVersion `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"`
}

// +kubebuilder:validation:Enum=Official;MySQL;Percona;Oracle
// +kubebuilder:validation:Enum=Official;Oracle;Percona;KubeDB;MySQL
type MySQLDistro string

const (
MySQLDistroOfficial MySQLDistro = "Official"
MySQLDistroMySQL MySQLDistro = "MySQL"
MySQLDistroPercona MySQLDistro = "Percona"
MySQLDistroKubeDB MySQLDistro = "KubeDB"
)
4 changes: 3 additions & 1 deletion apis/catalog/v1alpha1/postgres_version_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,12 @@ type PostgresSecurityContext struct {
RunAsAnyNonRoot bool `json:"runAsAnyNonRoot,omitempty" protobuf:"varint,2,opt,name=runAsAnyNonRoot"`
}

// +kubebuilder:validation:Enum=Official;TimescaleDB;PostgreSQL
// +kubebuilder:validation:Enum=Official;TimescaleDB;PostGIS;KubeDB;PostgreSQL
type PostgresDistro string

const (
PostgresDistroOfficial PostgresDistro = "Official"
PostgresDistroTimescaleDB PostgresDistro = "TimescaleDB"
PostgresDistroPostGIS PostgresDistro = "PostGIS"
PostgresDistroKubeDB PostgresDistro = "KubeDB"
)
2 changes: 1 addition & 1 deletion crds/catalog.kubedb.com_elasticsearchversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ spec:
- ElasticStack
- OpenDistro
- SearchGuard
- KubeDB
- OpenSearch
- KubeDB
type: string
exporter:
properties:
Expand Down
1 change: 1 addition & 0 deletions crds/catalog.kubedb.com_mongodbversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ spec:
enum:
- Official
- Percona
- KubeDB
- MongoDB
type: string
exporter:
Expand Down
5 changes: 3 additions & 2 deletions crds/catalog.kubedb.com_mysqlversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ spec:
distribution:
enum:
- Official
- MySQL
- Percona
- Oracle
- Percona
- KubeDB
- MySQL
type: string
exporter:
properties:
Expand Down
2 changes: 2 additions & 0 deletions crds/catalog.kubedb.com_postgresversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ spec:
enum:
- Official
- TimescaleDB
- PostGIS
- KubeDB
- PostgreSQL
type: string
exporter:
Expand Down

0 comments on commit 90d4647

Please sign in to comment.