webhook-runtime: kmodules.xyz/webhook-runtime/admission/v1beta1 Index | Files | Directories

package v1beta1

import "kmodules.xyz/webhook-runtime/admission/v1beta1"

Copyright The Kmodules Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright The Kmodules Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Package Files

errors.go types.go

func StatusBadRequest Uses

func StatusBadRequest(err error) *v1beta1.AdmissionResponse

func StatusForbidden Uses

func StatusForbidden(err error) *v1beta1.AdmissionResponse

func StatusInternalServerError Uses

func StatusInternalServerError(err error) *v1beta1.AdmissionResponse

func StatusUninitialized Uses

func StatusUninitialized() *v1beta1.AdmissionResponse

type AdmissionHook Uses

type AdmissionHook interface {
    // Initialize is called as a post-start hook
    Initialize(config *rest.Config, stopCh <-chan struct{}) error

    // Resource is the resource to use for hosting your admission webhook. If the hook implements
    // MutatingAdmissionHook as well, the two resources for validating and mutating admission must be different.
    // Note: this is (usually) not the same as the payload resource!
    Resource() (plural schema.GroupVersionResource, singular string)

    // Validate is called to decide whether to accept the admission request. The returned AdmissionResponse may
    // use the Patch field to mutate the object from the passed AdmissionRequest.
    Admit(admissionSpec *admission.AdmissionRequest) *admission.AdmissionResponse
}

type GetFunc Uses

type GetFunc func(namespace, name string) (runtime.Object, error)

type GetterFactory Uses

type GetterFactory interface {
    New(config *rest.Config) (GetFunc, error)
}

Directories

PathSynopsis
generic
workload

Package v1beta1 imports 6 packages (graph) and is imported by 63 packages. Updated 2019-11-11. Refresh now. Tools for package owners.