apis

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DubboOperatorGVK = schema.GroupVersionKind{
	Version: "v1alpha1",
	Group:   "install.dubbo.io",
	Kind:    "DubboOperator",
}

DubboOperatorGVK is the GVK for DubboOperator.

View Source
var File_values_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BaseComponentSpec

type BaseComponentSpec struct {
	// Selects whether this component is installed.
	Enabled *BoolValue `json:"enabled,omitempty"`
}

type BaseConfig

type BaseConfig struct {
	// contains filtered or unexported fields
}

func (*BaseConfig) Descriptor deprecated

func (*BaseConfig) Descriptor() ([]byte, []int)

Deprecated: Use BaseConfig.ProtoReflect.Descriptor instead.

func (*BaseConfig) ProtoMessage

func (*BaseConfig) ProtoMessage()

func (*BaseConfig) ProtoReflect

func (x *BaseConfig) ProtoReflect() protoreflect.Message

func (*BaseConfig) Reset

func (x *BaseConfig) Reset()

func (*BaseConfig) String

func (x *BaseConfig) String() string

type BoolValue

type BoolValue struct {
	// contains filtered or unexported fields
}

func (*BoolValue) GetValueOrFalse

func (b *BoolValue) GetValueOrFalse() bool

func (*BoolValue) GetValueOrTrue

func (b *BoolValue) GetValueOrTrue() bool

func (*BoolValue) MarshalJSON

func (b *BoolValue) MarshalJSON() ([]byte, error)

func (*BoolValue) UnmarshalJSON

func (b *BoolValue) UnmarshalJSON(bytes []byte) error

type DashboardComponentSpec

type DashboardComponentSpec struct {
	// Selects whether this component is installed.
	Enabled *BoolValue `json:"enabled,omitempty"`
}

type DefaultCompSpec

type DefaultCompSpec struct {
	RegisterComponentSpec
}

type DubboComponentSpec

type DubboComponentSpec struct {
	// Used for Dubbo resources.
	Base *BaseComponentSpec `json:"base,omitempty"`
	// Using Zookeeper and Nacos as the registration plane.
	Register *RegisterSpec `json:"register,omitempty"`
}

type DubboDashboardSpec

type DubboDashboardSpec struct {
	Admin *DashboardComponentSpec `json:"admin,omitempty"`
}

type DubboOperator

type DubboOperator struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Spec defines the implementation of this definition.
	// +optional
	Spec DubboOperatorSpec `json:"spec,omitempty"`
}

DubboOperator defines the custom API. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubetype-gen +kubetype-gen:groupVersion=install.dubbo.io/v1alpha1 +k8s:deepcopy-gen=true

type DubboOperatorSpec

type DubboOperatorSpec struct {
	// Path or name for the profile.
	// default profile is used if this field is unset.
	Profile string `json:"profile,omitempty"`
	// For admin dashboard.
	Dashboard *DubboDashboardSpec `json:"dashboard,omitempty"`
	// enablement and component-specific settings that are not internal to the component.
	Components *DubboComponentSpec `json:"components,omitempty"`
	// Overrides for default `values.yaml`. This is a validated pass-through to Helm templates.
	Values json.RawMessage `json:"values,omitempty"`
}

DubboOperatorSpec defines the desired installed state of Dubbo components. This specification is used to customize the default profile values provided with each Dubbo release. Since this specification is a customization API, specifying an empty DubboOperatorSpec results in the default Dubbo component values.

type GlobalConfig

type GlobalConfig struct {
	// contains filtered or unexported fields
}

Global Configuration for Dubbo components.

func (*GlobalConfig) Descriptor deprecated

func (*GlobalConfig) Descriptor() ([]byte, []int)

Deprecated: Use GlobalConfig.ProtoReflect.Descriptor instead.

func (*GlobalConfig) ProtoMessage

func (*GlobalConfig) ProtoMessage()

func (*GlobalConfig) ProtoReflect

func (x *GlobalConfig) ProtoReflect() protoreflect.Message

func (*GlobalConfig) Reset

func (x *GlobalConfig) Reset()

func (*GlobalConfig) String

func (x *GlobalConfig) String() string

type IntOrString

type IntOrString struct {
	Type   int64                   `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
	IntVal *wrapperspb.Int32Value  `protobuf:"bytes,2,opt,name=intVal,proto3" json:"intVal,omitempty"`
	StrVal *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=strVal,proto3" json:"strVal,omitempty"`
	// contains filtered or unexported fields
}

IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. TODO: Rename to Int32OrString

+protobuf=true +protobuf.options.(gogoproto.goproto_stringer)=false +k8s:openapi-gen=true

func (*IntOrString) Descriptor deprecated

