apis

package
v0.0.0-...-dae121c Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

+k8s:deepcopy-gen=package,register +groupName=install.dubbo.io

View Source
var File_values_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ArchConfig

type ArchConfig struct {

	// Sets pod scheduling weight for amd64 arch
	Amd64 uint32 `protobuf:"varint,1,opt,name=amd64,proto3" json:"amd64,omitempty"`
	// Sets pod scheduling weight for ppc64le arch.
	Ppc64Le uint32 `protobuf:"varint,2,opt,name=ppc64le,proto3" json:"ppc64le,omitempty"`
	// Sets pod scheduling weight for s390x arch.
	S390X uint32 `protobuf:"varint,3,opt,name=s390x,proto3" json:"s390x,omitempty"`
	// Sets pod scheduling weight for arm64 arch.
	Arm64 uint32 `protobuf:"varint,4,opt,name=arm64,proto3" json:"arm64,omitempty"`
	// contains filtered or unexported fields
}

func (*ArchConfig) Descriptor deprecated

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

Deprecated: Use ArchConfig.ProtoReflect.Descriptor instead.

func (*ArchConfig) GetAmd64

func (x *ArchConfig) GetAmd64() uint32

func (*ArchConfig) GetArm64

func (x *ArchConfig) GetArm64() uint32

func (*ArchConfig) GetPpc64Le

func (x *ArchConfig) GetPpc64Le() uint32

func (*ArchConfig) GetS390X

func (x *ArchConfig) GetS390X() uint32

func (*ArchConfig) ProtoMessage

func (*ArchConfig) ProtoMessage()

func (*ArchConfig) ProtoReflect

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

func (*ArchConfig) Reset

func (x *ArchConfig) Reset()

func (*ArchConfig) String

func (x *ArchConfig) String() string

type BaseComponentSpec

type BaseComponentSpec struct {
	Enabled *BoolValue `json:"enabled,omitempty"`
}

type BaseConfig

type BaseConfig struct {

	// For Helm2 use, adds the CRDs to templates.
	EnableCRDTemplates *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=enableCRDTemplates,proto3" json:"enableCRDTemplates,omitempty"`
	// CRDs to exclude. Requires `enableCRDTemplates`
	ExcludedCRDs []string `protobuf:"bytes,6,rep,name=excludedCRDs,proto3" json:"excludedCRDs,omitempty"`
	// URL to use for validating webhook.
	ValidationURL string `protobuf:"bytes,2,opt,name=validationURL,proto3" json:"validationURL,omitempty"`
	// For dubboctl usage to disable dubbo config crds in base
	EnabledubboConfigCRDs *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=enabledubboConfigCRDs,proto3" json:"enabledubboConfigCRDs,omitempty"`
	ValidateGateway       *wrapperspb.BoolValue `protobuf:"bytes,4,opt,name=validateGateway,proto3" json:"validateGateway,omitempty"`
	// validation webhook CA bundle
	ValidationCABundle string `protobuf:"bytes,5,opt,name=validationCABundle,proto3" json:"validationCABundle,omitempty"`
	// contains filtered or unexported fields
}

func (*BaseConfig) Descriptor deprecated

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

Deprecated: Use BaseConfig.ProtoReflect.Descriptor instead.

func (*BaseConfig) GetEnableCRDTemplates

func (x *BaseConfig) GetEnableCRDTemplates() *wrapperspb.BoolValue

func (*BaseConfig) GetEnabledubboConfigCRDs

func (x *BaseConfig) GetEnabledubboConfigCRDs() *wrapperspb.BoolValue

func (*BaseConfig) GetExcludedCRDs

func (x *BaseConfig) GetExcludedCRDs() []string

func (*BaseConfig) GetValidateGateway

func (x *BaseConfig) GetValidateGateway() *wrapperspb.BoolValue

func (*BaseConfig) GetValidationCABundle

func (x *BaseConfig) GetValidationCABundle() string

func (*BaseConfig) GetValidationURL

func (x *BaseConfig) GetValidationURL() string

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 ComponentSpec

type ComponentSpec struct {
	Enabled   *BoolValue     `json:"enabled,omitempty"`
	Namespace string         `json:"namespace,omitempty"`
	Raw       map[string]any `json:"-"`
}

type DubboComponentSpec

type DubboComponentSpec struct {
	Base *BaseComponentSpec `json:"base,omitempty"`
}

type DubboOperator

type DubboOperator struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty""`
	// +optional
	Spec DubboOperatorSpec `json:"spec,omitempty"`
}

+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 {
	Profile    string              `json:"profile,omitempty"`
	Namespace  string              `json:"namespace,omitempty"`
	Revision   string              `json:"revision,omitempty"`
	Components *DubboComponentSpec `json:"components,omitempty"`
	Values     json.RawMessage     `json:"values,omitempty"`
}

type DubbodConfig

type DubbodConfig struct {

	// If enabled, dubbod will perform config analysis
	EnableAnalysis *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=enableAnalysis,proto3" json:"enableAnalysis,omitempty"`
	// contains filtered or unexported fields
}

