mirror of https://github.com/portainer/portainer
13 lines
408 B
JavaScript
13 lines
408 B
JavaScript
import { KubernetesConfigurationTypes } from 'Kubernetes/models/configuration/models';
|
|
|
|
export default class {
|
|
$onInit() {
|
|
const secrets = (this.configurations || [])
|
|
.filter((config) => config.Data && config.Type === KubernetesConfigurationTypes.SECRET)
|
|
.flatMap((config) => Object.entries(config.Data))
|
|
.map(([key, value]) => ({ key, value }));
|
|
|
|
this.state = { secrets };
|
|
}
|
|
}
|