func (*IntOrString) Descriptor() ([]byte, []int)

Deprecated: Use IntOrString.ProtoReflect.Descriptor instead.

func (*IntOrString) GetIntVal

func (x *IntOrString) GetIntVal() *wrapperspb.Int32Value

func (*IntOrString) GetStrVal

func (x *IntOrString) GetStrVal() *wrapperspb.StringValue

func (*IntOrString) GetType

func (x *IntOrString) GetType() int64

func (*IntOrString) MarshalJSON

func (i *IntOrString) MarshalJSON() ([]byte, error)

func (*IntOrString) MarshalJSONPB

func (*IntOrString) ProtoMessage

func (*IntOrString) ProtoMessage()

func (*IntOrString) ProtoReflect

func (x *IntOrString) ProtoReflect() protoreflect.Message

func (*IntOrString) Reset

func (x *IntOrString) Reset()

func (*IntOrString) String

func (x *IntOrString) String() string

func (*IntOrString) ToKubernetes

func (i *IntOrString) ToKubernetes() intstr.IntOrString

func (*IntOrString) UnmarshalJSON

func (i *IntOrString) UnmarshalJSON(value []byte) error

UnmarshalJSON implements the json.Unmarshaller interface.

func (*IntOrString) UnmarshalJSONPB

func (i *IntOrString) UnmarshalJSONPB(_ *github_com_golang_protobuf_jsonpb.Unmarshaler, value []byte) error

type NacosConfig

type NacosConfig struct {

	// Controls whether Nacos is installed.
	Enabled *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// Run Mode standalone or cluster.
	Mode *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"`
	// Configuration for Nacos storage.
	Storage *NacosStorage `protobuf:"bytes,3,opt,name=storage,proto3" json:"storage,omitempty"`
	// contains filtered or unexported fields
}

func (*NacosConfig) Descriptor deprecated

func (*NacosConfig) Descriptor() ([]byte, []int)

Deprecated: Use NacosConfig.ProtoReflect.Descriptor instead.

func (*NacosConfig) GetEnabled

func (x *NacosConfig) GetEnabled() *wrapperspb.BoolValue

func (*NacosConfig) GetMode

func (x *NacosConfig) GetMode() *wrapperspb.StringValue

func (*NacosConfig) GetStorage

func (x *NacosConfig) GetStorage() *NacosStorage

func (*NacosConfig) ProtoMessage

func (*NacosConfig) ProtoMessage()

func (*NacosConfig) ProtoReflect

func (x *NacosConfig) ProtoReflect() protoreflect.Message

func (*NacosConfig) Reset

func (x *NacosConfig) Reset()

func (*NacosConfig) String

func (x *NacosConfig) String() string

type NacosMYSQLConfig

type NacosMYSQLConfig struct {

	// Specify the database host for Nacos storing configuration data.
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// Specify the database name for Nacos storing configuration data.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Specify the database port for Nacos storing configuration data.
	Port int64 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	// Specify the database username for Nacos storing configuration data.
	Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
	// Specify the database password for Nacos storing configuration data.
	Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"`
	// Specify the database url parameter for Nacos storing configuration data.
	Param string `protobuf:"bytes,6,opt,name=param,proto3" json:"param,omitempty"`
	// contains filtered or unexported fields
}

func (*NacosMYSQLConfig) Descriptor deprecated

func (*NacosMYSQLConfig) Descriptor() ([]byte, []int)

Deprecated: Use NacosMYSQLConfig.ProtoReflect.Descriptor instead.

func (*NacosMYSQLConfig) GetHost

func (x *NacosMYSQLConfig) GetHost() string

func (*NacosMYSQLConfig) GetName

func (x *NacosMYSQLConfig) GetName() string

func (*NacosMYSQLConfig) GetParam

func (x *NacosMYSQLConfig) GetParam() string

func (*NacosMYSQLConfig) GetPassword

func (x *NacosMYSQLConfig) GetPassword() string

func (*NacosMYSQLConfig) GetPort

func (x *NacosMYSQLConfig) GetPort() int64

func (*NacosMYSQLConfig) GetUsername

func (x *NacosMYSQLConfig) GetUsername() string

func (*NacosMYSQLConfig) ProtoMessage

func (*NacosMYSQLConfig) ProtoMessage()

func (*NacosMYSQLConfig) ProtoReflect

func (x *NacosMYSQLConfig) ProtoReflect() protoreflect.Message

func (*NacosMYSQLConfig) Reset

func (x *NacosMYSQLConfig) Reset()

func (*NacosMYSQLConfig) String

func (x *NacosMYSQLConfig) String() string

type NacosStorage