func (*DubbodConfig) Descriptor deprecated

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

Deprecated: Use DubbodConfig.ProtoReflect.Descriptor instead.

func (*DubbodConfig) GetEnableAnalysis

func (x *DubbodConfig) GetEnableAnalysis() *wrapperspb.BoolValue

func (*DubbodConfig) ProtoMessage

func (*DubbodConfig) ProtoMessage()

func (*DubbodConfig) ProtoReflect

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

func (*DubbodConfig) Reset

func (x *DubbodConfig) Reset()

func (*DubbodConfig) String

func (x *DubbodConfig) String() string

type GlobalConfig

type GlobalConfig struct {

	// Specifies pod scheduling arch(amd64, ppc64le, s390x, arm64) and weight as follows:
	//
	//	0 - Never scheduled
	//	1 - Least preferred
	//	2 - No preference
	//	3 - Most preferred
	//
	// Deprecated: replaced by the affinity k8s settings which allows architecture nodeAffinity configuration of this behavior.
	//
	// Deprecated: Marked as deprecated in values_types.proto.
	Arch *ArchConfig `protobuf:"bytes,1,opt,name=arch,proto3" json:"arch,omitempty"`
	// Controls whether the server-side validation is enabled.
	ConfigValidation *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=configValidation,proto3" json:"configValidation,omitempty"`
	// Specifies the default namespace for the dubbo control plane components.
	DubboNamespace string `protobuf:"bytes,14,opt,name=dubboNamespace,proto3" json:"dubboNamespace,omitempty"`
	// Specifies the configution of dubbod
	Dubbod *DubbodConfig `protobuf:"bytes,54,opt,name=dubbod,proto3" json:"dubbod,omitempty"`
	// Configures the revision this control plane is a part of
	Revision string `protobuf:"bytes,59,opt,name=revision,proto3" json:"revision,omitempty"`
	// 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) GetArch deprecated

func (x *GlobalConfig) GetArch() *ArchConfig

Deprecated: Marked as deprecated in values_types.proto.

func (*GlobalConfig) GetConfigValidation

func (x *GlobalConfig) GetConfigValidation() *wrapperspb.BoolValue

func (*GlobalConfig) GetDubboNamespace

func (x *GlobalConfig) GetDubboNamespace() string

func (*GlobalConfig) GetDubbod

func (x *GlobalConfig) GetDubbod() *DubbodConfig

func (*GlobalConfig) GetRevision

func (x *GlobalConfig) GetRevision() string

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) 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

type MetadataCompSpec

type MetadataCompSpec struct {
	ComponentSpec
	Name  string            `json:"name,omitempty"`
	Label map[string]string `json:"label,omitempty"`
}

type Values

type Values struct {

	// Global configuration for dubbo components.
	Global *GlobalConfig `protobuf:"bytes,6,opt,name=global,proto3" json:"global,omitempty"`
	// Identifies the revision this installation is associated with.
	Revision string `protobuf:"bytes,21,opt,name=revision,proto3" json:"revision,omitempty"`
	// Used internally to identify the owner of each resource.
	OwnerName string `protobuf:"bytes,22,opt,name=ownerName,proto3" json:"ownerName,omitempty"`
	// Configuration for the base component.
	Base *BaseConfig `protobuf:"bytes,37,opt,name=base,proto3" json:"base,omitempty"`
	// Specifies the aliases for the dubbo control plane revision. A MutatingWebhookConfiguration
	// is created for each alias.
	RevisionTags []string `protobuf:"bytes,39,rep,name=revisionTags,proto3" json:"revisionTags,omitempty"`
	// The name of the default revision in the cluster.
	DefaultRevision string `protobuf:"bytes,40,opt,name=defaultRevision,proto3" json:"defaultRevision,omitempty"`
	// Specifies which installation configuration profile to apply.
	Profile string `protobuf:"bytes,42,opt,name=profile,proto3" json:"profile,omitempty"`
	// Specifies the compatibility version to use. When this is set, the control plane will
	// be configured with the same defaults as the specified version.
	CompatibilityVersion string `protobuf:"bytes,43,opt,name=compatibilityVersion,proto3" json:"compatibilityVersion,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) GetCompatibilityVersion

func (x *Values) GetCompatibilityVersion() string

func (*Values) GetDefaultRevision

func (x *Values) GetDefaultRevision() string

func (*Values) GetGlobal

func (x *Values) GetGlobal() *GlobalConfig

func (*Values) GetOwnerName

func (x *Values) GetOwnerName() string

func (*Values) GetProfile

func (x *Values) GetProfile() string

func (*Values) GetRevision

func (x *Values) GetRevision() string

func (*Values) GetRevisionTags

func (x *Values) GetRevisionTags() []string

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

Jump to

Keyboard shortcuts

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