k8s-helper-cli 0.4.1__tar.gz → 0.4.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {k8s_helper_cli-0.4.1/src/k8s_helper_cli.egg-info → k8s_helper_cli-0.4.2}/PKG-INFO +1 -1
- {k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2}/pyproject.toml +1 -1
- {k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2}/src/k8s_helper/__init__.py +1 -1
- {k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2}/src/k8s_helper/core.py +23 -5
- {k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2/src/k8s_helper_cli.egg-info}/PKG-INFO +1 -1
- {k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2}/LICENSE +0 -0
- {k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2}/README.md +0 -0
- {k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2}/setup.cfg +0 -0
- {k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2}/src/k8s_helper/cli.py +0 -0
- {k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2}/src/k8s_helper/config.py +0 -0
- {k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2}/src/k8s_helper/utils.py +0 -0
- {k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2}/src/k8s_helper_cli.egg-info/SOURCES.txt +0 -0
- {k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2}/src/k8s_helper_cli.egg-info/dependency_links.txt +0 -0
- {k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2}/src/k8s_helper_cli.egg-info/entry_points.txt +0 -0
- {k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2}/src/k8s_helper_cli.egg-info/requires.txt +0 -0
- {k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2}/src/k8s_helper_cli.egg-info/top_level.txt +0 -0
- {k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2}/tests/test_core.py +0 -0
- {k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2}/tests/test_integration.py +0 -0
@@ -1964,15 +1964,33 @@ scrape_configs:
|
|
1964
1964
|
raise e
|
1965
1965
|
|
1966
1966
|
# ClusterRoleBinding
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1967
|
+
# Create subject with version compatibility
|
1968
|
+
try:
|
1969
|
+
# Try V1Subject first (older versions)
|
1970
|
+
subject = client.V1Subject(
|
1971
|
+
kind="ServiceAccount",
|
1972
|
+
name="prometheus",
|
1973
|
+
namespace=namespace
|
1974
|
+
)
|
1975
|
+
except AttributeError:
|
1976
|
+
# Try RbacV1Subject (newer versions)
|
1977
|
+
try:
|
1978
|
+
subject = client.RbacV1Subject(
|
1971
1979
|
kind="ServiceAccount",
|
1972
1980
|
name="prometheus",
|
1973
1981
|
namespace=namespace
|
1974
1982
|
)
|
1975
|
-
|
1983
|
+
except AttributeError:
|
1984
|
+
# Manual construction as fallback
|
1985
|
+
subject = {
|
1986
|
+
'kind': 'ServiceAccount',
|
1987
|
+
'name': 'prometheus',
|
1988
|
+
'namespace': namespace
|
1989
|
+
}
|
1990
|
+
|
1991
|
+
cluster_role_binding = client.V1ClusterRoleBinding(
|
1992
|
+
metadata=client.V1ObjectMeta(name="prometheus"),
|
1993
|
+
subjects=[subject],
|
1976
1994
|
role_ref=client.V1RoleRef(
|
1977
1995
|
kind="ClusterRole",
|
1978
1996
|
name="prometheus",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{k8s_helper_cli-0.4.1 → k8s_helper_cli-0.4.2}/src/k8s_helper_cli.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|