internal

package
v0.0.0-...-f0f846c Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTPClientTimeout = time.Minute * 3
	EventEndpoint     = "event"
)
View Source
const (
	KcpReqFailedMsg    = "kcp request failed"
	KcpReqSucceededMsg = "kcp request succeeded"

	OperatorPrefix    = "operator.kyma-project.io"
	Separator         = "/"
	OwnedByAnnotation = OperatorPrefix + Separator + "owned-by"
	OwnedBySeperator  = "/"
	ManagedByLabel    = "operator.kyma-project.io/managed-by"

	StatusSubResource = "status"
)

Variables

View Source
var UniversalDeserializer = serializer.NewCodecFactory(runtime.NewScheme()).UniversalDeserializer()

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Client     client.Client
	Logger     logr.Logger
	Parameters ServerParameters
}

func (*Handler) Handle

func (h *Handler) Handle(writer http.ResponseWriter, req *http.Request)

type Metadata

type Metadata struct {
	Name        string            `json:"name"`
	Namespace   string            `json:"namespace"`
	Annotations map[string]string `json:"annotations"`
	Labels      map[string]string `json:"labels"`
}

type ObjectWatched

type ObjectWatched struct {
	Metadata   `json:"metadata"`
	Spec       map[string]interface{} `json:"spec"`
	APIVersion string                 `json:"apiVersion"`
	Kind       string                 `json:"kind"`
	Status     map[string]interface{} `json:"status"`
}

type Resource

type Resource struct {
	metav1.GroupVersionKind `json:"groupVersionKind"`
	SubResource             string `json:"subResource"`
}

type ServerParameters

type ServerParameters struct {
	Port        int    // webhook server port
	CACert      string // CA key used to sign the certificate
	TLSCert     string // path to TLS certificate for https
	TLSKey      string // path to TLS key matching for certificate
	TLSServer   bool   // indicates if an HTTPS server should be created
	TLSCallback bool   // indicates if KCP accepts HTTP or HTTPS requests
}

Jump to

Keyboard shortcuts

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