cno

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReconcileDeployment

func ReconcileDeployment(dep *appsv1.Deployment, params Params, platformType hyperv1.PlatformType) error

func ReconcileRole

func ReconcileRole(role *rbacv1.Role, ownerRef config.OwnerRef, networkType hyperv1.NetworkType) error

func ReconcileRoleBinding

func ReconcileRoleBinding(rb *rbacv1.RoleBinding, ownerRef config.OwnerRef) error

func ReconcileServiceAccount

func ReconcileServiceAccount(sa *corev1.ServiceAccount, ownerRef config.OwnerRef) error

func SetRestartAnnotationAndPatch

func SetRestartAnnotationAndPatch(ctx context.Context, crclient client.Client, dep *appsv1.Deployment, c config.DeploymentConfig) error

Types

type Images

type Images struct {
	NetworkOperator              string
	SDN                          string
	KubeProxy                    string
	KubeRBACProxy                string
	Multus                       string
	MultusAdmissionController    string
	CNIPlugins                   string
	BondCNIPlugin                string
	WhereaboutsCNI               string
	RouteOverrideCNI             string
	MultusNetworkPolicy          string
	OVN                          string
	OVNControlPlane              string
	EgressRouterCNI              string
	KuryrDaemon                  string
	KuryrController              string
	NetworkMetricsDaemon         string
	NetworkCheckSource           string
	NetworkCheckTarget           string
	CloudNetworkConfigController string
	TokenMinter                  string
	CLI                          string
	Socks5Proxy                  string
}

type Params

type Params struct {
	ReleaseVersion          string
	AvailabilityProberImage string
	HostedClusterName       string
	CAConfigMap             string
	CAConfigMapKey          string
	APIServerAddress        string
	APIServerPort           int32
	TokenAudience           string
	Images                  Images
	OwnerRef                config.OwnerRef
	DeploymentConfig        config.DeploymentConfig
	IsPrivate               bool
	ExposedThroughHCPRouter bool
	SbDbPubStrategy         *hyperv1.ServicePublishingStrategy
	DefaultIngressDomain    string
}

func NewParams

func NewParams(hcp *hyperv1.HostedControlPlane, version string, releaseImageProvider *imageprovider.ReleaseImageProvider, userReleaseImageProvider *imageprovider.ReleaseImageProvider, setDefaultSecurityContext bool, defaultIngressDomain string) Params

Jump to

Keyboard shortcuts

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