type NacosStorage struct {

	// Nacos data storage method `mysql` or `embedded`. The `embedded` supports either standalone or cluster mode.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Configuration for Nacos db.
	Database *NacosMYSQLConfig `protobuf:"bytes,2,opt,name=database,proto3" json:"database,omitempty"`
	// contains filtered or unexported fields
}

func (*NacosStorage) Descriptor deprecated

func (*NacosStorage) Descriptor() ([]byte, []int)

Deprecated: Use NacosStorage.ProtoReflect.Descriptor instead.

func (*NacosStorage) GetDatabase

func (x *NacosStorage) GetDatabase() *NacosMYSQLConfig

func (*NacosStorage) GetType

func (x *NacosStorage) GetType() string

func (*NacosStorage) ProtoMessage

func (*NacosStorage) ProtoMessage()

func (*NacosStorage) ProtoReflect

func (x *NacosStorage) ProtoReflect() protoreflect.Message

func (*NacosStorage) Reset

func (x *NacosStorage) Reset()

func (*NacosStorage) String

func (x *NacosStorage) String() string

type RegisterComponentSpec

type RegisterComponentSpec struct {
	// Selects whether this component is installed.
	Enabled *BoolValue `json:"enabled,omitempty"`
	// Namespace for the component.
	Namespace string `json:"namespace,omitempty"`
	// Raw is the raw inputs. This allows distinguishing unset vs zero-values for KubernetesResources
	Raw map[string]any `json:"-"`
}

type RegisterSpec

type RegisterSpec struct {
	// Nacos component.
	Nacos *RegisterComponentSpec `json:"nacos,omitempty"`
	// Zookeeper component.
	Zookeeper *RegisterComponentSpec `json:"zookeeper,omitempty"`
}

type Values

type Values struct {

	// Global configuration for dubbo components.
	Global *GlobalConfig `protobuf:"bytes,1,opt,name=global,proto3" json:"global,omitempty"`
	// Configuration for the base component.
	Base *BaseConfig `protobuf:"bytes,2,opt,name=base,proto3" json:"base,omitempty"`
	// Specifies which installation configuration profile to apply.
	Profile string `protobuf:"bytes,3,opt,name=profile,proto3" json:"profile,omitempty"`
	// Configuration for the zookeeper component.
	Zookeeper *ZookeeperConfig `protobuf:"bytes,4,opt,name=zookeeper,proto3" json:"zookeeper,omitempty"`
	// Configuration for the nacos component.
	Nacos *NacosConfig `protobuf:"bytes,5,opt,name=nacos,proto3" json:"nacos,omitempty"`
	// contains filtered or unexported fields
}

func (*Values) Descriptor deprecated

func (*Values) Descriptor() ([]byte, []int)

Deprecated: Use Values.ProtoReflect.Descriptor instead.

func (*Values) GetBase

func (x *Values) GetBase() *BaseConfig

func (*Values) GetGlobal

func (x *Values) GetGlobal() *GlobalConfig

func (*Values) GetNacos

func (x *Values) GetNacos() *NacosConfig

func (*Values) GetProfile

func (x *Values) GetProfile() string

func (*Values) GetZookeeper

func (x *Values) GetZookeeper() *ZookeeperConfig

func (*Values) MarshalJSON

func (in *Values) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Values

func (*Values) ProtoMessage

func (*Values) ProtoMessage()

func (*Values) ProtoReflect

func (x *Values) ProtoReflect() protoreflect.Message

func (*Values) Reset

func (x *Values) Reset()

func (*Values) String

func (x *Values) String() string

func (*Values) UnmarshalJSON

func (in *Values) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Values

type ZookeeperConfig

type ZookeeperConfig struct {

	// Controls whether Zookeeper is installed.
	Enabled *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// Zookeeper the directory where the snapshot is stored.
	DataLogDir *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=dataLogDir,proto3" json:"dataLogDir,omitempty"`
	// contains filtered or unexported fields
}

func (*ZookeeperConfig) Descriptor deprecated

func (*ZookeeperConfig) Descriptor() ([]byte, []int)

Deprecated: Use ZookeeperConfig.ProtoReflect.Descriptor instead.

func (*ZookeeperConfig) GetDataLogDir

func (x *ZookeeperConfig) GetDataLogDir() *wrapperspb.StringValue

func (*ZookeeperConfig) GetEnabled

func (x *ZookeeperConfig) GetEnabled() *wrapperspb.BoolValue

func (*ZookeeperConfig) ProtoMessage

func (*ZookeeperConfig) ProtoMessage()

func (*ZookeeperConfig) ProtoReflect

func (x *ZookeeperConfig) ProtoReflect() protoreflect.Message

func (*ZookeeperConfig) Reset

func (x *ZookeeperConfig) Reset()

func (*ZookeeperConfig) String

func (x *ZookeeperConfig) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL