checker

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureGateConfig

type FeatureGateConfig struct {
	FeatureGateKey   string
	FeatureGateValue string
}

type SystemComponentContainer

type SystemComponentContainer struct {
	Name         string
	FeatureGates []FeatureGateConfig
}

type SystemComponentFeatureGateMartix

type SystemComponentFeatureGateMartix map[string][]SystemComponentPod

func CollectRunningClusterFeatureGates

func CollectRunningClusterFeatureGates(ctx context.Context, clientset *kubernetes.Clientset) (SystemComponentFeatureGateMartix, error)

CollectRunningClusterFeatureGates はKubernetesクラスタからシステムコンポーネントの情報を取ってきて、Feature Gateの設定を解析する 返り値となるMatrixは、 {"kube-apiserver": [{"feature-gate-001": "true"}, {}]}のようになる

type SystemComponentPod

type SystemComponentPod struct {
	Name       string
	Containers []SystemComponentContainer
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL