Documentation ¶
Index ¶
- Variables
- func ValidateCloudChange(newSpec, oldSpec kubermaticv1.CloudSpec) error
- func ValidateCloudSpec(spec kubermaticv1.CloudSpec, dc *kubermaticv1.Datacenter) error
- func ValidateCreateClusterSpec(spec *kubermaticv1.ClusterSpec, dc *kubermaticv1.Datacenter, ...) error
- func ValidateCreateNodeSpec(c *kubermaticv1.Cluster, spec *apiv1.NodeSpec, dc *kubermaticv1.Datacenter) error
- func ValidateLeaderElectionSettings(l kubermaticv1.LeaderElectionSettings) error
- func ValidateUpdateCluster(ctx context.Context, newCluster, oldCluster *kubermaticv1.Cluster, ...) error
- func ValidateUpdateWindow(updateWindow *kubermaticv1.UpdateWindow) error
- type WebhookOpts
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCloudChangeNotAllowed describes that it is not allowed to change the cloud provider ErrCloudChangeNotAllowed = errors.New("not allowed to change the cloud provider") )
Functions ¶
func ValidateCloudChange ¶
func ValidateCloudChange(newSpec, oldSpec kubermaticv1.CloudSpec) error
ValidateCloudChange validates if the cloud provider has been changed
func ValidateCloudSpec ¶
func ValidateCloudSpec(spec kubermaticv1.CloudSpec, dc *kubermaticv1.Datacenter) error
ValidateCloudSpec validates if the cloud spec is valid
func ValidateCreateClusterSpec ¶
func ValidateCreateClusterSpec(spec *kubermaticv1.ClusterSpec, dc *kubermaticv1.Datacenter, cloudProvider provider.CloudProvider) error
ValidateCreateClusterSpec validates the given cluster spec
func ValidateCreateNodeSpec ¶
func ValidateCreateNodeSpec(c *kubermaticv1.Cluster, spec *apiv1.NodeSpec, dc *kubermaticv1.Datacenter) error
func ValidateLeaderElectionSettings ¶ added in v2.16.4
func ValidateLeaderElectionSettings(l kubermaticv1.LeaderElectionSettings) error
func ValidateUpdateCluster ¶
func ValidateUpdateCluster(ctx context.Context, newCluster, oldCluster *kubermaticv1.Cluster, dc *kubermaticv1.Datacenter, clusterProvider *kubernetesprovider.ClusterProvider) error
ValidateUpdateCluster validates if the cluster update is allowed
func ValidateUpdateWindow ¶
func ValidateUpdateWindow(updateWindow *kubermaticv1.UpdateWindow) error
Types ¶
type WebhookOpts ¶ added in v2.16.3
type WebhookOpts struct { // Deprecated fields to be removed ListenAddress string CertFile string KeyFile string // contains filtered or unexported fields }
func (*WebhookOpts) AddFlags ¶ added in v2.16.3
func (opts *WebhookOpts) AddFlags(fs *flag.FlagSet, includeDeprecatedFlags bool)
func (*WebhookOpts) Configure ¶ added in v2.16.3
func (opts *WebhookOpts) Configure(s *webhook.Server) error
func (*WebhookOpts) Configured ¶ added in v2.16.3
func (opts *WebhookOpts) Configured() bool
Configured() must be called after the Validate() function has normalized the deprecated flags.
func (*WebhookOpts) Validate ¶ added in v2.16.3
func (opts *WebhookOpts) Validate() error
Click to show internal directories.
Click to hide internal directories.