Documentation ¶
Index ¶
- type Config
- type Runtime
- func (r *Runtime) DeleteAPIManifests(namespaces *corev1.NamespaceList) error
- func (r *Runtime) GetKubeletPods() ([]v1.Pod, error)
- func (r *Runtime) GetKubeletRunningPods() ([]v1.Pod, error)
- func (r *Runtime) GetKubeletStaticPods() ([]v1.Pod, error)
- func (r *Runtime) Run() error
- func (r *Runtime) Stop(withError error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.7.0
type Config struct { // RunTimeout is the total time to run RunTimeout time.Duration // KubeletGCTimeout is the duration period to wait until the kubelet is garbage collected KubeletGCTimeout time.Duration // ReadinessDNSQueries are the dns query to execute to ack the readiness ReadinessDNSQueries []string // SkipProbes allows to discard any check on the environment to keep running SkipProbes bool }
Config for the Runtime
type Runtime ¶
type Runtime struct { SigChan chan os.Signal ApplyChan chan struct{} // contains filtered or unexported fields }
Runtime is the main state to execute a managed pupernetes Run
func NewRunner ¶
func NewRunner(env *setup.Environment, conf *Config) (*Runtime, error)
NewRunner instantiate a new Runtimer with the given Environment
func (*Runtime) DeleteAPIManifests ¶
func (r *Runtime) DeleteAPIManifests(namespaces *corev1.NamespaceList) error
DeleteAPIManifests execute Kubernetes delete API calls to delete the following resources: - services - Jobs - Deployments - Daemonset - ReplicationController - ReplicaSets - Pods - Endpoints - ConfigMaps - Secrets - ServiceAccounts
func (*Runtime) GetKubeletPods ¶
GetKubeletPods returns the pods reported by the kubelet API /pods The certificate setup needs to be valid
func (*Runtime) GetKubeletRunningPods ¶
GetKubeletRunningPods run GetKubeletPods and then only filter the running ones. It excludes static pods
func (*Runtime) GetKubeletStaticPods ¶
GetKubeletStaticPods returns the kubelet running static pods