kuberneteswebhooks

What does the admission controller (or webhook controller) `CONNECT` operation entail?


What does the admission controller (or webhook controller) CONNECT operation actually mean? Where is that documented?

// Operation is the type of resource operation being checked for admission control
type Operation string

// Operation constants
const (
    Create  Operation = "CREATE"
    Update  Operation = "UPDATE"
    Delete  Operation = "DELETE"
    Connect Operation = "CONNECT"
)

https://github.com/kubernetes/kubernetes/blob/f79c00e8ff43b80a7fb294341027428f01e9f036/staging/src/k8s.io/apiserver/pkg/admission/interfaces.go#L154


Solution

  • I tried to find something about CONNECT too, there is not too much info about it.

    The CONNECT operation occurs when a user/process performs a kubectl exec command against a Pod.

    You can read a little bit more about it here