Skip to content

Commit

Permalink
adjust storage usage collector resources
Browse files Browse the repository at this point in the history
  • Loading branch information
zubenkoivan committed Sep 18, 2024
1 parent 0fc301e commit bdb68fb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion platform_operator/helm_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,9 @@ def create_traefik_values(self, platform: PlatformConfig) -> dict[str, Any]:
"service": {"enabled": True},
"serviceMonitor": {
"jobLabel": "app.kubernetes.io/name",
"additionalLabels": {"release": platform.release_name},
"additionalLabels": {
"platform.apolo.us/scrape-metrics": "true"
},
},
}
},
Expand Down Expand Up @@ -644,6 +646,12 @@ def create_platform_storage_values(
"hosts": [platform.ingress_url.host],
},
"priorityClassName": platform.services_priority_class_name,
"storageUsageCollector": {
"resources": {
"requests": {"cpu": "250m", "memory": "500Mi"},
"limits": {"cpu": "1000m", "memory": "1Gi"},
}
},
"secrets": [],
}
result.update(**self._create_tracing_values(platform))
Expand Down
10 changes: 9 additions & 1 deletion tests/unit/test_helm_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,9 @@ def test_create_gcp_traefik_values(
"service": {"enabled": True},
"serviceMonitor": {
"jobLabel": "app.kubernetes.io/name",
"additionalLabels": {"release": "platform"},
"additionalLabels": {
"platform.apolo.us/scrape-metrics": "true"
},
},
}
},
Expand Down Expand Up @@ -926,6 +928,12 @@ def test_create_platform_storage_values__gcp(
},
}
],
"storageUsageCollector": {
"resources": {
"requests": {"cpu": "250m", "memory": "500Mi"},
"limits": {"cpu": "1000m", "memory": "1Gi"},
}
},
}

def test_create_platform_storage_values__aws(
Expand Down

0 comments on commit bdb68fb

Please sign in to comment.