Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

plugins

Plugin Spec

PluginSpec defines the desired state of Plugin

type PluginSpec struct {
Type string `json:"type,omitempty"`
Data string `json:"data,omitempty"`
Action string `json:"action,omitempty"`
Scope string `json:"scope,omitempty"`
}
  1. for PluginSpec.Type: plugin type,currently only supported "SHELL".
  2. for PluginSpec.Data: plugin`s real data, sealer will use it to do actual action.
  3. for PluginSpec.Scope: plugin`s scope, it is usually the role name, support use '|' to specify multiple scopes.
  4. for PluginSpec.Action: phase of this plugin will run. below is the phase list we currently supported.

plugin will be executed by PluginSpec.Name in alphabetical order at the same stage.

The following is a detailed introduction for plugin action.

action nameaction scopeexplanation
pre-init-hostcluster hostwill run before init cluster host
post-init-hostcluster hostwill run after init cluster host
pre-clean-hostcluster hostwill run before clean cluster host
post-clean-hostcluster hostwill run after clean cluster host
pre-installmaster0will run before install cluster
post-installmaster0will run after install cluster
pre-uninstallmaster0will run before uninstall cluster
post-uninstallmaster0will run after uninstall cluster
pre-scaleupmaster0will run before scaleup cluster
post-scaleupmaster0will run after scaleup cluster
upgrade-hostcluster hostwill run before upgrade cluster
upgrademaster0will run for upgrading cluster

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors