mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
Replace deprecated pointer conversions in scheduler
This commit is contained in:
@@ -46,8 +46,8 @@ var pluginConfigs = []configv1.PluginConfig{
|
||||
Kind: "DefaultPreemptionArgs",
|
||||
APIVersion: "kubescheduler.config.k8s.io/v1",
|
||||
},
|
||||
MinCandidateNodesPercentage: pointer.Int32Ptr(10),
|
||||
MinCandidateNodesAbsolute: pointer.Int32Ptr(100),
|
||||
MinCandidateNodesPercentage: pointer.Int32(10),
|
||||
MinCandidateNodesAbsolute: pointer.Int32(100),
|
||||
}},
|
||||
},
|
||||
{
|
||||
@@ -58,7 +58,7 @@ var pluginConfigs = []configv1.PluginConfig{
|
||||
Kind: "InterPodAffinityArgs",
|
||||
APIVersion: "kubescheduler.config.k8s.io/v1",
|
||||
},
|
||||
HardPodAffinityWeight: pointer.Int32Ptr(1),
|
||||
HardPodAffinityWeight: pointer.Int32(1),
|
||||
}},
|
||||
},
|
||||
{
|
||||
@@ -110,7 +110,7 @@ var pluginConfigs = []configv1.PluginConfig{
|
||||
Kind: "VolumeBindingArgs",
|
||||
APIVersion: "kubescheduler.config.k8s.io/v1",
|
||||
},
|
||||
BindTimeoutSeconds: pointer.Int64Ptr(600),
|
||||
BindTimeoutSeconds: pointer.Int64(600),
|
||||
}},
|
||||
},
|
||||
}
|
||||
@@ -126,13 +126,13 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
name: "empty config",
|
||||
config: &configv1.KubeSchedulerConfiguration{},
|
||||
expected: &configv1.KubeSchedulerConfiguration{
|
||||
Parallelism: pointer.Int32Ptr(16),
|
||||
Parallelism: pointer.Int32(16),
|
||||
DebuggingConfiguration: componentbaseconfig.DebuggingConfiguration{
|
||||
EnableProfiling: &enable,
|
||||
EnableContentionProfiling: &enable,
|
||||
},
|
||||
LeaderElection: componentbaseconfig.LeaderElectionConfiguration{
|
||||
LeaderElect: pointer.BoolPtr(true),
|
||||
LeaderElect: pointer.Bool(true),
|
||||
LeaseDuration: metav1.Duration{Duration: 15 * time.Second},
|
||||
RenewDeadline: metav1.Duration{Duration: 10 * time.Second},
|
||||
RetryPeriod: metav1.Duration{Duration: 2 * time.Second},
|
||||
@@ -146,13 +146,13 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
ContentType: "application/vnd.kubernetes.protobuf",
|
||||
},
|
||||
PercentageOfNodesToScore: pointer.Int32(config.DefaultPercentageOfNodesToScore),
|
||||
PodInitialBackoffSeconds: pointer.Int64Ptr(1),
|
||||
PodMaxBackoffSeconds: pointer.Int64Ptr(10),
|
||||
PodInitialBackoffSeconds: pointer.Int64(1),
|
||||
PodMaxBackoffSeconds: pointer.Int64(10),
|
||||
Profiles: []configv1.KubeSchedulerProfile{
|
||||
{
|
||||
Plugins: getDefaultPlugins(),
|
||||
PluginConfig: pluginConfigs,
|
||||
SchedulerName: pointer.StringPtr("default-scheduler"),
|
||||
SchedulerName: pointer.String("default-scheduler"),
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -163,13 +163,13 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
Profiles: []configv1.KubeSchedulerProfile{{}},
|
||||
},
|
||||
expected: &configv1.KubeSchedulerConfiguration{
|
||||
Parallelism: pointer.Int32Ptr(16),
|
||||
Parallelism: pointer.Int32(16),
|
||||
DebuggingConfiguration: componentbaseconfig.DebuggingConfiguration{
|
||||
EnableProfiling: &enable,
|
||||
EnableContentionProfiling: &enable,
|
||||
},
|
||||
LeaderElection: componentbaseconfig.LeaderElectionConfiguration{
|
||||
LeaderElect: pointer.BoolPtr(true),
|
||||
LeaderElect: pointer.Bool(true),
|
||||
LeaseDuration: metav1.Duration{Duration: 15 * time.Second},
|
||||
RenewDeadline: metav1.Duration{Duration: 10 * time.Second},
|
||||
RetryPeriod: metav1.Duration{Duration: 2 * time.Second},
|
||||
@@ -183,11 +183,11 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
ContentType: "application/vnd.kubernetes.protobuf",
|
||||
},
|
||||
PercentageOfNodesToScore: pointer.Int32(config.DefaultPercentageOfNodesToScore),
|
||||
PodInitialBackoffSeconds: pointer.Int64Ptr(1),
|
||||
PodMaxBackoffSeconds: pointer.Int64Ptr(10),
|
||||
PodInitialBackoffSeconds: pointer.Int64(1),
|
||||
PodMaxBackoffSeconds: pointer.Int64(10),
|
||||
Profiles: []configv1.KubeSchedulerProfile{
|
||||
{
|
||||
SchedulerName: pointer.StringPtr("default-scheduler"),
|
||||
SchedulerName: pointer.String("default-scheduler"),
|
||||
Plugins: getDefaultPlugins(),
|
||||
PluginConfig: pluginConfigs},
|
||||
},
|
||||
@@ -196,7 +196,7 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
{
|
||||
name: "two profiles",
|
||||
config: &configv1.KubeSchedulerConfiguration{
|
||||
Parallelism: pointer.Int32Ptr(16),
|
||||
Parallelism: pointer.Int32(16),
|
||||
Profiles: []configv1.KubeSchedulerProfile{
|
||||
{
|
||||
PluginConfig: []configv1.PluginConfig{
|
||||
@@ -204,7 +204,7 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
SchedulerName: pointer.StringPtr("custom-scheduler"),
|
||||
SchedulerName: pointer.String("custom-scheduler"),
|
||||
Plugins: &configv1.Plugins{
|
||||
Bind: configv1.PluginSet{
|
||||
Enabled: []configv1.Plugin{
|
||||
@@ -219,13 +219,13 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
},
|
||||
},
|
||||
expected: &configv1.KubeSchedulerConfiguration{
|
||||
Parallelism: pointer.Int32Ptr(16),
|
||||
Parallelism: pointer.Int32(16),
|
||||
DebuggingConfiguration: componentbaseconfig.DebuggingConfiguration{
|
||||
EnableProfiling: &enable,
|
||||
EnableContentionProfiling: &enable,
|
||||
},
|
||||
LeaderElection: componentbaseconfig.LeaderElectionConfiguration{
|
||||
LeaderElect: pointer.BoolPtr(true),
|
||||
LeaderElect: pointer.Bool(true),
|
||||
LeaseDuration: metav1.Duration{Duration: 15 * time.Second},
|
||||
RenewDeadline: metav1.Duration{Duration: 10 * time.Second},
|
||||
RetryPeriod: metav1.Duration{Duration: 2 * time.Second},
|
||||
@@ -239,8 +239,8 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
ContentType: "application/vnd.kubernetes.protobuf",
|
||||
},
|
||||
PercentageOfNodesToScore: pointer.Int32(config.DefaultPercentageOfNodesToScore),
|
||||
PodInitialBackoffSeconds: pointer.Int64Ptr(1),
|
||||
PodMaxBackoffSeconds: pointer.Int64Ptr(10),
|
||||
PodInitialBackoffSeconds: pointer.Int64(1),
|
||||
PodMaxBackoffSeconds: pointer.Int64(10),
|
||||
Profiles: []configv1.KubeSchedulerProfile{
|
||||
{
|
||||
Plugins: getDefaultPlugins(),
|
||||
@@ -254,8 +254,8 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
Kind: "DefaultPreemptionArgs",
|
||||
APIVersion: "kubescheduler.config.k8s.io/v1",
|
||||
},
|
||||
MinCandidateNodesPercentage: pointer.Int32Ptr(10),
|
||||
MinCandidateNodesAbsolute: pointer.Int32Ptr(100),
|
||||
MinCandidateNodesPercentage: pointer.Int32(10),
|
||||
MinCandidateNodesAbsolute: pointer.Int32(100),
|
||||
}},
|
||||
},
|
||||
{
|
||||
@@ -266,7 +266,7 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
Kind: "InterPodAffinityArgs",
|
||||
APIVersion: "kubescheduler.config.k8s.io/v1",
|
||||
},
|
||||
HardPodAffinityWeight: pointer.Int32Ptr(1),
|
||||
HardPodAffinityWeight: pointer.Int32(1),
|
||||
}},
|
||||
},
|
||||
{
|
||||
@@ -318,13 +318,13 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
Kind: "VolumeBindingArgs",
|
||||
APIVersion: "kubescheduler.config.k8s.io/v1",
|
||||
},
|
||||
BindTimeoutSeconds: pointer.Int64Ptr(600),
|
||||
BindTimeoutSeconds: pointer.Int64(600),
|
||||
}},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
SchedulerName: pointer.StringPtr("custom-scheduler"),
|
||||
SchedulerName: pointer.String("custom-scheduler"),
|
||||
Plugins: &configv1.Plugins{
|
||||
MultiPoint: configv1.PluginSet{
|
||||
Enabled: []configv1.Plugin{
|
||||
@@ -367,16 +367,16 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
{
|
||||
name: "Prallelism with no port",
|
||||
config: &configv1.KubeSchedulerConfiguration{
|
||||
Parallelism: pointer.Int32Ptr(16),
|
||||
Parallelism: pointer.Int32(16),
|
||||
},
|
||||
expected: &configv1.KubeSchedulerConfiguration{
|
||||
Parallelism: pointer.Int32Ptr(16),
|
||||
Parallelism: pointer.Int32(16),
|
||||
DebuggingConfiguration: componentbaseconfig.DebuggingConfiguration{
|
||||
EnableProfiling: &enable,
|
||||
EnableContentionProfiling: &enable,
|
||||
},
|
||||
LeaderElection: componentbaseconfig.LeaderElectionConfiguration{
|
||||
LeaderElect: pointer.BoolPtr(true),
|
||||
LeaderElect: pointer.Bool(true),
|
||||
LeaseDuration: metav1.Duration{Duration: 15 * time.Second},
|
||||
RenewDeadline: metav1.Duration{Duration: 10 * time.Second},
|
||||
RetryPeriod: metav1.Duration{Duration: 2 * time.Second},
|
||||
@@ -390,13 +390,13 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
ContentType: "application/vnd.kubernetes.protobuf",
|
||||
},
|
||||
PercentageOfNodesToScore: pointer.Int32(config.DefaultPercentageOfNodesToScore),
|
||||
PodInitialBackoffSeconds: pointer.Int64Ptr(1),
|
||||
PodMaxBackoffSeconds: pointer.Int64Ptr(10),
|
||||
PodInitialBackoffSeconds: pointer.Int64(1),
|
||||
PodMaxBackoffSeconds: pointer.Int64(10),
|
||||
Profiles: []configv1.KubeSchedulerProfile{
|
||||
{
|
||||
Plugins: getDefaultPlugins(),
|
||||
PluginConfig: pluginConfigs,
|
||||
SchedulerName: pointer.StringPtr("default-scheduler"),
|
||||
SchedulerName: pointer.String("default-scheduler"),
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -404,16 +404,16 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
{
|
||||
name: "set non default parallelism",
|
||||
config: &configv1.KubeSchedulerConfiguration{
|
||||
Parallelism: pointer.Int32Ptr(8),
|
||||
Parallelism: pointer.Int32(8),
|
||||
},
|
||||
expected: &configv1.KubeSchedulerConfiguration{
|
||||
Parallelism: pointer.Int32Ptr(8),
|
||||
Parallelism: pointer.Int32(8),
|
||||
DebuggingConfiguration: componentbaseconfig.DebuggingConfiguration{
|
||||
EnableProfiling: &enable,
|
||||
EnableContentionProfiling: &enable,
|
||||
},
|
||||
LeaderElection: componentbaseconfig.LeaderElectionConfiguration{
|
||||
LeaderElect: pointer.BoolPtr(true),
|
||||
LeaderElect: pointer.Bool(true),
|
||||
LeaseDuration: metav1.Duration{Duration: 15 * time.Second},
|
||||
RenewDeadline: metav1.Duration{Duration: 10 * time.Second},
|
||||
RetryPeriod: metav1.Duration{Duration: 2 * time.Second},
|
||||
@@ -427,13 +427,13 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
ContentType: "application/vnd.kubernetes.protobuf",
|
||||
},
|
||||
PercentageOfNodesToScore: pointer.Int32(config.DefaultPercentageOfNodesToScore),
|
||||
PodInitialBackoffSeconds: pointer.Int64Ptr(1),
|
||||
PodMaxBackoffSeconds: pointer.Int64Ptr(10),
|
||||
PodInitialBackoffSeconds: pointer.Int64(1),
|
||||
PodMaxBackoffSeconds: pointer.Int64(10),
|
||||
Profiles: []configv1.KubeSchedulerProfile{
|
||||
{
|
||||
Plugins: getDefaultPlugins(),
|
||||
PluginConfig: pluginConfigs,
|
||||
SchedulerName: pointer.StringPtr("default-scheduler"),
|
||||
SchedulerName: pointer.String("default-scheduler"),
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -441,16 +441,16 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
{
|
||||
name: "set non default global percentageOfNodesToScore",
|
||||
config: &configv1.KubeSchedulerConfiguration{
|
||||
PercentageOfNodesToScore: pointer.Int32Ptr(50),
|
||||
PercentageOfNodesToScore: pointer.Int32(50),
|
||||
},
|
||||
expected: &configv1.KubeSchedulerConfiguration{
|
||||
Parallelism: pointer.Int32Ptr(16),
|
||||
Parallelism: pointer.Int32(16),
|
||||
DebuggingConfiguration: componentbaseconfig.DebuggingConfiguration{
|
||||
EnableProfiling: &enable,
|
||||
EnableContentionProfiling: &enable,
|
||||
},
|
||||
LeaderElection: componentbaseconfig.LeaderElectionConfiguration{
|
||||
LeaderElect: pointer.BoolPtr(true),
|
||||
LeaderElect: pointer.Bool(true),
|
||||
LeaseDuration: metav1.Duration{Duration: 15 * time.Second},
|
||||
RenewDeadline: metav1.Duration{Duration: 10 * time.Second},
|
||||
RetryPeriod: metav1.Duration{Duration: 2 * time.Second},
|
||||
@@ -463,14 +463,14 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
Burst: 100,
|
||||
ContentType: "application/vnd.kubernetes.protobuf",
|
||||
},
|
||||
PercentageOfNodesToScore: pointer.Int32Ptr(50),
|
||||
PodInitialBackoffSeconds: pointer.Int64Ptr(1),
|
||||
PodMaxBackoffSeconds: pointer.Int64Ptr(10),
|
||||
PercentageOfNodesToScore: pointer.Int32(50),
|
||||
PodInitialBackoffSeconds: pointer.Int64(1),
|
||||
PodMaxBackoffSeconds: pointer.Int64(10),
|
||||
Profiles: []configv1.KubeSchedulerProfile{
|
||||
{
|
||||
Plugins: getDefaultPlugins(),
|
||||
PluginConfig: pluginConfigs,
|
||||
SchedulerName: pointer.StringPtr("default-scheduler"),
|
||||
SchedulerName: pointer.String("default-scheduler"),
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -480,18 +480,18 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
config: &configv1.KubeSchedulerConfiguration{
|
||||
Profiles: []configv1.KubeSchedulerProfile{
|
||||
{
|
||||
PercentageOfNodesToScore: pointer.Int32Ptr(50),
|
||||
PercentageOfNodesToScore: pointer.Int32(50),
|
||||
},
|
||||
},
|
||||
},
|
||||
expected: &configv1.KubeSchedulerConfiguration{
|
||||
Parallelism: pointer.Int32Ptr(16),
|
||||
Parallelism: pointer.Int32(16),
|
||||
DebuggingConfiguration: componentbaseconfig.DebuggingConfiguration{
|
||||
EnableProfiling: &enable,
|
||||
EnableContentionProfiling: &enable,
|
||||
},
|
||||
LeaderElection: componentbaseconfig.LeaderElectionConfiguration{
|
||||
LeaderElect: pointer.BoolPtr(true),
|
||||
LeaderElect: pointer.Bool(true),
|
||||
LeaseDuration: metav1.Duration{Duration: 15 * time.Second},
|
||||
RenewDeadline: metav1.Duration{Duration: 10 * time.Second},
|
||||
RetryPeriod: metav1.Duration{Duration: 2 * time.Second},
|
||||
@@ -505,14 +505,14 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
ContentType: "application/vnd.kubernetes.protobuf",
|
||||
},
|
||||
PercentageOfNodesToScore: pointer.Int32(config.DefaultPercentageOfNodesToScore),
|
||||
PodInitialBackoffSeconds: pointer.Int64Ptr(1),
|
||||
PodMaxBackoffSeconds: pointer.Int64Ptr(10),
|
||||
PodInitialBackoffSeconds: pointer.Int64(1),
|
||||
PodMaxBackoffSeconds: pointer.Int64(10),
|
||||
Profiles: []configv1.KubeSchedulerProfile{
|
||||
{
|
||||
Plugins: getDefaultPlugins(),
|
||||
PluginConfig: pluginConfigs,
|
||||
SchedulerName: pointer.StringPtr("default-scheduler"),
|
||||
PercentageOfNodesToScore: pointer.Int32Ptr(50),
|
||||
SchedulerName: pointer.String("default-scheduler"),
|
||||
PercentageOfNodesToScore: pointer.Int32(50),
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -520,21 +520,21 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
{
|
||||
name: "set non default global and profile percentageOfNodesToScore",
|
||||
config: &configv1.KubeSchedulerConfiguration{
|
||||
PercentageOfNodesToScore: pointer.Int32Ptr(10),
|
||||
PercentageOfNodesToScore: pointer.Int32(10),
|
||||
Profiles: []configv1.KubeSchedulerProfile{
|
||||
{
|
||||
PercentageOfNodesToScore: pointer.Int32Ptr(50),
|
||||
PercentageOfNodesToScore: pointer.Int32(50),
|
||||
},
|
||||
},
|
||||
},
|
||||
expected: &configv1.KubeSchedulerConfiguration{
|
||||
Parallelism: pointer.Int32Ptr(16),
|
||||
Parallelism: pointer.Int32(16),
|
||||
DebuggingConfiguration: componentbaseconfig.DebuggingConfiguration{
|
||||
EnableProfiling: &enable,
|
||||
EnableContentionProfiling: &enable,
|
||||
},
|
||||
LeaderElection: componentbaseconfig.LeaderElectionConfiguration{
|
||||
LeaderElect: pointer.BoolPtr(true),
|
||||
LeaderElect: pointer.Bool(true),
|
||||
LeaseDuration: metav1.Duration{Duration: 15 * time.Second},
|
||||
RenewDeadline: metav1.Duration{Duration: 10 * time.Second},
|
||||
RetryPeriod: metav1.Duration{Duration: 2 * time.Second},
|
||||
@@ -547,15 +547,15 @@ func TestSchedulerDefaults(t *testing.T) {
|
||||
Burst: 100,
|
||||
ContentType: "application/vnd.kubernetes.protobuf",
|
||||
},
|
||||
PercentageOfNodesToScore: pointer.Int32Ptr(10),
|
||||
PodInitialBackoffSeconds: pointer.Int64Ptr(1),
|
||||
PodMaxBackoffSeconds: pointer.Int64Ptr(10),
|
||||
PercentageOfNodesToScore: pointer.Int32(10),
|
||||
PodInitialBackoffSeconds: pointer.Int64(1),
|
||||
PodMaxBackoffSeconds: pointer.Int64(10),
|
||||
Profiles: []configv1.KubeSchedulerProfile{
|
||||
{
|
||||
Plugins: getDefaultPlugins(),
|
||||
PluginConfig: pluginConfigs,
|
||||
SchedulerName: pointer.StringPtr("default-scheduler"),
|
||||
PercentageOfNodesToScore: pointer.Int32Ptr(50),
|
||||
SchedulerName: pointer.String("default-scheduler"),
|
||||
PercentageOfNodesToScore: pointer.Int32(50),
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -582,43 +582,43 @@ func TestPluginArgsDefaults(t *testing.T) {
|
||||
name: "DefaultPreemptionArgs empty",
|
||||
in: &configv1.DefaultPreemptionArgs{},
|
||||
want: &configv1.DefaultPreemptionArgs{
|
||||
MinCandidateNodesPercentage: pointer.Int32Ptr(10),
|
||||
MinCandidateNodesAbsolute: pointer.Int32Ptr(100),
|
||||
MinCandidateNodesPercentage: pointer.Int32(10),
|
||||
MinCandidateNodesAbsolute: pointer.Int32(100),
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "DefaultPreemptionArgs with value",
|
||||
in: &configv1.DefaultPreemptionArgs{
|
||||
MinCandidateNodesPercentage: pointer.Int32Ptr(50),
|
||||
MinCandidateNodesPercentage: pointer.Int32(50),
|
||||
},
|
||||
want: &configv1.DefaultPreemptionArgs{
|
||||
MinCandidateNodesPercentage: pointer.Int32Ptr(50),
|
||||
MinCandidateNodesAbsolute: pointer.Int32Ptr(100),
|
||||
MinCandidateNodesPercentage: pointer.Int32(50),
|
||||
MinCandidateNodesAbsolute: pointer.Int32(100),
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "InterPodAffinityArgs empty",
|
||||
in: &configv1.InterPodAffinityArgs{},
|
||||
want: &configv1.InterPodAffinityArgs{
|
||||
HardPodAffinityWeight: pointer.Int32Ptr(1),
|
||||
HardPodAffinityWeight: pointer.Int32(1),
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "InterPodAffinityArgs explicit 0",
|
||||
in: &configv1.InterPodAffinityArgs{
|
||||
HardPodAffinityWeight: pointer.Int32Ptr(0),
|
||||
HardPodAffinityWeight: pointer.Int32(0),
|
||||
},
|
||||
want: &configv1.InterPodAffinityArgs{
|
||||
HardPodAffinityWeight: pointer.Int32Ptr(0),
|
||||
HardPodAffinityWeight: pointer.Int32(0),
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "InterPodAffinityArgs with value",
|
||||
in: &configv1.InterPodAffinityArgs{
|
||||
HardPodAffinityWeight: pointer.Int32Ptr(5),
|
||||
HardPodAffinityWeight: pointer.Int32(5),
|
||||
},
|
||||
want: &configv1.InterPodAffinityArgs{
|
||||
HardPodAffinityWeight: pointer.Int32Ptr(5),
|
||||
HardPodAffinityWeight: pointer.Int32(5),
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -735,7 +735,7 @@ func TestPluginArgsDefaults(t *testing.T) {
|
||||
},
|
||||
in: &configv1.VolumeBindingArgs{},
|
||||
want: &configv1.VolumeBindingArgs{
|
||||
BindTimeoutSeconds: pointer.Int64Ptr(600),
|
||||
BindTimeoutSeconds: pointer.Int64(600),
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -745,7 +745,7 @@ func TestPluginArgsDefaults(t *testing.T) {
|
||||
},
|
||||
in: &configv1.VolumeBindingArgs{},
|
||||
want: &configv1.VolumeBindingArgs{
|
||||
BindTimeoutSeconds: pointer.Int64Ptr(600),
|
||||
BindTimeoutSeconds: pointer.Int64(600),
|
||||
Shape: []configv1.UtilizationShapePoint{
|
||||
{Utilization: 0, Score: 0},
|
||||
{Utilization: 100, Score: 10},
|
||||
|
||||
Reference in New Issue
Block a user