From f0db1ac05b9ee36c183cdf85c769b8ac8dbaa7bc Mon Sep 17 00:00:00 2001 From: Francesco Romani Date: Wed, 17 Jan 2024 16:20:23 +0100 Subject: [PATCH] tree: remove useless API fields those are relics of past times, never really used. Time to get rid and simplify. Signed-off-by: Francesco Romani --- pkg/commands/deploy.go | 1 - pkg/commands/remove.go | 2 -- pkg/deploy/cluster.go | 1 - pkg/deployer/sched/sched.go | 1 - pkg/manifests/nfd/nfd.go | 4 ---- 5 files changed, 9 deletions(-) diff --git a/pkg/commands/deploy.go b/pkg/commands/deploy.go index 095cddb1..db7eee3d 100644 --- a/pkg/commands/deploy.go +++ b/pkg/commands/deploy.go @@ -104,7 +104,6 @@ func NewDeploySchedulerPluginCommand(env *deployer.Environment, commonOpts *depl Platform: commonOpts.ClusterPlatform, WaitCompletion: commonOpts.WaitCompletion, Replicas: int32(commonOpts.Replicas), - RTEConfigData: commonOpts.RTEConfigData, PullIfNotPresent: commonOpts.PullIfNotPresent, ProfileName: commonOpts.SchedProfileName, CacheResyncPeriod: commonOpts.SchedResyncPeriod, diff --git a/pkg/commands/remove.go b/pkg/commands/remove.go index d7e346e0..b5c4eeab 100644 --- a/pkg/commands/remove.go +++ b/pkg/commands/remove.go @@ -57,7 +57,6 @@ func NewRemoveCommand(env *deployer.Environment, commonOpts *deploy.Options) *co Platform: commonOpts.ClusterPlatform, WaitCompletion: commonOpts.WaitCompletion, Replicas: int32(commonOpts.Replicas), - RTEConfigData: commonOpts.RTEConfigData, PullIfNotPresent: commonOpts.PullIfNotPresent, ProfileName: commonOpts.SchedProfileName, CacheResyncPeriod: commonOpts.SchedResyncPeriod, @@ -157,7 +156,6 @@ func NewRemoveSchedulerPluginCommand(env *deployer.Environment, commonOpts *depl Platform: commonOpts.ClusterPlatform, WaitCompletion: commonOpts.WaitCompletion, Replicas: int32(commonOpts.Replicas), - RTEConfigData: commonOpts.RTEConfigData, PullIfNotPresent: commonOpts.PullIfNotPresent, ProfileName: commonOpts.SchedProfileName, CacheResyncPeriod: commonOpts.SchedResyncPeriod, diff --git a/pkg/deploy/cluster.go b/pkg/deploy/cluster.go index 775c7068..4d636b2a 100644 --- a/pkg/deploy/cluster.go +++ b/pkg/deploy/cluster.go @@ -64,7 +64,6 @@ func OnCluster(env *deployer.Environment, commonOpts *Options) error { Platform: commonOpts.ClusterPlatform, WaitCompletion: commonOpts.WaitCompletion, Replicas: int32(commonOpts.Replicas), - RTEConfigData: commonOpts.RTEConfigData, PullIfNotPresent: commonOpts.PullIfNotPresent, ProfileName: commonOpts.SchedProfileName, CacheResyncPeriod: commonOpts.SchedResyncPeriod, diff --git a/pkg/deployer/sched/sched.go b/pkg/deployer/sched/sched.go index d2bcc3ec..fbb1a244 100644 --- a/pkg/deployer/sched/sched.go +++ b/pkg/deployer/sched/sched.go @@ -33,7 +33,6 @@ type Options struct { WaitCompletion bool Replicas int32 ProfileName string - RTEConfigData string PullIfNotPresent bool CacheResyncPeriod time.Duration CtrlPlaneAffinity bool diff --git a/pkg/manifests/nfd/nfd.go b/pkg/manifests/nfd/nfd.go index f52d130c..8bceaef6 100644 --- a/pkg/manifests/nfd/nfd.go +++ b/pkg/manifests/nfd/nfd.go @@ -54,10 +54,6 @@ func (mf Manifests) Clone() Manifests { type RenderOptions struct { DaemonSet objectupdate.DaemonSetOptions - - // Deployment option - Replicas int32 - // General options Namespace string }