show secrets in kube applications datatable (#8065)

pull/8101/head
Prabhat Khera 2022-11-23 08:48:36 +13:00 committed by GitHub
parent d484a0eb64
commit dd01165224
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import { KubernetesConfigurationKinds } from 'Kubernetes/models/configuration/mo
export default class { export default class {
$onInit() { $onInit() {
const secrets = (this.configurations || []) const secrets = (this.configurations || [])
.filter((config) => config.Data && config.Type === KubernetesConfigurationKinds.SECRET) .filter((config) => config.Data && config.Kind === KubernetesConfigurationKinds.SECRET)
.flatMap((config) => Object.entries(config.Data)) .flatMap((config) => Object.entries(config.Data))
.map(([key, value]) => ({ key, value })); .map(([key, value]) => ({ key, value }));

View File

@ -112,7 +112,7 @@ angular.module('portainer.docker').controller('KubernetesApplicationsDatatableCo
}; };
this.hasConfigurationSecrets = function (item) { this.hasConfigurationSecrets = function (item) {
return item.Configurations && item.Configurations.some((config) => config.Data && config.Type === KubernetesConfigurationKinds.SECRET); return item.Configurations && item.Configurations.some((config) => config.Data && config.Kind === KubernetesConfigurationKinds.SECRET);
}; };
/** /**