kong2kic

package
v1.38.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	KICV3GATEWAY             = "KICV3_GATEWAY"
	KICV3INGRESS             = "KICV3_INGRESS"
	KICV2GATEWAY             = "KICV2_GATEWAY"
	KICV2INGRESS             = "KICV2_INGRESS"
	KICAPIVersion            = "configuration.konghq.com/v1"
	KICAPIVersionV1Beta1     = "configuration.konghq.com/v1beta1"
	GatewayAPIVersionV1Beta1 = "gateway.networking.k8s.io/v1beta1"
	GatewayAPIVersionV1      = "gateway.networking.k8s.io/v1"
	KongPluginKind           = "KongPlugin"
	SecretKind               = "Secret"
	IngressKind              = "KongIngress"
	UpstreamPolicyKind       = "KongUpstreamPolicy"
	IngressClass             = "kubernetes.io/ingress.class"
)

Variables

View Source
var ClassName = "kong"

ClassName is set by the CLI flag --class-name

Functions

func MarshalKongToKIC

func MarshalKongToKIC(content *file.Content, builderType string, format string) ([]byte, error)

func SerializeObjectDroppingFields

func SerializeObjectDroppingFields(obj interface{}, format string) ([]byte, error)

func WriteContentToFile

func WriteContentToFile(content *file.Content, filename string, format file.Format, yamlOrJSON string) error

Types

type Director

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

type HeadersByNameTypeAndValue added in v1.38.0

type HeadersByNameTypeAndValue []k8sgwapiv1.HTTPHeaderMatch

HeadersByNameTypeAndValue is a type to sort headers by name, type and value. This is needed to ensure that the order of headers is consistent across runs.

func (HeadersByNameTypeAndValue) Len added in v1.38.0

func (HeadersByNameTypeAndValue) Less added in v1.38.0

func (a HeadersByNameTypeAndValue) Less(i, j int) bool

func (HeadersByNameTypeAndValue) Swap added in v1.38.0

func (a HeadersByNameTypeAndValue) Swap(i, j int)

type IBuilder

type IBuilder interface {
	// contains filtered or unexported methods
}

type KICContent

type KICContent struct {
	KongIngresses        []kicv1.KongIngress             `json:"kongIngresses,omitempty" yaml:",omitempty"`
	KongPlugins          []kicv1.KongPlugin              `json:"kongPlugins,omitempty" yaml:",omitempty"`
	KongClusterPlugins   []kicv1.KongClusterPlugin       `json:"clusterPlugins,omitempty" yaml:",omitempty"`
	Ingresses            []k8snetv1.Ingress              `json:"ingresses,omitempty" yaml:",omitempty"`
	Services             []k8scorev1.Service             `json:"services,omitempty" yaml:",omitempty"`
	Secrets              []k8scorev1.Secret              `json:"secrets,omitempty" yaml:",omitempty"`
	KongConsumers        []kicv1.KongConsumer            `json:"consumers,omitempty" yaml:",omitempty"`
	KongConsumerGroups   []kicv1beta1.KongConsumerGroup  `json:"consumerGroups,omitempty" yaml:",omitempty"`
	HTTPRoutes           []k8sgwapiv1.HTTPRoute          `json:"httpRoutes,omitempty" yaml:",omitempty"`
	KongUpstreamPolicies []kicv1beta1.KongUpstreamPolicy `json:"upstreamPolicies,omitempty" yaml:",omitempty"`
}

KICContent represents a serialized Kong state for KIC. +k8s:deepcopy-gen=true

type KICv2GatewayAPIBuilder

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

type KICv2IngressAPIBuilder

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

type KICv3GatewayAPIBuider

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

type KICv3IngressAPIBuilder

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

Jump to

Keyboard shortcuts

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