نقل كل const
في الملف cmd/kubeadm/app/cmd/options/constant.go
إلى واحد const (
بمعنى آخر:
- // APIServerAdvertiseAddress flag sets the IP address the API Server will advertise it's listening on. Specify '0.0.0.0' to use the address of the default network interface.
- const APIServerAdvertiseAddress = "apiserver-advertise-address"
- // APIServerBindPort flag sets the port for the API Server to bind to.
- const APIServerBindPort = "apiserver-bind-port"
+ const (
+ // APIServerAdvertiseAddress flag sets the IP address the API Server will advertise it's listening on. Specify '0.0.0.0' to use the address of the default network interface.
+ APIServerAdvertiseAddress = "apiserver-advertise-address"
+
+ // APIServerBindPort flag sets the port for the API Server to bind to.
+ const APIServerBindPort = "apiserver-bind-port"
+)
/ نوع التنظيف
/ الأولوية المتراكمة
/يساعد
/ جيد اولا
yagonobre :
تم وضع علامة على هذا الطلب على أنه مناسب للمساهمين الجدد.
يرجى التأكد من أن الطلب يلبي المتطلبات المذكورة هنا .
إذا لم يعد هذا الطلب يلبي هذه المتطلبات ، فيمكن إزالة التصنيف
بالتعليق باستخدام الأمر /remove-good-first-issue
.
ردًا على هذا :
نقل كل
const
في الملفcmd/kubeadm/app/cmd/options/constant.go
إلى واحدconst (
بمعنى آخر:
- // APIServerAdvertiseAddress flag sets the IP address the API Server will advertise it's listening on. Specify '0.0.0.0' to use the address of the default network interface. - const APIServerAdvertiseAddress = "apiserver-advertise-address" - // APIServerBindPort flag sets the port for the API Server to bind to. - const APIServerBindPort = "apiserver-bind-port" + const ( + // APIServerAdvertiseAddress flag sets the IP address the API Server will advertise it's listening on. Specify '0.0.0.0' to use the address of the default network interface. + APIServerAdvertiseAddress = "apiserver-advertise-address" + + // APIServerBindPort flag sets the port for the API Server to bind to. + const APIServerBindPort = "apiserver-bind-port" +)
/ نوع التنظيف
/ الأولوية المتراكمة
/يساعد
/ جيد اولا
تعليمات للتفاعل معي باستخدام تعليقات العلاقات العامة متوفرة هنا . إذا كانت لديك أسئلة أو اقتراحات تتعلق بسلوكي ، فيرجى تقديم مشكلة ضد
تخفيض السعر لا يعمل مع العنوان: ابتسامة:
مرحبًا yagonobre ، أود العمل على هذه المشكلة.
هل يمكن أن تخبرني كيف يمكنني اختبار ذلك بعد أن أنتهي من نقل جميع الثوابت إلى const
؟
شكرا لك.
شكرا rumshenoy ،
يمكنك إجراء الاختبارات ./build/run.sh make test WHAT=./cmd/kubeadm/app/cmd/
، ومحاولة إنشاء kubeadm ./build/run.sh make build kubeadm
/ دورة الحياة نشطة
التعليق الأكثر فائدة
مرحبًا yagonobre ، أود العمل على هذه المشكلة.
هل يمكن أن تخبرني كيف يمكنني اختبار ذلك بعد أن أنتهي من نقل جميع الثوابت إلى
const
؟شكرا لك.