admission

package
v0.1.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateProxySQL

func ValidateProxySQL(client kubernetes.Interface, extClient cs.Interface, proxysql *api.ProxySQL, strictValidation bool) error

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

Types

type ProxySQLMutator

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

ProxySQLMutator implements the AdmissionHook interface to mutate the ProxySQL resources

func (*ProxySQLMutator) Admit

Admit is called to decide whether to accept the admission request. The returned response may use the Patch field to mutate the object.

func (*ProxySQLMutator) Initialize

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

Initialize is called as a post-start hook

func (*ProxySQLMutator) Resource

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

Resource is the resource to use for hosting mutating admission webhook.

type ProxySQLValidator

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

ProxySQLValidator implements the AdmissionHook interface to validate the ProxySQL resources

func (*ProxySQLValidator) Admit

Admit is called to decide whether to accept the admission request.

func (*ProxySQLValidator) Initialize

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

Initialize is called as a post-start hook

func (*ProxySQLValidator) Resource

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

Resource is the resource to use for hosting validating admission webhook.

Jump to

Keyboard shortcuts

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