etcd: kubedb.dev/etcd/pkg/admission Index | Files

package admission

import "kubedb.dev/etcd/pkg/admission"

Copyright The KubeDB 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 KubeDB 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

mutator.go validator.go

func ValidateEtcd Uses

func ValidateEtcd(client kubernetes.Interface, extClient cs.Interface, etcd *api.Etcd, strictValidation bool) error

ValidateEtcd checks if the object satisfies all the requirements. It is not method of Interface, because it is referenced from controller package too.

type EtcdMutator Uses

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

func (*EtcdMutator) Admit Uses

func (a *EtcdMutator) Admit(req *admission.AdmissionRequest) *admission.AdmissionResponse

func (*EtcdMutator) Initialize Uses

func (a *EtcdMutator) Initialize(config *rest.Config, stopCh <-chan struct{}) error

func (*EtcdMutator) Resource Uses

func (a *EtcdMutator) Resource() (plural schema.GroupVersionResource, singular string)

type EtcdValidator Uses

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

func (*EtcdValidator) Admit Uses

func (a *EtcdValidator) Admit(req *admission.AdmissionRequest) *admission.AdmissionResponse

func (*EtcdValidator) Initialize Uses

func (a *EtcdValidator) Initialize(config *rest.Config, stopCh <-chan struct{}) error

func (*EtcdValidator) Resource Uses

func (a *EtcdValidator) Resource() (plural schema.GroupVersionResource, singular string)

Package admission imports 22 packages (graph) and is imported by 6 packages. Updated 2019-12-15. Refresh now. Tools for package owners.