Documentation ¶
Index ¶
- Constants
- func AsapKeyAdmitFunc(ctx context.Context, admissionReview admissionv1beta1.AdmissionReview) (*admissionv1beta1.AdmissionResponse, error)
- func ExternalUUIDAdmitFunc(ctx context.Context, uuidGenerator uuid.Generator, ...) (*admissionv1beta1.AdmissionResponse, error)
- func IsMicrosServiceClass(serviceInstance sc_v1b1.ServiceInstance) bool
- func MicrosAdmitFunc(ctx context.Context, scClient serviceCentralClient, ...) (*admissionv1beta1.AdmissionResponse, error)
- func PlatformDNSAdmitFunc(ctx context.Context, microsServerClient microsServerClient, ...) (*admissionv1beta1.AdmissionResponse, error)
- type SvcCatAdmission
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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.