You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This policy describes how kube-state-metrics maintainers consume third-party packages.
6
+
7
+
## Scope
8
+
9
+
This policy applies to all kube-state-metrics maintainers and all third-party packages used in the kube-state-metrics project.
10
+
11
+
## Policy
12
+
13
+
kube-state-metrics maintainers must follow these guidelines when consuming third-party packages:
14
+
15
+
* Only use third-party packages that are necessary for the functionality of kube-state-metrics.
16
+
* Use the latest version of all third-party packages whenever possible.
17
+
* Avoid using third-party packages that are known to have security vulnerabilities.
18
+
* Pin all third-party packages to specific versions in the kube-state-metrics codebase.
19
+
* Use a dependency management tool, such as Go modules, to manage third-party dependencies.
20
+
21
+
## Procedure
22
+
23
+
When adding a new third-party package to kube-state-metrics, maintainers must follow these steps:
24
+
25
+
1. Evaluate the need for the package. Is it necessary for the functionality of kube-state-metrics?
26
+
2. Research the package. Is it actively maintained? Does it have a good reputation?
27
+
3. Choose a version of the package. Use the latest version whenever possible.
28
+
4. Pin the package to the specific version in the kube-state-metrics codebase.
29
+
5. Update the kube-state-metrics documentation to reflect the new dependency.
30
+
31
+
## Enforcement
32
+
33
+
This policy is enforced by the kube-state-metrics maintainers.
34
+
35
+
Maintainers are expected to review each other's code changes to ensure that they comply with this policy.
36
+
37
+
## Exceptions
38
+
39
+
Exceptions to this policy may be granted by the kube-state-metrics project owners on a case-by-case basis.
40
+
41
+
## Credits
42
+
43
+
This policy was adapted from Kubescape's [Environment Dependencies Policy](https://github.com/kubescape/kubescape/blob/master/docs/environment-dependencies-policy.md).
0 commit comments