Documentation
¶
Overview ¶
Copyright (c) 2019-2021 Red Hat, Inc. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Red Hat, Inc. - initial API and implementation
Copyright (c) 2019-2021 Red Hat, Inc. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Red Hat, Inc. - initial API and implementation
Copyright (c) 2019-2021 Red Hat, Inc. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Red Hat, Inc. - initial API and implementation
Copyright (c) 2019-2021 Red Hat, Inc. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Red Hat, Inc. - initial API and implementation
Copyright (c) 2019-2021 Red Hat, Inc. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Red Hat, Inc. - initial API and implementation
Copyright (c) 2019-2021 Red Hat, Inc. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Red Hat, Inc. - initial API and implementation
Index ¶
- Variables
- type WebhookHandler
- func (h *WebhookHandler) HandleRestrictedAccessCreate(_ context.Context, req admission.Request) admission.Response
- func (h *WebhookHandler) HandleRestrictedAccessUpdate(_ context.Context, req admission.Request) admission.Response
- func (h *WebhookHandler) MutateDeploymentOnCreate(_ context.Context, req admission.Request) admission.Response
- func (h *WebhookHandler) MutateDeploymentOnUpdate(_ context.Context, req admission.Request) admission.Response
- func (h *WebhookHandler) MutatePodOnCreate(_ context.Context, req admission.Request) admission.Response
- func (h *WebhookHandler) MutatePodOnUpdate(_ context.Context, req admission.Request) admission.Response
- func (h *WebhookHandler) MutateWorkspaceV1alpha1OnCreate(_ context.Context, req admission.Request) admission.Response
- func (h *WebhookHandler) MutateWorkspaceV1alpha1OnUpdate(_ context.Context, req admission.Request) admission.Response
- func (h *WebhookHandler) MutateWorkspaceV1alpha2OnCreate(_ context.Context, req admission.Request) admission.Response
- func (h *WebhookHandler) MutateWorkspaceV1alpha2OnUpdate(_ context.Context, req admission.Request) admission.Response
- func (h *WebhookHandler) ValidateExecOnConnect(ctx context.Context, req admission.Request) admission.Response
Constants ¶
This section is empty.
Variables ¶
var ( V1alpha1DevWorkspaceKind = metav1.GroupVersionKind{Kind: "DevWorkspace", Group: "workspace.devfile.io", Version: "v1alpha1"} V1alpha2DevWorkspaceKind = metav1.GroupVersionKind{Kind: "DevWorkspace", Group: "workspace.devfile.io", Version: "v1alpha2"} V1alpha1DevWorkspaceRoutingKind = metav1.GroupVersionKind{Kind: "DevWorkspaceRouting", Group: "controller.devfile.io", Version: "v1alpha1"} V1alpha1ComponentKind = metav1.GroupVersionKind{Kind: "Component", Group: "controller.devfile.io", Version: "v1alpha1"} AppsV1DeploymentKind = metav1.GroupVersionKind{Kind: "Deployment", Group: "apps", Version: "v1"} V1PodKind = metav1.GroupVersionKind{Kind: "Pod", Group: "", Version: "v1"} V1ServiceKind = metav1.GroupVersionKind{Kind: "Service", Group: "", Version: "v1"} V1beta1IngressKind = metav1.GroupVersionKind{Kind: "Ingress", Group: "extensions", Version: "v1beta1"} V1JobKind = metav1.GroupVersionKind{Kind: "Job", Group: "batch", Version: "v1"} V1RouteKind = metav1.GroupVersionKind{Kind: "Route", Group: "route.openshift.io", Version: "v1"} )
var RestrictedAccessDiffOptions = []cmp.Option{ cmpopts.IgnoreTypes(metav1.ObjectMeta{}), cmpopts.IgnoreFields(dwv1.DevWorkspaceSpec{}, "Started"), cmpopts.IgnoreFields(dwv2.DevWorkspaceSpec{}, "Started"), }
RestrictedAccessDiffOptions is comparing options that should be used to check for changes to a devworkspace. Changing the .spec.started field is permitted. Note: Does not check metadata; use checkRestrictedWorkspaceMetadata for this.
var V1PodExecOptionKind = metav1.GroupVersionKind{Kind: "PodExecOptions", Group: "", Version: "v1"}
Functions ¶
This section is empty.
Types ¶
type WebhookHandler ¶
type WebhookHandler struct { ControllerUID string ControllerSAName string Client client.Client Decoder *admission.Decoder }