Skip to content

Commit

Permalink
feat: define columns for all resources
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanJosipovic committed Sep 11, 2024
1 parent 04fc535 commit 0c8f6c7
Show file tree
Hide file tree
Showing 3 changed files with 620 additions and 149 deletions.
2 changes: 1 addition & 1 deletion src/KubeUI/Client/Cluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private void AddDefaultNavigation()
new ResourceNavigationLink() { Name = "Secrets", ControlType = typeof(V1Secret), Cluster = this },
new ResourceNavigationLink() { Name = "Resource Quotas", ControlType = typeof(V1ResourceQuota), Cluster = this },
new ResourceNavigationLink() { Name = "Limit Ranges", ControlType = typeof(V1LimitRange), Cluster = this },
new ResourceNavigationLink() { Name = "Horizontal Pod Auto Scalers", ControlType = typeof(V1HorizontalPodAutoscaler), Cluster = this },
new ResourceNavigationLink() { Name = "Horizontal Pod Auto Scalers", ControlType = typeof(V2HorizontalPodAutoscaler), Cluster = this },
new ResourceNavigationLink() { Name = "Pod Disruption Budget", ControlType = typeof(V1PodDisruptionBudget), Cluster = this }, // Needs SvgIcon
new ResourceNavigationLink() { Name = "Priority Classes", ControlType = typeof(V1PriorityClass), Cluster = this }, // Needs SvgIcon
new ResourceNavigationLink() { Name = "Runtime Classes", ControlType = typeof(V1RuntimeClass), Cluster = this }, // Needs SvgIcon
Expand Down
2 changes: 1 addition & 1 deletion src/KubeUI/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public static string GetKubeAssetPath(Type type)
return resourceBasePath + "group.svg";
}

if (type == typeof(V1HorizontalPodAutoscaler))
if (type == typeof(V1HorizontalPodAutoscaler) || type == typeof(V2HorizontalPodAutoscaler))
{
return resourceBasePath + "hpa.svg";
}
Expand Down
Loading

0 comments on commit 0c8f6c7

Please sign in to comment.