Skip to content

Commit

Permalink
fix application list query
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Dec 9, 2022
1 parent 2074050 commit 45e878f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kube/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule Kube.Client do

get_request :get_dashboard, Kube.Dashboard, "platform.plural.sh", "v1alpha1", "dashboards"
get_request :get_slashcommand, Kube.SlashCommand, "platform.plural.sh", "v1alpha1", "slashcommands"
get_request :get_application, Kube.Application, "app.k8s.io", "v1", "applications"
get_request :get_application, Kube.Application, "app.k8s.io", "v1beta1", "applications"
get_request :get_certificate, Kube.Certificate, "cert-manager.io", "v1", "certificates"
get_request :get_runbook, Kube.Runbook, "platform.plural.sh", "v1alpha1", "runbooks"
get_request :get_statefulset_resize, Kube.StatefulSetResize, "platform.plural.sh", "v1alpha1", "statefulsetresizes"
Expand All @@ -28,7 +28,7 @@ defmodule Kube.Client do
end

def list_applications() do
make_request("/apis/app.k8s.io/v1/applications", "get", Kube.ApplicationList)
make_request("/apis/app.k8s.io/v1beta1/applications", "get", Kube.ApplicationList)
end

def list_metrics() do
Expand Down

0 comments on commit 45e878f

Please sign in to comment.