handler

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelTenantType                      = "sme.sap.com/tenant-type"
	LabelTenantId                        = "sme.sap.com/btp-tenant-id"
	ProviderTenantType                   = "provider"
	SideCarEnv                           = "WEBHOOK_SIDE_CAR"
	AdmissionError                       = "admission error:"
	InvalidResource                      = "invalid resource"
	InvalidationMessage                  = "invalidated from webhook"
	ValidationMessage                    = "validated from webhook"
	RequestPath                          = "/request"
	DeploymentWorkloadCountErr           = "%s %s there should always be one workload deployment definition of type %s. Currently, there are %d workloads of type %s"
	TenantOpJobWorkloadCountErr          = "%s %s there should not be any job workload of type %s or %s defined if all the deployment workloads are of type %s."
	ServiceExposureWorkloadNameErr       = "" /* 129-byte string literal not displayed */
	DuplicateServiceExposureSubDomainErr = "%s %s duplicate subDomain %s in service exposure"
	DomainsDeprecated                    = "%s %s domains are deprecated. Use domainRefs instead in: %s.%s"
)
View Source
const (
	LabelMigratedToDomainRefsFromCA = "sme.sap.com/migrated-to-domain-refs-from-ca"
	PrimaryDomainSuffix             = "-primary"
	CAPOperatorDomainsPrefix        = "cap-operator-domains-"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

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

Metadata struct for parsing

type ResponseCa

type ResponseCa struct {
	Metadata `json:"metadata"`
	Spec     *v1alpha1.CAPApplicationSpec `json:"spec"`
	Kind     string                       `json:"kind"`
}

type ResponseCat

type ResponseCat struct {
	Metadata `json:"metadata"`
	Spec     *v1alpha1.CAPTenantSpec   `json:"spec"`
	Status   *v1alpha1.CAPTenantStatus `json:"status"`
	Kind     string                    `json:"kind"`
}

type ResponseCav

type ResponseCav struct {
	Metadata `json:"metadata"`
	Spec     *v1alpha1.CAPApplicationVersionSpec `json:"spec"`
	Kind     string                              `json:"kind"`
}

type ResponseCtout added in v0.9.0

type ResponseCtout struct {
	Metadata `json:"metadata"`
	Spec     *v1alpha1.CAPTenantOutputSpec `json:"spec"`
	Kind     string                        `json:"kind"`
}

type ResponseDom added in v0.15.0

type ResponseDom struct {
	Metadata `json:"metadata"`
	Spec     *v1alpha1.DomainSpec `json:"spec"`
	Kind     string               `json:"kind"`
}

type WebhookHandler

type WebhookHandler struct {
	CrdClient versioned.Interface
}

func (*WebhookHandler) Mutate added in v0.15.0

func (wh *WebhookHandler) Mutate(w http.ResponseWriter, r *http.Request)

func (*WebhookHandler) Validate

func (wh *WebhookHandler) Validate(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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