v1

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_ENDPOINT = "https://api.qpoint.io"
View Source
const INIT_IMAGE = "us-docker.pkg.dev/qpoint-edge/public/kubernetes-qtap-init"
View Source
const INJECT_ANNOTATIONS_CONFIGMAP = "qtap-operator-inject-pod-annotations-configmap"
View Source
const NAMESPACE_EGRESS_LABEL = "qpoint.io/egress"
View Source
const POD_EGRESS_LABEL = "qpoint.io/egress"
View Source
const QPOINT_ROOT_CA = "qpoint-qtap-ca.crt" // this is the Qpoint CA
View Source
const QTAP_BUNDLE = "qtap-ca-bundle.crt" // final bundle includes all CAs (including Qpoint's CA)
View Source
const QTAP_IMAGE = "us-docker.pkg.dev/qpoint-edge/public/qtap"
View Source
const SERVICE_ANNOTATIONS_CONFIGMAP = "qtap-operator-service-pod-annotations-configmap"

Variables

This section is empty.

Functions

func EnsureAssetsInNamespace

func EnsureAssetsInNamespace(config *Config) error

func MutateCaInjection

func MutateCaInjection(pod *corev1.Pod, config *Config) error

func MutateEgress

func MutateEgress(pod *corev1.Pod, config *Config) error

func MutateInjection added in v0.0.5

func MutateInjection(pod *corev1.Pod, config *Config) error

Types

type Config

type Config struct {
	EgressType        EgressType
	InjectCa          bool
	Namespace         string
	OperatorNamespace string
	Client            client.Client
	Ctx               context.Context
	// contains filtered or unexported fields
}

func (*Config) GetAnnotation added in v0.0.5

func (c *Config) GetAnnotation(key string) string

func (*Config) Init

func (c *Config) Init(pod *corev1.Pod) error

type EgressType added in v0.0.5

type EgressType string
const (
	EgressType_UNDEFINED EgressType = "undefined"
	EgressType_DISABLE   EgressType = "disable"
	EgressType_SERVICE   EgressType = "service"
	EgressType_INJECT    EgressType = "inject"
)

type Registration added in v0.0.5

type Registration struct {
	Ca string `json:"ca"`
}

func FetchRegistration added in v0.0.5

func FetchRegistration(token string) (*Registration, error)

type RegistrationResponse added in v0.0.5

type RegistrationResponse struct {
	Registration Registration `json:"registration"`
}

type Webhook

type Webhook struct {
	Namespace   string
	ApiClient   client.Client
	Decoder     *admission.Decoder
	Development bool
}

func (*Webhook) Handle

Jump to

Keyboard shortcuts

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