installer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildNewCoreFile

func BuildNewCoreFile(corefile []byte) ([]byte, bool, error)

func ExistContainerByName

func ExistContainerByName(name string, containers []corev1.Container) bool

func ExistInterfaceSlice

func ExistInterfaceSlice(val string, item []interface{}) bool

func ExistPolicyRule

func ExistPolicyRule(rule rbacv1.PolicyRule, rules []rbacv1.PolicyRule) bool

func ExistPortsByPort

func ExistPortsByPort(port int32, ports []corev1.ServicePort) bool

func ExistStringSlice

func ExistStringSlice(val string, item []string) bool

func ExistVolumeMountsByName

func ExistVolumeMountsByName(name string, volumeMounts []corev1.VolumeMount) bool

func ExistVolumeMsByName

func ExistVolumeMsByName(name string, volumes []corev1.Volume) bool

func FileExist

func FileExist(name string) bool

Types

type Args

type Args struct {
	// Kubeconfig  is absolute path to the kubeconfig file
	Kubeconfig                string
	CoreDNSName               string
	CoreDNSNamespace          string
	CoreDNSHostsServerVersion string
	ServerArgs                *server.Args
}

func NewEmptyArgs

func NewEmptyArgs() *Args

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(args *Args) (*Server, error)

func (*Server) RunOnce

func (s *Server) RunOnce() error

Jump to

Keyboard shortcuts

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