k8s-helper-cli 0.4.0__py3-none-any.whl → 0.4.1__py3-none-any.whl
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/core.py +16 -4
- {k8s_helper_cli-0.4.0.dist-info → k8s_helper_cli-0.4.1.dist-info}/METADATA +1 -1
- k8s_helper_cli-0.4.1.dist-info/RECORD +11 -0
- k8s_helper_cli-0.4.0.dist-info/RECORD +0 -11
- {k8s_helper_cli-0.4.0.dist-info → k8s_helper_cli-0.4.1.dist-info}/WHEEL +0 -0
- {k8s_helper_cli-0.4.0.dist-info → k8s_helper_cli-0.4.1.dist-info}/entry_points.txt +0 -0
- {k8s_helper_cli-0.4.0.dist-info → k8s_helper_cli-0.4.1.dist-info}/licenses/LICENSE +0 -0
- {k8s_helper_cli-0.4.0.dist-info → k8s_helper_cli-0.4.1.dist-info}/top_level.txt +0 -0
k8s_helper/core.py
CHANGED
@@ -1937,14 +1937,26 @@ scrape_configs:
|
|
1937
1937
|
api_groups=["extensions"],
|
1938
1938
|
resources=["ingresses"],
|
1939
1939
|
verbs=["get", "list", "watch"]
|
1940
|
-
),
|
1941
|
-
client.V1PolicyRule(
|
1942
|
-
non_resource_urls=["/metrics"],
|
1943
|
-
verbs=["get"]
|
1944
1940
|
)
|
1945
1941
|
]
|
1946
1942
|
)
|
1947
1943
|
|
1944
|
+
# Add non-resource URL rule with version compatibility
|
1945
|
+
try:
|
1946
|
+
# Try the newer parameter name first
|
1947
|
+
non_resource_rule = client.V1PolicyRule(
|
1948
|
+
non_resource_ur_ls=["/metrics"],
|
1949
|
+
verbs=["get"]
|
1950
|
+
)
|
1951
|
+
except TypeError:
|
1952
|
+
# Fall back to older parameter name
|
1953
|
+
non_resource_rule = client.V1PolicyRule(
|
1954
|
+
non_resource_urls=["/metrics"],
|
1955
|
+
verbs=["get"]
|
1956
|
+
)
|
1957
|
+
|
1958
|
+
cluster_role.rules.append(non_resource_rule)
|
1959
|
+
|
1948
1960
|
try:
|
1949
1961
|
rbac_v1.create_cluster_role(body=cluster_role)
|
1950
1962
|
except ApiException as e:
|
@@ -0,0 +1,11 @@
|
|
1
|
+
k8s_helper/__init__.py,sha256=XDUF1icyJlQZbTC8B1N4sI8nxUs9X9nJO2EOHzVVq4E,2666
|
2
|
+
k8s_helper/cli.py,sha256=ngXnZ-6EaTm9hCViLPOLZya4HtFDsqpPbLYnOBEfQmA,79400
|
3
|
+
k8s_helper/config.py,sha256=P7YdfyvCHprrNs2J9DRb3RrClylfTTh5hfTtDzLug0A,6867
|
4
|
+
k8s_helper/core.py,sha256=g6PjbbOqfc9n6CbSJLmglxaDLYdLZltc1V2z0bxpAHk,109980
|
5
|
+
k8s_helper/utils.py,sha256=wYgTd5ktyuI-EiVcfW7FrxA7MzXY5odrEKQgmMVdueY,9496
|
6
|
+
k8s_helper_cli-0.4.1.dist-info/licenses/LICENSE,sha256=tXPvVl3gLVc6e0qCEoLH9KjeA7z4JVL78UybpvGtBCw,1096
|
7
|
+
k8s_helper_cli-0.4.1.dist-info/METADATA,sha256=xwNsN6p-TUlQLnN-9HtMEu-Z5cnvlRIFt4F8SmfKzKM,30789
|
8
|
+
k8s_helper_cli-0.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
9
|
+
k8s_helper_cli-0.4.1.dist-info/entry_points.txt,sha256=IoCMWUZ6mn90LwzQzEy5YkWOwvogDdZ6ycqUWAzCFTQ,50
|
10
|
+
k8s_helper_cli-0.4.1.dist-info/top_level.txt,sha256=x9A1jflyer-z2cFnkqk5B42juoH2q0fy5hkT9upsTG8,11
|
11
|
+
k8s_helper_cli-0.4.1.dist-info/RECORD,,
|
@@ -1,11 +0,0 @@
|
|
1
|
-
k8s_helper/__init__.py,sha256=XDUF1icyJlQZbTC8B1N4sI8nxUs9X9nJO2EOHzVVq4E,2666
|
2
|
-
k8s_helper/cli.py,sha256=ngXnZ-6EaTm9hCViLPOLZya4HtFDsqpPbLYnOBEfQmA,79400
|
3
|
-
k8s_helper/config.py,sha256=P7YdfyvCHprrNs2J9DRb3RrClylfTTh5hfTtDzLug0A,6867
|
4
|
-
k8s_helper/core.py,sha256=Zhpcpo_CSzYtBAkQyaHxkRETIbZbE2Ll_E8tW2lUgZ8,109549
|
5
|
-
k8s_helper/utils.py,sha256=wYgTd5ktyuI-EiVcfW7FrxA7MzXY5odrEKQgmMVdueY,9496
|
6
|
-
k8s_helper_cli-0.4.0.dist-info/licenses/LICENSE,sha256=tXPvVl3gLVc6e0qCEoLH9KjeA7z4JVL78UybpvGtBCw,1096
|
7
|
-
k8s_helper_cli-0.4.0.dist-info/METADATA,sha256=CwdjQe6YLKK4cTqf1MKc-69Fxwo77p6-fNq2XVWM1gM,30789
|
8
|
-
k8s_helper_cli-0.4.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
9
|
-
k8s_helper_cli-0.4.0.dist-info/entry_points.txt,sha256=IoCMWUZ6mn90LwzQzEy5YkWOwvogDdZ6ycqUWAzCFTQ,50
|
10
|
-
k8s_helper_cli-0.4.0.dist-info/top_level.txt,sha256=x9A1jflyer-z2cFnkqk5B42juoH2q0fy5hkT9upsTG8,11
|
11
|
-
k8s_helper_cli-0.4.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|