vadafoss / daily-updates

Check what @vadasambar is working on
1 stars 0 forks source link

Apr 2023 #8

Closed vadasambar closed 1 year ago

vadasambar commented 1 year ago

Last month's thread: Mar 2023: https://github.com/vadafoss/daily-updates/issues/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

## <3-letter-month> <2-letter-day> <4-letter-year>
### やったこと
### Problem
### Try
### TODO
### WIP

やったこと: 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

vadasambar commented 1 year ago

Apr 3 2023

やったこと

TODO

Problem

vadasambar commented 1 year ago

Apr 4 2023

やったこと

Problem

vadasambar commented 1 year ago

Apr 5 2023

やったこと

WIP

Problem

vadasambar commented 1 year ago

Apr 6 2023

やったこと

Problem

vadasambar commented 1 year ago

Apr 7 2023

やったこと

Problem

vadasambar commented 1 year ago

Apr 10 2023

やったこと

Problem

vadasambar commented 1 year ago

Apr 11 2023

やったこと

TODO

Problem

vadasambar commented 1 year ago

Apr 12 2023

やったこと

Problem

vadasambar commented 1 year ago

Apr 13 2023

やったこと

Problem

vadasambar commented 1 year ago

Apr 14 2023

やったこと

TODO

Problem

vadasambar commented 1 year ago

Apr 17 2023

やったこと

TODO

Problem

vadasambar commented 1 year ago

Apr 18 2023

やったこと

TODO

Problem

vadasambar commented 1 year ago

Apr 19 2023

やったこと

TODO

Problem

vadasambar commented 1 year ago

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:     }

https://github.com/kubernetes/kubernetes/blob/8d18ae6fc245deb68534cab608056c5aae9160bd/pkg/scheduler/apis/config/v1beta3/default_plugins.go#L29-L56

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.

https://github.com/kubernetes/kubernetes/blob/8d18ae6fc245deb68534cab608056c5aae9160bd/pkg/scheduler/apis/config/v1/defaults.go#L71

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:    }

https://github.com/kubernetes/kubernetes/blob/8d18ae6fc245deb68534cab608056c5aae9160bd/pkg/scheduler/apis/config/v1/defaults.go#L104-L124

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: }

https://github.com/kubernetes/kubernetes/blob/02f77a1b84c232c6304ea89bb7f518d3984e202e/pkg/scheduler/apis/config/v1/zz_generated.defaults.go#L29-L57

File: pkg/scheduler/apis/config/v1/defaults.go
37: func addDefaultingFuncs(scheme *runtime.Scheme) error {
38:     return RegisterDefaults(scheme)
39: }

https://github.com/kubernetes/kubernetes/blob/8d18ae6fc245deb68534cab608056c5aae9160bd/pkg/scheduler/apis/config/v1/defaults.go#L37-L39

File: pkg/scheduler/apis/config/v1/register.go
41:     localSchemeBuilder.Register(addDefaultingFuncs)

https://github.com/kubernetes/kubernetes/blob/02f77a1b84c232c6304ea89bb7f518d3984e202e/pkg/scheduler/apis/config/v1/register.go#L41

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: }

https://github.com/kubernetes/kubernetes/blob/02f77a1b84c232c6304ea89bb7f518d3984e202e/pkg/scheduler/apis/config/scheme/scheme.go#L29-L52

vadasambar commented 1 year ago

Apr 20 2023

やったこと

TODO

Problem

vadasambar commented 1 year ago

Apr 21 2023

やったこと

TODO

Problem

vadasambar commented 1 year ago

Apr 24 2023

やったこと

TODO

Problem

vadasambar commented 1 year ago

Apr 25 2023

やったこと

TODO

Problem

vadasambar commented 1 year ago

Apr 26 2023

やったこと

Problem

vadasambar commented 1 year ago

Apr 27 2023

やったこと

WIP

Problem

vadasambar commented 1 year ago

Apr 28 2023

やったこと

Problem