k8_extensions

package
v0.0.0-...-3b5879d Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedCustomResourceAPIVersions = []string{
	"prsn.io/v1", "helm.kubedex.com/v1", "networking.istio.io/v1alpha3",
}

SupportedCustomResourceAPIVersions contains all supported CRD API versions on bitesize cluster.

View Source
var SupportedCustomResources = []string{
	"aurora", "mongo", "mysql", "cassandra", "redis", "zookeeper", "kafka",
	"postgres", "neptune", "sns", "msk", "docdb", "cb", "sqs", "s3", "es",
	"helmchart", "dynamodb", "serviceentry", "gateway", "virtualservice", "atlas",
	"cloudfront", "cron",
}

SupportedCustomResources contains all supported CRDs on bitesize cluster.

Functions

This section is empty.

Types

type Destination

type Destination struct {
	Host   string        `json:"host,omitempty"`
	Subset string        `json:"subset,omitempty"`
	Port   *PortSelector `json:"port,omitempty"`
}

Destination represents format for these mappings

type ExternalSecret

type ExternalSecret struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	SecretDescriptor  ExternalSecretSecretDescriptor `json:"secretDescriptor"`
}

func (ExternalSecret) DeepCopyObject

func (es ExternalSecret) DeepCopyObject() runtime.Object

type ExternalSecretList

type ExternalSecretList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []ExternalSecret `json:"items"`
}

func (ExternalSecretList) DeepCopyObject

func (es ExternalSecretList) DeepCopyObject() runtime.Object

type ExternalSecretSecretDescriptor

type ExternalSecretSecretDescriptor struct {
	// RoleArn     string              `json:"roleArn, omitempty"`
	// VaultRole   string              `json:"vaultRole, omitempty"`
	BackendType string              `json:"backendType, omitempty"`
	Type        string              `json:"type, omitempty"`
	Compressed  bool                `json:"compressed, omitempty"`
	Data        []map[string]string `json:"data, omitempty"`
}

type HTTPMatchRequest

type HTTPMatchRequest struct {
	Name string        `json:"name,omitempty"`
	URI  *StringPrefix `json:"uri,omitempty"`
}

HTTPMatchRequest represents format for these mappings

type HTTPRoute

type HTTPRoute struct {
	Name  string                  `json:"name,omitempty"`
	Match []*HTTPMatchRequest     `json:"match,omitempty"`
	Route []*HTTPRouteDestination `json:"route,omitempty"`
}

HTTPRoute represents format for these mappings

type HTTPRouteDestination

type HTTPRouteDestination struct {
	Destination *Destination `json:"destination,omitempty"`
}

HTTPRouteDestination represents format for these mappings

type Port

type Port struct {
	Number   uint32 `json:"number,omitempty"`
	Protocol string `json:"protocol,omitempty"`
	Name     string `json:"name,omitempty"`
}

Port represents format for these mappings

type PortSelector

type PortSelector struct {
	Number uint32 `json:"number,omitempty"`
}

PortSelector represents format for these mappings

type PrsnExternalResource

type PrsnExternalResource struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec PrsnExternalResourceSpec `json:"spec"`
}

PrsnExternalResource represents CustomResources mapped from kubernetes to externally running services (e.g. RDS, cassandra, mongo etc.)

func (PrsnExternalResource) DeepCopyObject

func (tpr PrsnExternalResource) DeepCopyObject() runtime.Object

DeepCopyObject required to satisfy Object interface

type PrsnExternalResourceList

type PrsnExternalResourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []PrsnExternalResource `json:"items"`
}

PrsnExternalResourceList is a list of PrsnExternalResource

func (PrsnExternalResourceList) DeepCopyObject

func (tpr PrsnExternalResourceList) DeepCopyObject() runtime.Object

DeepCopyObject required to satisfy Object interface

type PrsnExternalResourceSpec

type PrsnExternalResourceSpec struct {
	Version         string                        `json:"version,omitempty"`
	Options         map[string]interface{}        `json:"options,omitempty"`
	Replicas        int                           `json:"replicas,omitempty"`
	TargetNamespace string                        `json:"targetNamespace,omitempty"`
	Chart           string                        `json:"chart,omitempty"`
	Repo            string                        `json:"repo,omitempty"`
	Set             map[string]intstr.IntOrString `json:"set,omitempty"`
	ValuesContent   string                        `json:"valuesContent,omitempty"`
	Ignore          bool                          `json:"ignore,omitempty"`
	Selector        map[string]string             `json:"selector,omitempty"`
	Servers         []*Server                     `json:"servers,omitempty"`
	Gateways        []string                      `json:"gateways,omitempty"`
	Hosts           []string                      `json:"hosts,omitempty"`
	Addresses       []string                      `json:"addresses,omitempty"`
	Ports           []*Port                       `json:"ports,omitempty"`
	Location        string                        `json:"location,omitempty"`
	Resolution      string                        `json:"resolution,omitempty"`
	Endpoints       []*ServiceEntry_Endpoint      `json:"endpoints,omitempty"`
	ExportTo        []string                      `json:"export_to,omitempty"`
	SubjectAltNames []string                      `json:"subject_alt_names,omitempty"`
	HTTP            []*HTTPRoute                  `json:"http,omitempty"`
}

PrsnExternalResourceSpec represents format for these mappings - which is basically it's version and options

type Server

type Server struct {
	Port  *Port             `json:"port,omitempty"`
	Bind  string            `json:"bind,omitempty"`
	Hosts []string          `json:"hosts,omitempty"`
	TLS   *ServerTLSOptions `json:"tls,omitempty"`
}

Server represents format for these mappings

type ServerTLSOptions

type ServerTLSOptions struct {
	Mode           string `json:"mode,omitempty"`
	CredentialName string `json:"credential_name,omitempty"`
}

ServerTLSOptions is set of TLS related options that govern the server's behavior

type ServiceEntry_Endpoint

type ServiceEntry_Endpoint struct {
	Address  string            `json:"address,omitempty"`
	Ports    map[string]uint32 `json:"ports,omitempty"`
	Labels   map[string]string `json:"labels,omitempty"`
	Network  string            `json:"network,omitempty"`
	Locality string            `json:"locality,omitempty"`
	Weight   uint32            `json:"weight,omitempty"`
}

type StringPrefix

type StringPrefix struct {
	Prefix string `json:"prefix,omitempty"`
}

StringPrefix represents format for these mappings

Jump to

Keyboard shortcuts

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