-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apr 2023 #8
Comments
Apr 3 2023やったこと
WIPTODO
Problem |
Apr 4 2023やったこと
WIP
TODO
Problem
|
Apr 7 2023やったこと
WIP
TODO
Problem
|
Apr 14 2023やったこと
WIP
TODO
Problem
|
Apr 19 2023やったこと
WIPTODO
Problem
|
Found the culprit. It's happening in the scheme's library. File: ../../../go/pkg/mod/k8s.io/kubernetes@v1.27.0-alpha.1/pkg/scheduler/apis/config/v1/default_plugins.go
29: // getDefaultPlugins returns the default set of plugins.
30: func getDefaultPlugins() *v1.Plugins {
31: plugins := &v1.Plugins{
32: MultiPoint: v1.PluginSet{
33: Enabled: []v1.Plugin{
34: {Name: names.PrioritySort},
35: {Name: names.NodeUnschedulable},
36: {Name: names.NodeName},
37: {Name: names.TaintToleration, Weight: pointer.Int32(3)},
38: {Name: names.NodeAffinity, Weight: pointer.Int32(2)},
39: {Name: names.NodePorts},
40: {Name: names.NodeResourcesFit, Weight: pointer.Int32(1)},
41: {Name: names.VolumeRestrictions},
42: {Name: names.EBSLimits},
43: {Name: names.GCEPDLimits},
44: {Name: names.NodeVolumeLimits},
45: {Name: names.AzureDiskLimits},
46: {Name: names.VolumeBinding},
47: {Name: names.VolumeZone},
48: {Name: names.PodTopologySpread, Weight: pointer.Int32(2)},
49: {Name: names.InterPodAffinity, Weight: pointer.Int32(2)},
50: {Name: names.DefaultPreemption},
51: {Name: names.NodeResourcesBalancedAllocation, Weight: pointer.Int32(1)},
52: {Name: names.ImageLocality, Weight: pointer.Int32(1)},
53: {Name: names.DefaultBinder},
54: },
55: },
56: } File: pkg/scheduler/apis/config/v1/defaults.go
69: func setDefaults_KubeSchedulerProfile(logger klog.Logger, prof *configv1.KubeSchedulerProfile) {
70: // Set default plugins.
71: prof.Plugins = mergePlugins(logger, getDefaultPlugins(), prof.Plugins)
72: // Set default plugin configs. File: pkg/scheduler/apis/config/v1/defaults.go
104: // SetDefaults_KubeSchedulerConfiguration sets additional defaults
105: func SetDefaults_KubeSchedulerConfiguration(obj *configv1.KubeSchedulerConfiguration) {
...
119:
120: // Add the default set of plugins and apply the configuration.
121: for i := range obj.Profiles {
122: prof := &obj.Profiles[i]
123: setDefaults_KubeSchedulerProfile(logger, prof)
124: } File: pkg/scheduler/apis/config/v1/zz_generated.defaults.go
29: // RegisterDefaults adds defaulters functions to the given scheme.
30: // Public to allow building arbitrary schemes.
31: // All generated defaulters are covering - they call all nested defaulters.
32: func RegisterDefaults(scheme *runtime.Scheme) error {
...
35: scheme.AddTypeDefaultingFunc(&v1.KubeSchedulerConfiguration{}, func(obj interface{}) {
36: SetObjectDefaults_KubeSchedulerConfiguration(obj.(*v1.KubeSchedulerConfiguration))
37: })
...
45: }
...
55: func SetObjectDefaults_KubeSchedulerConfiguration(in *v1.KubeSchedulerConfiguration) {
56: SetDefaults_KubeSchedulerConfiguration(in)
57: } File: pkg/scheduler/apis/config/v1/defaults.go
37: func addDefaultingFuncs(scheme *runtime.Scheme) error {
38: return RegisterDefaults(scheme)
39: }
File: pkg/scheduler/apis/config/scheme/scheme.go
File: ../../../go/pkg/mod/k8s.io/kubernetes@v1.27.0-alpha.1/pkg/scheduler/apis/config/scheme/scheme.go
29: var (
30: // Scheme is the runtime.Scheme to which all kubescheduler api types are registered.
31: Scheme = runtime.NewScheme()
32:
33: // Codecs provides access to encoding and decoding for the scheme.
34: Codecs = serializer.NewCodecFactory(Scheme, serializer.EnableStrict)
35: )
36:
37: func init() {
38: AddToScheme(Scheme)
39: }
40:
41: // AddToScheme builds the kubescheduler scheme using all known versions of the kubescheduler api.
42: func AddToScheme(scheme *runtime.Scheme) {
43: utilruntime.Must(config.AddToScheme(scheme))
44: utilruntime.Must(configv1beta2.AddToScheme(scheme))
45: utilruntime.Must(configv1beta3.AddToScheme(scheme))
46: utilruntime.Must(configv1.AddToScheme(scheme))
47: utilruntime.Must(scheme.SetVersionPriority(
48: configv1.SchemeGroupVersion,
49: configv1beta3.SchemeGroupVersion,
50: configv1beta2.SchemeGroupVersion,
51: ))
52: }
|
Apr 25 2023やったこと
WIPTODO
Problem
|
Last month's thread:
Mar 2023: #7
What
This is an issue to update daily status on what I am doing as a member of vadafoss community.
How
Follow this format
やったこと: yatta-koto lit. 'things I did' in Japanese (I just find it sounds closer to what I want to say)
Problem (optional): problems I faced
Try (optional): what I am trying
TODO (optional): things to do
WIP (optional): work in progress
The text was updated successfully, but these errors were encountered: