Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶ added in v0.22.4
type Plugin struct {
// contains filtered or unexported fields
}
Implements functions for dealing with the Kubernetes context. Exposes an API for other plugins to get and validate the allowed k8s context.
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (State) IsAllowed ¶
Returns whether we're allowed to deploy to this kubecontext.
Checks against a manually specified list and a baked-in list with known dev cluster names.
Currently, only the tiltfile executor knows about "allowed" kubecontexts.
We don't keep this information around after tiltfile execution finishes.
This is incompatible with the overall technical direction of tilt as an apiserver. Objects registered via the API (like KubernetesApplys) don't get this protection. And it's currently only limited to the main Tiltfile.
A more compatible solution would be to have api server objects for the kubecontexts that tilt is aware of, and ways to mark them safe.
func (State) KubeContext ¶
func (s State) KubeContext() k8s.KubeContext