Skip to content

Commit ef75402

Browse files
authored
Merge pull request #29 from robusta-dev/ROB-1415-azure-managed-identity-token-issue
ROB-1415 use params for url encoded params
2 parents 4097c17 + bd69a06 commit ef75402

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/test-prometrix.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ jobs:
1717
python-version: 3.8
1818

1919
- name: Create k8s Kind Cluster
20-
uses: helm/[email protected]
21-
- name: Install Prometheus
20+
uses: helm/[email protected]
21+
with:
22+
node_image: kindest/node:v1.25.3
23+
24+
- name: Install Prometheus
2225
run: |
2326
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
2427
helm repo add stable https://charts.helm.sh/stable

prometrix/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _get_azure_metadata_endpoint(cls, config: PrometheusConfig):
3838
headers={
3939
"Metadata": "true",
4040
},
41-
data={
41+
params={
4242
"api-version": "2018-02-01",
4343
"client_id": config.azure_client_id,
4444
"resource": config.azure_resource,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "prometrix"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
authors = ["Avi Kotlicky <[email protected]>"]
55
readme = "README.md"
66
packages = [{include = "prometrix"}]

0 commit comments

Comments
 (0)