Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions apis/wizards/v1alpha1/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,29 +98,35 @@ type ClusterTierProfile struct {
// *** Machine-related ends *** //

type DatabaseProfiles struct {
DB2 *DatabaseProfile `json:"DB2,omitempty"`
ClickHouse *DatabaseProfile `json:"ClickHouse,omitempty"`
Cassandra *DatabaseProfile `json:"Cassandra,omitempty"`
Druid *DatabaseProfile `json:"Druid,omitempty"`
Elasticsearch *DatabaseProfile `json:"Elasticsearch,omitempty"`
FerretDB *DatabaseProfile `json:"FerretDB,omitempty"`
HanaDB *DatabaseProfile `json:"HanaDB,omitempty"`
Hazelcast *DatabaseProfile `json:"Hazelcast,omitempty"`
Ignite *DatabaseProfile `json:"Ignite,omitempty"`
Kafka *DatabaseProfile `json:"Kafka,omitempty"`
MariaDB *DatabaseProfile `json:"MariaDB,omitempty"`
Memcached *DatabaseProfile `json:"Memcached,omitempty"`
Milvus *DatabaseProfile `json:"Milvus,omitempty"`
MongoDB *DatabaseProfile `json:"MongoDB,omitempty"`
MSSQLServer *DatabaseProfile `json:"MSSQLServer,omitempty"`
MySQL *DatabaseProfile `json:"MySQL,omitempty"`
Neo4j *DatabaseProfile `json:"Neo4j,omitempty"`
Oracle *DatabaseProfile `json:"Oracle,omitempty"`
PerconaXtraDB *DatabaseProfile `json:"PerconaXtraDB,omitempty"`
PgBouncer *DatabaseProfile `json:"PgBouncer,omitempty"`
Pgpool *DatabaseProfile `json:"Pgpool,omitempty"`
Postgres *DatabaseProfile `json:"Postgres,omitempty"`
ProxySQL *DatabaseProfile `json:"ProxySQL,omitempty"`
Qdrant *DatabaseProfile `json:"Qdrant,omitempty"`
RabbitMQ *DatabaseProfile `json:"RabbitMQ,omitempty"`
Redis *DatabaseProfile `json:"Redis,omitempty"`
Singlestore *DatabaseProfile `json:"Singlestore,omitempty"`
Solr *DatabaseProfile `json:"Solr,omitempty"`
Weaviate *DatabaseProfile `json:"Weaviate,omitempty"`
ZooKeeper *DatabaseProfile `json:"ZooKeeper,omitempty"`
}

Expand Down
69 changes: 69 additions & 0 deletions apis/wizards/v1alpha1/kubedbcom_db2_editor_options_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/*
Copyright AppsCode Inc. and Contributors

Licensed under the PolyForm Noncommercial License 1.0.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://github.com/appscode/licenses/raw/1.0.0/PolyForm-Noncommercial-1.0.0.md

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package v1alpha1

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

// KubedbcomDB2EditorOptions defines the schama for DB2 Editor UI Options.

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

// +kubebuilder:object:root=true
// +kubebuilder:resource:path=kubedbcomdb2editoroptionss,singular=kubedbcomdb2editoroptions
type KubedbcomDB2EditorOptions struct {
metav1.TypeMeta `json:",inline,omitempty"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec KubedbcomDB2EditorOptionsSpec `json:"spec,omitempty"`
}

// KubedbcomDB2EditorOptionsSpec is the schema for DB2 profile values file
type KubedbcomDB2EditorOptionsSpec struct {
api.Metadata `json:"metadata,omitempty"`
Spec KubedbcomDB2EditorOptionsSpecSpec `json:"spec"`
}

type KubedbcomDB2EditorOptionsSpecSpec struct {
// +optional
Annotations map[string]string `json:"annotations"`
// +optional
Labels map[string]string `json:"labels"`
// +optional
Replicas int `json:"replicas,omitempty"`
Persistence Persistence `json:"persistence"`
PodResources PodResources `json:"podResources"`
AuthSecret AuthSecret `json:"authSecret"`
DeletionPolicy DeletionPolicy `json:"deletionPolicy"`
Configuration string `json:"configuration"`
Admin AdminOptions `json:"admin"`
Backup BackupToolSpec `json:"backup"`
Monitoring MonitoringOperator `json:"monitoring"`
// +optional
Openshift Openshift `json:"openshift"`
}

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

// KubedbcomDB2EditorOptionsList is a list of KubedbcomDB2EditorOptionss
type KubedbcomDB2EditorOptionsList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
// Items is a list of KubedbcomDB2EditorOptions CRD objects
Items []KubedbcomDB2EditorOptions `json:"items,omitempty"`
}
86 changes: 86 additions & 0 deletions apis/wizards/v1alpha1/kubedbcom_hanadb_editor_options_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
/*
Copyright AppsCode Inc. and Contributors

Licensed under the PolyForm Noncommercial License 1.0.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://github.com/appscode/licenses/raw/1.0.0/PolyForm-Noncommercial-1.0.0.md

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package v1alpha1

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

// KubedbcomHanaDBEditorOptions defines the schama for HanaDB Editor UI Options.

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

// +kubebuilder:object:root=true
// +kubebuilder:resource:path=kubedbcomhanadbeditoroptionss,singular=kubedbcomhanadbeditoroptions
type KubedbcomHanaDBEditorOptions struct {
metav1.TypeMeta `json:",inline,omitempty"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec KubedbcomHanaDBEditorOptionsSpec `json:"spec,omitempty"`
}

// KubedbcomHanaDBEditorOptionsSpec is the schema for HanaDB profile values file
type KubedbcomHanaDBEditorOptionsSpec struct {
api.Metadata `json:"metadata,omitempty"`
Spec KubedbcomHanaDBEditorOptionsSpecSpec `json:"spec"`
}

type KubedbcomHanaDBEditorOptionsSpecSpec struct {
// +optional
Annotations map[string]string `json:"annotations"`
// +optional
Labels map[string]string `json:"labels"`
Mode HanaDBMode `json:"mode"`
// +optional
SystemReplication *HanaDBSystemReplication `json:"systemReplication,omitempty"`
// +optional
Replicas int `json:"replicas,omitempty"`
Persistence Persistence `json:"persistence"`
PodResources PodResources `json:"podResources"`
AuthSecret AuthSecret `json:"authSecret"`
DeletionPolicy DeletionPolicy `json:"deletionPolicy"`
Configuration string `json:"configuration"`
Admin AdminOptions `json:"admin"`
Backup BackupToolSpec `json:"backup"`
Monitoring MonitoringOperator `json:"monitoring"`
// +optional
Openshift Openshift `json:"openshift"`
}

// +kubebuilder:validation:Enum=Standalone;SystemReplication
type HanaDBMode string

type HanaDBSystemReplication struct {
ReplicationMode HanaDBReplicationMode `json:"replicationMode"`
OperationMode HanaDBOperationMode `json:"operationMode"`
}

// +kubebuilder:validation:Enum=sync;syncmem;async;fullsync
type HanaDBReplicationMode string

// +kubebuilder:validation:Enum=logreplay;delta_datashipping;logreplay_readaccess
type HanaDBOperationMode string

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

// KubedbcomHanaDBEditorOptionsList is a list of KubedbcomHanaDBEditorOptionss
type KubedbcomHanaDBEditorOptionsList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
// Items is a list of KubedbcomHanaDBEditorOptions CRD objects
Items []KubedbcomHanaDBEditorOptions `json:"items,omitempty"`
}
122 changes: 122 additions & 0 deletions apis/wizards/v1alpha1/kubedbcom_milvus_editor_options_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
/*
Copyright AppsCode Inc. and Contributors

Licensed under the PolyForm Noncommercial License 1.0.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://github.com/appscode/licenses/raw/1.0.0/PolyForm-Noncommercial-1.0.0.md

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package v1alpha1

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

// KubedbcomMilvusEditorOptions defines the schama for Milvus Editor UI Options.

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

// +kubebuilder:object:root=true
// +kubebuilder:resource:path=kubedbcommilvuseditoroptionss,singular=kubedbcommilvuseditoroptions
type KubedbcomMilvusEditorOptions struct {
metav1.TypeMeta `json:",inline,omitempty"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec KubedbcomMilvusEditorOptionsSpec `json:"spec,omitempty"`
}

// KubedbcomMilvusEditorOptionsSpec is the schema for Milvus profile values file
type KubedbcomMilvusEditorOptionsSpec struct {
api.Metadata `json:"metadata,omitempty"`
Spec KubedbcomMilvusEditorOptionsSpecSpec `json:"spec"`
}

type KubedbcomMilvusEditorOptionsSpecSpec struct {
// +optional
Annotations map[string]string `json:"annotations"`
// +optional
Labels map[string]string `json:"labels"`
Mode MilvusMode `json:"mode"`
// +optional
Replicas int `json:"replicas,omitempty"`
Persistence Persistence `json:"persistence"`
PodResources PodResources `json:"podResources"`
MetaStorage MilvusMetaStorage `json:"metaStorage"`
ObjectStorage MilvusObjectStorage `json:"objectStorage"`
// +optional
Distributed *MilvusDistributed `json:"distributed,omitempty"`
DisableSecurity bool `json:"disableSecurity"`
Halted bool `json:"halted"`
AuthSecret MilvusAuthSecret `json:"authSecret"`
DeletionPolicy DeletionPolicy `json:"deletionPolicy"`
Configuration string `json:"configuration"`
// +optional
ConfigurationSecretName string `json:"configurationSecretName,omitempty"`
// +optional
ConfigurationInline map[string]string `json:"configurationInline,omitempty"`
Admin AdminOptions `json:"admin"`
Backup BackupToolSpec `json:"backup"`
Monitoring MonitoringOperator `json:"monitoring"`
// +optional
Openshift Openshift `json:"openshift"`
}

// +kubebuilder:validation:Enum=Standalone;Distributed
type MilvusMode string

type MilvusMetaStorage struct {
ExternallyManaged bool `json:"externallyManaged"`
Endpoints []string `json:"endpoints"`
Size int `json:"size"`
}

type MilvusObjectStorage struct {
ConfigSecretName string `json:"configSecretName"`
}

type MilvusDistributed struct {
Mixcoord MilvusDistributedNode `json:"mixcoord"`
Proxy MilvusDistributedNode `json:"proxy"`
Streamingnode MilvusStreamingNode `json:"streamingnode"`
Datanode MilvusDistributedNode `json:"datanode"`
Querynode MilvusDistributedNode `json:"querynode"`
}

type MilvusDistributedNode struct {
Replicas int `json:"replicas"`
PodResources PodResources `json:"podResources"`
}

type MilvusStreamingNode struct {
Replicas int `json:"replicas"`
Persistence Persistence `json:"persistence"`
PodResources PodResources `json:"podResources"`
}

type MilvusAuthSecret struct {
// +optional
Name string `json:"name"`
// +optional
ExternallyManaged bool `json:"externallyManaged"`
// +optional
// +kubebuilder:validation:Format:=password
Password string `json:"password"`
}

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

// KubedbcomMilvusEditorOptionsList is a list of KubedbcomMilvusEditorOptionss
type KubedbcomMilvusEditorOptionsList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
// Items is a list of KubedbcomMilvusEditorOptions CRD objects
Items []KubedbcomMilvusEditorOptions `json:"items,omitempty"`
}
Loading
Loading