summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/environments
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/environments')
-rw-r--r--app/assets/javascripts/environments/components/kubernetes_agent_info.vue2
-rw-r--r--app/assets/javascripts/environments/graphql/queries/k8s_cluster_agent.query.graphql8
2 files changed, 2 insertions, 8 deletions
diff --git a/app/assets/javascripts/environments/components/kubernetes_agent_info.vue b/app/assets/javascripts/environments/components/kubernetes_agent_info.vue
index c4f6d225444..7660912f93a 100644
--- a/app/assets/javascripts/environments/components/kubernetes_agent_info.vue
+++ b/app/assets/javascripts/environments/components/kubernetes_agent_info.vue
@@ -2,7 +2,6 @@
import { GlIcon, GlLink, GlSprintf, GlLoadingIcon, GlAlert } from '@gitlab/ui';
import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue';
import { getAgentLastContact, getAgentStatus } from '~/clusters_list/clusters_util';
-import { TOKEN_STATUS_ACTIVE } from '~/clusters/agents/constants';
import { AGENT_STATUSES } from '~/clusters_list/constants';
import { s__ } from '~/locale';
import getK8sClusterAgentQuery from '../graphql/queries/k8s_cluster_agent.query.graphql';
@@ -37,7 +36,6 @@ export default {
return {
agentName: this.agentName,
projectPath: this.agentProjectPath,
- tokenStatus: TOKEN_STATUS_ACTIVE,
};
},
update: (data) => data?.project?.clusterAgent,
diff --git a/app/assets/javascripts/environments/graphql/queries/k8s_cluster_agent.query.graphql b/app/assets/javascripts/environments/graphql/queries/k8s_cluster_agent.query.graphql
index 999ae74239f..bd45d2dba2f 100644
--- a/app/assets/javascripts/environments/graphql/queries/k8s_cluster_agent.query.graphql
+++ b/app/assets/javascripts/environments/graphql/queries/k8s_cluster_agent.query.graphql
@@ -1,14 +1,10 @@
-query getK8sClusterAgentQuery(
- $projectPath: ID!
- $agentName: String!
- $tokenStatus: AgentTokenStatus!
-) {
+query getK8sClusterAgentQuery($projectPath: ID!, $agentName: String!) {
project(fullPath: $projectPath) {
id
clusterAgent(name: $agentName) {
id
webPath
- tokens(status: $tokenStatus) {
+ tokens {
nodes {
id
lastUsedAt