Documentation ¶
Index ¶
Constants ¶
View Source
const (
//K8sConfigDir path where have all K8s cluster configurations
K8sConfigDir = "/etc/kubernetes"
)
Variables ¶
This section is empty.
Functions ¶
func InitializeScenario ¶
func InitializeScenario(ctx *godog.ScenarioContext)
InitializeScenario initialize feature object and steps
Types ¶
type ClusterConfiguration ¶
type ClusterConfiguration struct { APIServer struct { CertSANs []string `yaml:"certSANs"` ExtraArgs struct { CloudConfig string `yaml:"cloud-config"` CloudProvider string `yaml:"cloud-provider"` AuthorizationMode string `yaml:"authorization-mode"` EnableAdmissionPlugins string `yaml:"enable-admission-plugins"` OidcCaFile string `yaml:"oidc-ca-file"` OidcClientID string `yaml:"oidc-client-id"` OidcGroupsClaim string `yaml:"oidc-groups-claim"` OidcIssuerURL string `yaml:"oidc-issuer-url"` OidcUsernameClaim string `yaml:"oidc-username-claim"` ServiceAccountIssuer string `yaml:"service-account-issuer"` ServiceAccountSigningKeyFile string `yaml:"service-account-signing-key-file"` } `yaml:"extraArgs"` ExtraVolumes []ExtraVolume `yaml:"extraVolumes"` TimeoutForControlPlane string `yaml:"timeoutForControlPlane"` } `yaml:"apiServer"` APIVersion string `yaml:"apiVersion"` CertificatesDir string `yaml:"certificatesDir"` ClusterName string `yaml:"clusterName"` ControlPlaneEndpoint string `yaml:"controlPlaneEndpoint"` ControllerManager struct { ExtraArgs struct { CloudConfig string `yaml:"cloud-config"` CloudProvider string `yaml:"cloud-provider"` } `yaml:"extraArgs"` ExtraVolumes []ExtraVolume `yaml:"extraVolumes"` } `yaml:"controllerManager"` DNS struct { ImageRepository string `yaml:"imageRepository"` ImageTag string `yaml:"imageTag"` Type string `yaml:"type"` } `yaml:"dns"` Etcd struct { Local struct { DataDir string `yaml:"dataDir"` ImageRepository string `yaml:"imageRepository"` ImageTag string `yaml:"imageTag"` } `yaml:"local"` } `yaml:"etcd"` ImageRepository string `yaml:"imageRepository"` Kind string `yaml:"kind"` KubernetesVersion string `yaml:"kubernetesVersion"` Networking struct { DNSDomain string `yaml:"dnsDomain"` PodSubnet string `yaml:"podSubnet"` ServiceSubnet string `yaml:"serviceSubnet"` } `yaml:"networking"` Scheduler struct { } `yaml:"scheduler"` }
ClusterConfiguration object
type Configmap ¶
type Configmap struct { APIVersion string `yaml:"apiVersion"` Data struct { ClusterConfiguration string `yaml:"ClusterConfiguration"` ClusterStatus string `yaml:"ClusterStatus"` } `yaml:"data"` Kind string `yaml:"kind"` Metadata map[string]interface{} `yaml:"metadata"` }
Configmap of kubeadm-config object
type ExtraVolume ¶
type ExtraVolume struct { HostPath string `yaml:"hostPath"` MountPath string `yaml:"mountPath"` Name string `yaml:"name"` PathType string `yaml:"pathType"` ReadOnly bool `yaml:"readOnly"` }
ExtraVolume object
type Kubeadm ¶
type Kubeadm struct { Configmap Configmap ClusterConfiguration ClusterConfiguration }
Kubeadm object
Click to show internal directories.
Click to hide internal directories.