mirror of https://github.com/portainer/portainer
show secrets in kube applications datatable (#8065)
parent
d484a0eb64
commit
dd01165224
|
@ -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 }));
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue