Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to view the importance of Mailing List in open source projects

2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

How to treat the importance of Mailing List in open source projects, in view of this problem, this article introduces the corresponding analysis and solutions in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

On the importance of Mailing List in Open Source projects from an email

As long as you look carefully, you will always have the wheel you want. -some unknown DevOps engineer

Thanks to kubernetes-dev 's Mailing List! While browsing the email this morning, I found the following interesting email:

I've been in touch with Kubernetes for a long time, and I've seen Kubernetes kill Swarm and Mesos to become the de facto standard in the container orchestration field. While enjoying the convenience brought by Kubernetes and its biosphere, it is also contributing to Kubernetes and CNCF projects. CLI and UI tools such as kubectl, rancher and even kui are used to manipulate and observe the Kubernetes cluster.

Although the above tools have brought great convenience for operating Kubernetes clusters, in the final analysis, they are some open source projects that do not meet all of our needs. So we can only customize according to our own needs and Kubernetes's api-server, but because Kubernetes's api-server is more complex, it is not so easy to sort out in a short time.

Kubernetes-client/python

Because our self-developed DevOps platform is developed using python, so I also developed a set of Kubernetes Client based on python language, but generally speaking, because there are too many functions of Kubernetes, and my development practice is not much, the functions developed are just not satisfactory.

And kubernetes-client/python, the official wheel, is really fragrant!

Easy to install

This installation method is excruciatingly simple. The supported python version is 2.73.43.5 | 3.63.7and, like all python dependent packages, you only need to install it using pip:

Simple example of pip install kubernetes

View all pod:

#! / usr/bin/env python#encoding: utf-8#Author: guoxudongfrom kubernetes import client, config# Configs can be set in Configuration class directly or using helper utilityconfig.load_kube_config () v1 = client.CoreV1Api () print ("Listing pods with their IPs:") ret = v1.list_pod_for_all_namespaces (watch=False) for i in ret.items: print ("% s\ t% s\ t% s"% (i.status.pod_ip, i.metadata.namespace, i.metadata.name))

Run to view the results:

Listing pods with their IPs:172.22.1.126 kube-system coredns-5975fdf55b-bqgkx172.22.0.2 kube-system coredns-5975fdf55b-vxbb410.16.16.13 kube-system flexvolume-9ccf710.16.16.15 kube-system flexvolume-h6xn210.16.16.14 kube-system flexvolume-kvn5x10.16.16.17 kube-system flexvolume-mf4zv10.16.16.14 kube-system kube -proxy-worker-7lpfz10.16.16.15 kube-system kube-proxy-worker-9wd9s10.16.16.17 kube-system kube-proxy-worker-phbbj10.16.16.13 kube-system kube-proxy-worker-pst5d172.22.1.9 kube-system metrics-server-78b597d5bf-wdvqh172.22.1.12 kube-system nginx-ingress-controller-796ccc5d76-9jh6s172.22.1.125 kube-system Nginx-ingress-controller-796ccc5d76-jwwwz10.16.16.17 kube-system terway-6mfs810.16.16.14 kube-system terway-fz9ck10.16.16.13 kube-system terway-t977710.16.16.15 kube-system terway-xbxlp172.22.1.8 kube-system tiller-deploy-5b5d8dd754-wpcrc...

Sure enough, it is a good wheel, and the way to introduce kubeconfig and the way to show all namespace's pod is also very simple, which is a very beautiful example. It is suggested that you can take a look at the source code, there will be a harvest!

Supported version

Client-python follows the semver specification, so the code will continue to use the explicitly supported Kubernetes cluster version until the major version of client-python is added.

Kubernetes 1.5Kubernetes 1.6Kubernetes 1.7Kubernetes 1.8Kubernetes 1.9Kubernetes 1.10Kubernetes 1.11Kubernetes 1.12Kubernetes 1.13Kubernetes 1.14client-python 1.0 ✓-client-python 2.0 + ✓-client-python 3.0 + ✓-client-python 4.0 + ✓-client-python 5.0 + ✓-client-python 6.0 + ✓-client-python 7.0 + ✓-- -client-python 8.0 + ✓-- client-python 9.0 + ✓-client-python 10.0 + ✓ client-python HEAD+ ✓ Mailing List importance

This gain is largely due to kubernetes-dev 's Mailing List, which is the mailing list. This kind of communication is not very popular in China, and people prefer to use instant messaging software such as QQ and Wechat for communication, but most famous open source projects mainly use Mailing List for communication, and the amount of communication is even more than in GitHub issue. In communicating with open source contributors and maintainers of Apache and CNCF projects, I learned that the main considerations for using Mailing List are as follows:

This asynchronous communication allows more developers who care about the topic to participate in the discussion.

Mailing list is permanent, and if you are interested in a topic, you can reply to an email at any time, and developers who follow this topic will receive an email, whether the topic was raised yesterday or last year, to help solve some of the old BUG (commonly known as technology debt).

Instant messaging software is convenient, but the problem is quickly overturned by comments, and although tools such as slack solve some of these problems, they are still not as useful as mailing list.

Not developers in all regions have high-speed broadband, high-performance PC, in many parts of the world can only use dial-up Internet access, the Internet speed is only a few kb/s, they can not even use GitHub issue. But you can't deprive them of their right to participate in open source projects, and mailing list is a good way to communicate.

Through mailing list, you can keep abreast of community dynamics, and the effect is obviously better than GitHub watch, because not all the commit of the project is your concern.

If you are interested in participating in the open source movement, colleagues who enjoy the convenience of open source software, and want to make your own contribution to open source software, then mailing list is the best choice for you to enter the community. Improve your ability and create more value in mailing list and like-minded developers from all over the world, and take the first step of participating in the open source movement.

This is the answer to the question on how to view the importance of Mailing List in open source projects. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report