Documentation ¶
Index ¶
- Constants
- Variables
- func CreateOrPatchMutatingWebhookConfiguration(c kubernetes.Interface, name string, ...) (*reg.MutatingWebhookConfiguration, kutil.VerbType, error)
- func CreateOrPatchValidatingWebhookConfiguration(c kubernetes.Interface, name string, ...) (*reg.ValidatingWebhookConfiguration, kutil.VerbType, error)
- func PatchMutatingWebhookConfiguration(c kubernetes.Interface, cur *reg.MutatingWebhookConfiguration, ...) (*reg.MutatingWebhookConfiguration, kutil.VerbType, error)
- func PatchMutatingWebhookConfigurationObject(c kubernetes.Interface, cur, mod *reg.MutatingWebhookConfiguration) (*reg.MutatingWebhookConfiguration, kutil.VerbType, error)
- func PatchValidatingWebhookConfiguration(c kubernetes.Interface, cur *reg.ValidatingWebhookConfiguration, ...) (*reg.ValidatingWebhookConfiguration, kutil.VerbType, error)
- func PatchValidatingWebhookConfigurationObject(c kubernetes.Interface, cur, mod *reg.ValidatingWebhookConfiguration) (*reg.ValidatingWebhookConfiguration, kutil.VerbType, error)
- func SyncMutatingWebhookCABundle(config *rest.Config, webhookConfigName string) (cancel context.CancelFunc, err error)
- func SyncValidatingWebhookCABundle(config *rest.Config, webhookConfigName string) (cancel context.CancelFunc, err error)
- func TryUpdateMutatingWebhookConfiguration(c kubernetes.Interface, name string, ...) (result *reg.MutatingWebhookConfiguration, err error)
- func TryUpdateValidatingWebhookConfiguration(c kubernetes.Interface, name string, ...) (result *reg.ValidatingWebhookConfiguration, err error)
- func UpdateMutatingWebhookCABundle(config *rest.Config, webhookConfigName string, ...) error
- func UpdateValidatingWebhookCABundle(config *rest.Config, webhookConfigName string, ...) error
- type ValidatingWebhookXray
- func NewCreateValidatingWebhookXray(config *rest.Config, apisvc string, testObj runtime.Object, ...) *ValidatingWebhookXray
- func NewDeleteValidatingWebhookXray(config *rest.Config, apisvc string, testObj runtime.Object, ...) *ValidatingWebhookXray
- func NewUpdateValidatingWebhookXray(config *rest.Config, apisvc string, testObj runtime.Object, ...) *ValidatingWebhookXray
Constants ¶
View Source
const ( KeyAdmissionWebhookActive = "admission-webhook.appscode.com/active" KeyAdmissionWebhookStatus = "admission-webhook.appscode.com/status" )
Variables ¶
View Source
var ErrMissingKind = errors.New("test object missing kind")
View Source
var ErrMissingVersion = errors.New("test object missing version")
View Source
var ErrWebhookNotActivated = errors.New("Admission webhooks are not activated. Enable it by configuring --enable-admission-plugins flag of kube-apiserver. For details, visit: https://appsco.de/kube-apiserver-webhooks")
Functions ¶
func CreateOrPatchMutatingWebhookConfiguration ¶
func CreateOrPatchMutatingWebhookConfiguration(c kubernetes.Interface, name string, transform func(*reg.MutatingWebhookConfiguration) *reg.MutatingWebhookConfiguration) (*reg.MutatingWebhookConfiguration, kutil.VerbType, error)
func CreateOrPatchValidatingWebhookConfiguration ¶
func CreateOrPatchValidatingWebhookConfiguration(c kubernetes.Interface, name string, transform func(*reg.ValidatingWebhookConfiguration) *reg.ValidatingWebhookConfiguration) (*reg.ValidatingWebhookConfiguration, kutil.VerbType, error)
func PatchMutatingWebhookConfiguration ¶
func PatchMutatingWebhookConfiguration(c kubernetes.Interface, cur *reg.MutatingWebhookConfiguration, transform func(*reg.MutatingWebhookConfiguration) *reg.MutatingWebhookConfiguration) (*reg.MutatingWebhookConfiguration, kutil.VerbType, error)
func PatchMutatingWebhookConfigurationObject ¶
func PatchMutatingWebhookConfigurationObject(c kubernetes.Interface, cur, mod *reg.MutatingWebhookConfiguration) (*reg.MutatingWebhookConfiguration, kutil.VerbType, error)
func PatchValidatingWebhookConfiguration ¶
func PatchValidatingWebhookConfiguration(c kubernetes.Interface, cur *reg.ValidatingWebhookConfiguration, transform func(*reg.ValidatingWebhookConfiguration) *reg.ValidatingWebhookConfiguration) (*reg.ValidatingWebhookConfiguration, kutil.VerbType, error)
func PatchValidatingWebhookConfigurationObject ¶
func PatchValidatingWebhookConfigurationObject(c kubernetes.Interface, cur, mod *reg.ValidatingWebhookConfiguration) (*reg.ValidatingWebhookConfiguration, kutil.VerbType, error)
func TryUpdateMutatingWebhookConfiguration ¶
func TryUpdateMutatingWebhookConfiguration(c kubernetes.Interface, name string, transform func(*reg.MutatingWebhookConfiguration) *reg.MutatingWebhookConfiguration) (result *reg.MutatingWebhookConfiguration, err error)
func TryUpdateValidatingWebhookConfiguration ¶
func TryUpdateValidatingWebhookConfiguration(c kubernetes.Interface, name string, transform func(*reg.ValidatingWebhookConfiguration) *reg.ValidatingWebhookConfiguration) (result *reg.ValidatingWebhookConfiguration, err error)
func UpdateMutatingWebhookCABundle ¶
func UpdateMutatingWebhookCABundle(config *rest.Config, webhookConfigName string, extraConditions ...watchtools.ConditionFunc) error
func UpdateValidatingWebhookCABundle ¶
func UpdateValidatingWebhookCABundle(config *rest.Config, webhookConfigName string, extraConditions ...watchtools.ConditionFunc) error
Types ¶
type ValidatingWebhookXray ¶
type ValidatingWebhookXray struct {
// contains filtered or unexported fields
}
func (ValidatingWebhookXray) IsActive ¶
func (d ValidatingWebhookXray) IsActive() error
Click to show internal directories.
Click to hide internal directories.