Documentation ¶
Index ¶
- Constants
- func APICRD() (*apiextensionv1.CustomResourceDefinition, error)
- func ClusterRole(component, subComponent string) (*rbacv1.ClusterRole, error)
- func ClusterRoleBinding(component, subComponent string) (*rbacv1.ClusterRoleBinding, error)
- func ConfigMap(component, subComponent string) (*corev1.ConfigMap, error)
- func DaemonSet(component, subComponent string, plat platform.Platform, namespace string) (*appsv1.DaemonSet, error)
- func Deployment(component, subComponent, namespace string) (*appsv1.Deployment, error)
- func DeserializeObjectFromData(data []byte) (runtime.Object, error)
- func KubeSchedulerConfigurationFromData(data []byte) (*kubeschedulerconfigv1beta2.KubeSchedulerConfiguration, error)
- func KubeSchedulerConfigurationToData(sc *kubeschedulerconfigv1beta2.KubeSchedulerConfiguration) ([]byte, error)
- func MachineConfig(component string, ver platform.Version) (*machineconfigv1.MachineConfig, error)
- func Namespace(component string) (*corev1.Namespace, error)
- func Role(component, subComponent, namespace string) (*rbacv1.Role, error)
- func RoleBinding(component, subComponent, namespace string) (*rbacv1.RoleBinding, error)
- func SchedulerCRD() (*apiextensionv1.CustomResourceDefinition, error)
- func SecurityContextConstraint(component string) (*securityv1.SecurityContextConstraints, error)
- func SerializeObject(obj runtime.Object, out io.Writer) error
- func SerializeObjectToData(obj runtime.Object) ([]byte, error)
- func Service(component, subComponent, namespace string) (*corev1.Service, error)
- func ServiceAccount(component, subComponent, namespace string) (*corev1.ServiceAccount, error)
- func UpdateClusterRoleBinding(crb *rbacv1.ClusterRoleBinding, serviceAccount, namespace string)
- func UpdateMachineConfig(mc *machineconfigv1.MachineConfig, name string, ...)
- func UpdateMetricsPort(ds *appsv1.DaemonSet, pNum int)
- func UpdateNFDMasterDeployment(ds *appsv1.Deployment, pullIfNotPresent bool)
- func UpdateNFDTopologyUpdaterDaemonSet(ds *appsv1.DaemonSet, pullIfNotPresent bool, ...)
- func UpdateResourceTopologyExporterContainerConfig(podSpec *corev1.PodSpec, cnt *corev1.Container, configMapName string)
- func UpdateResourceTopologyExporterDaemonSet(ds *appsv1.DaemonSet, configMapName string, pullIfNotPresent bool, ...)
- func UpdateRoleBinding(rb *rbacv1.RoleBinding, serviceAccount, namespace string)
- func UpdateSchedulerPluginControllerDeployment(dp *appsv1.Deployment, pullIfNotPresent bool)
- func UpdateSchedulerPluginSchedulerDeployment(dp *appsv1.Deployment, pullIfNotPresent bool)
- func UpdateSecurityContextConstraint(scc *securityv1.SecurityContextConstraints, sa *corev1.ServiceAccount)
Constants ¶
View Source
const ( ComponentAPI = "api" ComponentSchedulerPlugin = "sched" ComponentResourceTopologyExporter = "rte" ComponentNodeFeatureDiscovery = "nfd" )
View Source
const ( SubComponentSchedulerPluginScheduler = "scheduler" SubComponentSchedulerPluginController = "controller" SubComponentNodeFeatureDiscoveryMaster = "master" SubComponentNodeFeatureDiscoveryTopologyUpdater = "topologyupdater" )
View Source
const (
RTEConfigMapName = "rte-config"
)
Variables ¶
This section is empty.
Functions ¶
func APICRD ¶
func APICRD() (*apiextensionv1.CustomResourceDefinition, error)
func ClusterRole ¶
func ClusterRole(component, subComponent string) (*rbacv1.ClusterRole, error)
func ClusterRoleBinding ¶
func ClusterRoleBinding(component, subComponent string) (*rbacv1.ClusterRoleBinding, error)
func Deployment ¶
func Deployment(component, subComponent, namespace string) (*appsv1.Deployment, error)
func DeserializeObjectFromData ¶ added in v0.8.0
func KubeSchedulerConfigurationFromData ¶
func KubeSchedulerConfigurationFromData(data []byte) (*kubeschedulerconfigv1beta2.KubeSchedulerConfiguration, error)
func KubeSchedulerConfigurationToData ¶
func KubeSchedulerConfigurationToData(sc *kubeschedulerconfigv1beta2.KubeSchedulerConfiguration) ([]byte, error)
func MachineConfig ¶ added in v0.0.12
func MachineConfig(component string, ver platform.Version) (*machineconfigv1.MachineConfig, error)
func RoleBinding ¶ added in v0.0.9
func RoleBinding(component, subComponent, namespace string) (*rbacv1.RoleBinding, error)
func SchedulerCRD ¶
func SchedulerCRD() (*apiextensionv1.CustomResourceDefinition, error)
func SecurityContextConstraint ¶ added in v0.0.12
func SecurityContextConstraint(component string) (*securityv1.SecurityContextConstraints, error)
func SerializeObjectToData ¶ added in v0.8.0
func ServiceAccount ¶
func ServiceAccount(component, subComponent, namespace string) (*corev1.ServiceAccount, error)
func UpdateClusterRoleBinding ¶
func UpdateClusterRoleBinding(crb *rbacv1.ClusterRoleBinding, serviceAccount, namespace string)
func UpdateMachineConfig ¶ added in v0.0.12
func UpdateMachineConfig(mc *machineconfigv1.MachineConfig, name string, mcpSelector *metav1.LabelSelector)
func UpdateMetricsPort ¶ added in v0.0.12
func UpdateNFDMasterDeployment ¶ added in v0.5.0
func UpdateNFDMasterDeployment(ds *appsv1.Deployment, pullIfNotPresent bool)
func UpdateNFDTopologyUpdaterDaemonSet ¶ added in v0.5.0
func UpdateNFDTopologyUpdaterDaemonSet(ds *appsv1.DaemonSet, pullIfNotPresent bool, nodeSelector *metav1.LabelSelector)
func UpdateResourceTopologyExporterContainerConfig ¶ added in v0.2.0
func UpdateRoleBinding ¶
func UpdateRoleBinding(rb *rbacv1.RoleBinding, serviceAccount, namespace string)
func UpdateSchedulerPluginControllerDeployment ¶
func UpdateSchedulerPluginControllerDeployment(dp *appsv1.Deployment, pullIfNotPresent bool)
func UpdateSchedulerPluginSchedulerDeployment ¶
func UpdateSchedulerPluginSchedulerDeployment(dp *appsv1.Deployment, pullIfNotPresent bool)
func UpdateSecurityContextConstraint ¶ added in v0.0.12
func UpdateSecurityContextConstraint(scc *securityv1.SecurityContextConstraints, sa *corev1.ServiceAccount)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.