Skip to content

Commit

Permalink
WIP 2
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Romani <[email protected]>
  • Loading branch information
ffromani committed Oct 23, 2023
1 parent a412776 commit 7d47b1d
Show file tree
Hide file tree
Showing 21 changed files with 0 additions and 2,198 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ require (
k8s.io/apimachinery v0.27.3
k8s.io/client-go v0.27.3
k8s.io/klog/v2 v2.100.1
k8s.io/kube-scheduler v0.26.4
k8s.io/kubelet v0.27.3
k8s.io/utils v0.0.0-20230505201702-9f6742963106
sigs.k8s.io/controller-runtime v0.13.1
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,6 @@ k8s.io/klog/v2 v2.100.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0=
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280/go.mod h1:+Axhij7bCpeqhklhUTe3xmOn6bWxolyZEeyaFpjGtl4=
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f h1:2kWPakN3i/k81b0gvD5C5FJ2kxm1WrQFanWchyKuqGg=
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f/go.mod h1:byini6yhqGC14c3ebc/QwanvYwhuMWF6yz2F8uwW8eg=
k8s.io/kube-scheduler v0.26.4 h1:J+ZCWQV64atAfHEomA5XrmNlbYI5XtN950zIQZioTnI=
k8s.io/kube-scheduler v0.26.4/go.mod h1:Mzh7sJavoa6+74a0vwv4+OpQXZYAwJA1jEWUkCfuixo=
k8s.io/kubelet v0.26.4 h1:SEQPfjN4lu4uL9O8NdeN7Aum3liQ4kOnp/yC3jMRMUo=
k8s.io/kubelet v0.26.4/go.mod h1:ZMPGTCnrQ5UOlC7igXhbW9cgna1LtTRWLaHub4dA2FU=
k8s.io/utils v0.0.0-20210802155522-efc7438f0176/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
Expand Down
19 changes: 0 additions & 19 deletions pkg/manifests/manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import (
apiextensionv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/kubernetes/scheme"
kubeschedulerconfigv1beta2 "k8s.io/kube-scheduler/config/v1beta2"
"k8s.io/utils/pointer"

rteassets "github.com/k8stopologyawareschedwg/deployer/pkg/assets/rte"
Expand Down Expand Up @@ -75,7 +74,6 @@ var src embed.FS

func init() {
apiextensionv1.AddToScheme(scheme.Scheme)
kubeschedulerconfigv1beta2.AddToScheme(scheme.Scheme)
machineconfigv1.Install(scheme.Scheme)
securityv1.Install(scheme.Scheme)
}
Expand Down Expand Up @@ -446,23 +444,6 @@ func SecurityContextConstraint(component string) (*securityv1.SecurityContextCon
return scc, nil
}

func KubeSchedulerConfigurationFromData(data []byte) (*kubeschedulerconfigv1beta2.KubeSchedulerConfiguration, error) {
obj, err := DeserializeObjectFromData(data)
if err != nil {
return nil, err
}

sc, ok := obj.(*kubeschedulerconfigv1beta2.KubeSchedulerConfiguration)
if !ok {
return nil, fmt.Errorf("unexpected type, got %T %v", obj, obj.GetObjectKind())
}
return sc, nil
}

func KubeSchedulerConfigurationToData(sc *kubeschedulerconfigv1beta2.KubeSchedulerConfiguration) ([]byte, error) {
return SerializeObjectToData(sc)
}

func validateComponent(component string) error {
if component == ComponentAPI || component == ComponentResourceTopologyExporter || component == ComponentNodeFeatureDiscovery || component == ComponentSchedulerPlugin {
return nil
Expand Down
13 changes: 0 additions & 13 deletions vendor/k8s.io/component-base/config/OWNERS

This file was deleted.

19 changes: 0 additions & 19 deletions vendor/k8s.io/component-base/config/doc.go

This file was deleted.

80 changes: 0 additions & 80 deletions vendor/k8s.io/component-base/config/types.go

This file was deleted.

53 changes: 0 additions & 53 deletions vendor/k8s.io/component-base/config/v1alpha1/conversion.go

This file was deleted.

98 changes: 0 additions & 98 deletions vendor/k8s.io/component-base/config/v1alpha1/defaults.go

This file was deleted.

20 changes: 0 additions & 20 deletions vendor/k8s.io/component-base/config/v1alpha1/doc.go

This file was deleted.

31 changes: 0 additions & 31 deletions vendor/k8s.io/component-base/config/v1alpha1/register.go

This file was deleted.

Loading

0 comments on commit 7d47b1d

Please sign in to comment.