Skip to content

Commit

Permalink
Add Schema for RabbitMQ (#463)
Browse files Browse the repository at this point in the history
Signed-off-by: raihankhan <[email protected]>
Signed-off-by: SayedTahsin <[email protected]>
Signed-off-by: Tamal Saha <[email protected]>
Co-authored-by: SayedTahsin <[email protected]>
Co-authored-by: Tamal Saha <[email protected]>
  • Loading branch information
3 people authored May 29, 2024
1 parent 84d72d1 commit c6bb53c
Show file tree
Hide file tree
Showing 158 changed files with 26,252 additions and 35,089 deletions.
41 changes: 18 additions & 23 deletions apis/wizards/v1alpha1/kubedbcom_druid_editor_options_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
api "x-helm.dev/apimachinery/apis/releases/v1alpha1"
)

// KubedbcomDruidEditorOptions defines the schama for MongoDB Editor UI Options.
// KubedbcomDruidEditorOptions defines the schama for Druid Editor UI Options.

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

Expand All @@ -35,7 +35,7 @@ type KubedbcomDruidEditorOptions struct {
Spec KubedbcomDruidEditorOptionsSpec `json:"spec,omitempty"`
}

// KubedbcomDruidEditorOptionsSpec is the schema for MongoDB profile values file
// KubedbcomDruidEditorOptionsSpec is the schema for Druid profile values file
type KubedbcomDruidEditorOptionsSpec struct {
api.Metadata `json:"metadata,omitempty"`
Spec KubedbcomDruidEditorOptionsSpecSpec `json:"spec"`
Expand All @@ -48,11 +48,11 @@ type KubedbcomDruidEditorOptionsSpecSpec struct {
// +optional
Labels map[string]string `json:"labels"`
Version string `json:"version"`
Mode MongoDBMode `json:"mode"`
ReplicaSet MongoDBReplicaSet `json:"replicaSet"`
ShardTopology MongoDBShardTopology `json:"shardTopology"`
ClusterAuthMode MongoDBClusterAuthMode `json:"clusterAuthMode"`
SslMode MongoDBSSLMode `json:"sslMode"`
Mode DruidMode `json:"mode"`
ReplicaSet DruidReplicaSet `json:"replicaSet"`
ShardTopology DruidShardTopology `json:"shardTopology"`
ClusterAuthMode DruidClusterAuthMode `json:"clusterAuthMode"`
SslMode DruidSSLMode `json:"sslMode"`
TerminationPolicy TerminationPolicy `json:"terminationPolicy"`
StorageClass StorageClass `json:"storageClass"`
Persistence Persistence `json:"persistence"`
Expand All @@ -64,43 +64,38 @@ type KubedbcomDruidEditorOptionsSpecSpec struct {
}

// +kubebuilder:validation:Enum=Standalone;Replicaset;Sharded
type MongoDBMode string
type DruidMode string

// +kubebuilder:validation:Enum=keyFile;sendKeyFile;sendX509;x509
type MongoDBClusterAuthMode string
type DruidClusterAuthMode string

// +kubebuilder:validation:Enum=disabled;allowSSL;preferSSL;requireSSL
type MongoDBSSLMode string
type DruidSSLMode string

type MongoDBReplicaSet struct {
type DruidReplicaSet struct {
Name string `json:"name"`
Replicas int `json:"replicas"`
}

type MongoDBShard struct {
type DruidShard struct {
Replicas int `json:"replicas"`
Shards int `json:"shards"`
Persistence Persistence `json:"persistence"`
}

type MongoDBConfigServer struct {
type DruidConfigServer struct {
Replicas int `json:"replicas"`
Persistence Persistence `json:"persistence"`
}

type MongoDBMongos struct {
Replicas int `json:"replicas"`
}

type MongoDBShardTopology struct {
Shard MongoDBShard `json:"shard"`
ConfigServer MongoDBConfigServer `json:"configServer"`
Mongos MongoDBMongos `json:"mongos"`
type DruidShardTopology struct {
Shard DruidShard `json:"shard"`
ConfigServer DruidConfigServer `json:"configServer"`
}

type DruidAlertsSpecForm struct {
Alert alerts.MongoDBAlert `json:"alert"`
CAPI CAPIFormSpec `json:"capi"`
Alert alerts.DruidAlert `json:"alert"`
CAPI CAPIFormSpec `json:"capi"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
41 changes: 20 additions & 21 deletions apis/wizards/v1alpha1/kubedbcom_ferretdb_editor_options_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ limitations under the License.
package v1alpha1

import (
alerts "go.appscode.dev/alerts/apis/alerts/v1alpha1"
core "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
api "x-helm.dev/apimachinery/apis/releases/v1alpha1"
)

// KubedbcomFerretdbEditorOptions defines the schama for MongoDB Editor UI Options.
// KubedbcomFerretdbEditorOptions defines the schama for FerretDB Editor UI Options.

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

Expand All @@ -35,7 +34,7 @@ type KubedbcomFerretdbEditorOptions struct {
Spec KubedbcomFerretdbEditorOptionsSpec `json:"spec,omitempty"`
}

// KubedbcomFerretdbEditorOptionsSpec is the schema for MongoDB profile values file
// KubedbcomFerretdbEditorOptionsSpec is the schema for FerretDB profile values file
type KubedbcomFerretdbEditorOptionsSpec struct {
api.Metadata `json:"metadata,omitempty"`
Spec KubedbcomFerretdbEditorOptionsSpecSpec `json:"spec"`
Expand All @@ -48,11 +47,11 @@ type KubedbcomFerretdbEditorOptionsSpecSpec struct {
// +optional
Labels map[string]string `json:"labels"`
Version string `json:"version"`
Mode MongoDBMode `json:"mode"`
ReplicaSet MongoDBReplicaSet `json:"replicaSet"`
ShardTopology MongoDBShardTopology `json:"shardTopology"`
ClusterAuthMode MongoDBClusterAuthMode `json:"clusterAuthMode"`
SslMode MongoDBSSLMode `json:"sslMode"`
Mode FerretDBMode `json:"mode"`
ReplicaSet FerretDBReplicaSet `json:"replicaSet"`
ShardTopology FerretDBShardTopology `json:"shardTopology"`
ClusterAuthMode FerretDBClusterAuthMode `json:"clusterAuthMode"`
SslMode FerretDBSSLMode `json:"sslMode"`
TerminationPolicy TerminationPolicy `json:"terminationPolicy"`
StorageClass StorageClass `json:"storageClass"`
Persistence Persistence `json:"persistence"`
Expand All @@ -64,43 +63,43 @@ type KubedbcomFerretdbEditorOptionsSpecSpec struct {
}

// +kubebuilder:validation:Enum=Standalone;Replicaset;Sharded
type MongoDBMode string
type FerretDBMode string

// +kubebuilder:validation:Enum=keyFile;sendKeyFile;sendX509;x509
type MongoDBClusterAuthMode string
type FerretDBClusterAuthMode string

// +kubebuilder:validation:Enum=disabled;allowSSL;preferSSL;requireSSL
type MongoDBSSLMode string
type FerretDBSSLMode string

type MongoDBReplicaSet struct {
type FerretDBReplicaSet struct {
Name string `json:"name"`
Replicas int `json:"replicas"`
}

type MongoDBShard struct {
type FerretDBShard struct {
Replicas int `json:"replicas"`
Shards int `json:"shards"`
Persistence Persistence `json:"persistence"`
}

type MongoDBConfigServer struct {
type FerretDBConfigServer struct {
Replicas int `json:"replicas"`
Persistence Persistence `json:"persistence"`
}

type MongoDBMongos struct {
type FerretDBMongos struct {
Replicas int `json:"replicas"`
}

type MongoDBShardTopology struct {
Shard MongoDBShard `json:"shard"`
ConfigServer MongoDBConfigServer `json:"configServer"`
Mongos MongoDBMongos `json:"mongos"`
type FerretDBShardTopology struct {
Shard FerretDBShard `json:"shard"`
ConfigServer FerretDBConfigServer `json:"configServer"`
Mongos FerretDBMongos `json:"mongos"`
}

type FerretdbAlertsSpecForm struct {
Alert alerts.MongoDBAlert `json:"alert"`
CAPI CAPIFormSpec `json:"capi"`
// Alert alerts.FerretDBAlert `json:"alert"`
CAPI CAPIFormSpec `json:"capi"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
61 changes: 30 additions & 31 deletions apis/wizards/v1alpha1/kubedbcom_mssqlserver_editor_options_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ limitations under the License.
package v1alpha1

import (
alerts "go.appscode.dev/alerts/apis/alerts/v1alpha1"
core "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
api "x-helm.dev/apimachinery/apis/releases/v1alpha1"
)

// KubedbcomMssqlserverEditorOptions defines the schama for MongoDB Editor UI Options.
// KubedbcomMssqlserverEditorOptions defines the schama for Mssqlserver Editor UI Options.

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

Expand All @@ -35,7 +34,7 @@ type KubedbcomMssqlserverEditorOptions struct {
Spec KubedbcomMssqlserverEditorOptionsSpec `json:"spec,omitempty"`
}

// KubedbcomMssqlserverEditorOptionsSpec is the schema for MongoDB profile values file
// KubedbcomMssqlserverEditorOptionsSpec is the schema for Mssqlserver profile values file
type KubedbcomMssqlserverEditorOptionsSpec struct {
api.Metadata `json:"metadata,omitempty"`
Spec KubedbcomMssqlserverEditorOptionsSpecSpec `json:"spec"`
Expand All @@ -46,61 +45,61 @@ type KubedbcomMssqlserverEditorOptionsSpecSpec struct {
// +optional
Annotations map[string]string `json:"annotations"`
// +optional
Labels map[string]string `json:"labels"`
Version string `json:"version"`
Mode MongoDBMode `json:"mode"`
ReplicaSet MongoDBReplicaSet `json:"replicaSet"`
ShardTopology MongoDBShardTopology `json:"shardTopology"`
ClusterAuthMode MongoDBClusterAuthMode `json:"clusterAuthMode"`
SslMode MongoDBSSLMode `json:"sslMode"`
TerminationPolicy TerminationPolicy `json:"terminationPolicy"`
StorageClass StorageClass `json:"storageClass"`
Persistence Persistence `json:"persistence"`
Machine MachineType `json:"machine"`
Resources core.ResourceRequirements `json:"resources"`
AuthSecret AuthSecret `json:"authSecret"`
Monitoring Monitoring `json:"monitoring"`
Backup BackupToolSpec `json:"backup"`
Labels map[string]string `json:"labels"`
Version string `json:"version"`
Mode MssqlserverMode `json:"mode"`
ReplicaSet MssqlserverReplicaSet `json:"replicaSet"`
ShardTopology MssqlserverShardTopology `json:"shardTopology"`
ClusterAuthMode MssqlserverClusterAuthMode `json:"clusterAuthMode"`
SslMode MssqlserverSSLMode `json:"sslMode"`
TerminationPolicy TerminationPolicy `json:"terminationPolicy"`
StorageClass StorageClass `json:"storageClass"`
Persistence Persistence `json:"persistence"`
Machine MachineType `json:"machine"`
Resources core.ResourceRequirements `json:"resources"`
AuthSecret AuthSecret `json:"authSecret"`
Monitoring Monitoring `json:"monitoring"`
Backup BackupToolSpec `json:"backup"`
}

// +kubebuilder:validation:Enum=Standalone;Replicaset;Sharded
type MongoDBMode string
type MssqlserverMode string

// +kubebuilder:validation:Enum=keyFile;sendKeyFile;sendX509;x509
type MongoDBClusterAuthMode string
type MssqlserverClusterAuthMode string

// +kubebuilder:validation:Enum=disabled;allowSSL;preferSSL;requireSSL
type MongoDBSSLMode string
type MssqlserverSSLMode string

type MongoDBReplicaSet struct {
type MssqlserverReplicaSet struct {
Name string `json:"name"`
Replicas int `json:"replicas"`
}

type MongoDBShard struct {
type MssqlserverShard struct {
Replicas int `json:"replicas"`
Shards int `json:"shards"`
Persistence Persistence `json:"persistence"`
}

type MongoDBConfigServer struct {
type MssqlserverConfigServer struct {
Replicas int `json:"replicas"`
Persistence Persistence `json:"persistence"`
}

type MongoDBMongos struct {
type MssqlserverMongos struct {
Replicas int `json:"replicas"`
}

type MongoDBShardTopology struct {
Shard MongoDBShard `json:"shard"`
ConfigServer MongoDBConfigServer `json:"configServer"`
Mongos MongoDBMongos `json:"mongos"`
type MssqlserverShardTopology struct {
Shard MssqlserverShard `json:"shard"`
ConfigServer MssqlserverConfigServer `json:"configServer"`
Mongos MssqlserverMongos `json:"mongos"`
}

type MssqlserverAlertsSpecForm struct {
Alert alerts.MongoDBAlert `json:"alert"`
CAPI CAPIFormSpec `json:"capi"`
// Alert alerts.MssqlserverAlert `json:"alert"`
CAPI CAPIFormSpec `json:"capi"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
34 changes: 17 additions & 17 deletions apis/wizards/v1alpha1/kubedbcom_pgpool_editor_options_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ type KubedbcomPgpoolEditorOptionsSpecSpec struct {
// +optional
Labels map[string]string `json:"labels"`
Version string `json:"version"`
Mode MongoDBMode `json:"mode"`
ReplicaSet MongoDBReplicaSet `json:"replicaSet"`
ShardTopology MongoDBShardTopology `json:"shardTopology"`
ClusterAuthMode MongoDBClusterAuthMode `json:"clusterAuthMode"`
SslMode MongoDBSSLMode `json:"sslMode"`
Mode PgpoolMode `json:"mode"`
ReplicaSet PgpoolReplicaSet `json:"replicaSet"`
ShardTopology PgpoolShardTopology `json:"shardTopology"`
ClusterAuthMode PgpoolClusterAuthMode `json:"clusterAuthMode"`
SslMode PgpoolSSLMode `json:"sslMode"`
TerminationPolicy TerminationPolicy `json:"terminationPolicy"`
StorageClass StorageClass `json:"storageClass"`
Persistence Persistence `json:"persistence"`
Expand All @@ -64,42 +64,42 @@ type KubedbcomPgpoolEditorOptionsSpecSpec struct {
}

// +kubebuilder:validation:Enum=Standalone;Replicaset;Sharded
type MongoDBMode string
type PgpoolMode string

// +kubebuilder:validation:Enum=keyFile;sendKeyFile;sendX509;x509
type MongoDBClusterAuthMode string
type PgpoolClusterAuthMode string

// +kubebuilder:validation:Enum=disabled;allowSSL;preferSSL;requireSSL
type MongoDBSSLMode string
type PgpoolSSLMode string

type MongoDBReplicaSet struct {
type PgpoolReplicaSet struct {
Name string `json:"name"`
Replicas int `json:"replicas"`
}

type MongoDBShard struct {
type PgpoolShard struct {
Replicas int `json:"replicas"`
Shards int `json:"shards"`
Persistence Persistence `json:"persistence"`
}

type MongoDBConfigServer struct {
type PgpoolConfigServer struct {
Replicas int `json:"replicas"`
Persistence Persistence `json:"persistence"`
}

type MongoDBMongos struct {
type PgpoolMongos struct {
Replicas int `json:"replicas"`
}

type MongoDBShardTopology struct {
Shard MongoDBShard `json:"shard"`
ConfigServer MongoDBConfigServer `json:"configServer"`
Mongos MongoDBMongos `json:"mongos"`
type PgpoolShardTopology struct {
Shard PgpoolShard `json:"shard"`
ConfigServer PgpoolConfigServer `json:"configServer"`
Mongos PgpoolMongos `json:"mongos"`
}

type PgpoolAlertsSpecForm struct {
Alert alerts.MongoDBAlert `json:"alert"`
Alert alerts.PgpoolAlerts `json:"alert"`
CAPI CAPIFormSpec `json:"capi"`
}

Expand Down
Loading

0 comments on commit c6bb53c

Please sign in to comment.