svccatadmission

package
v0.0.0-...-e0434a4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ASAPKeyClusterServiceClassExternalID   = "daa6e8e7-7201-4031-86f2-ef9fdfeae7d6"
	ASAPKeyClusterServiceClassName         = ASAPKeyClusterServiceClassExternalID
	ASAPKeyClusterServiceClassExternalName = "ASAP"
)

Variables

This section is empty.

Functions

func AsapKeyAdmitFunc

func AsapKeyAdmitFunc(ctx context.Context, admissionReview admissionv1beta1.AdmissionReview) (*admissionv1beta1.AdmissionResponse, error)

AsapKeyAdmitFunc only allow parameter.ServiceName (which ends up being the ASAPKey issuer) prefixed with Micros2 serviceName

func ExternalUUIDAdmitFunc

func ExternalUUIDAdmitFunc(ctx context.Context, uuidGenerator uuid.Generator, scClient serviceCentralClient, rpsCache *rps.Cache, admissionReview admissionv1beta1.AdmissionReview) (*admissionv1beta1.AdmissionResponse, error)

func IsMicrosServiceClass

func IsMicrosServiceClass(serviceInstance sc_v1b1.ServiceInstance) bool

func MicrosAdmitFunc

func MicrosAdmitFunc(ctx context.Context, scClient serviceCentralClient, admissionReview admissionv1beta1.AdmissionReview) (*admissionv1beta1.AdmissionResponse, error)

func PlatformDNSAdmitFunc

func PlatformDNSAdmitFunc(ctx context.Context, microsServerClient microsServerClient, scClient serviceCentralClient, admissionReview admissionv1beta1.AdmissionReview) (*admissionv1beta1.AdmissionResponse, error)

PlatformDNSAdmitFunc checks existing DNS alias ownership via micros server API, for both PlatformDNS Services and Ingress Resources

Types

type SvcCatAdmission

type SvcCatAdmission struct {
	Logger            *zap.Logger
	HTTPClient        *http.Client
	ServiceCentralURL *url.URL
	RPSURL            *url.URL
	MicrosServerURL   *url.URL
	ASAPClientConfig  pkiutil.ASAP
}

func (*SvcCatAdmission) SetupAdmissionWebhooks

func (s *SvcCatAdmission) SetupAdmissionWebhooks(r *chi.Mux)

Directories

Path Synopsis
rps

Jump to

Keyboard shortcuts

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