mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
feat(app): introduce react configurations [EE-1809] (#5953)
This commit is contained in:
parent
b285219a58
commit
85a6a80722
50 changed files with 8974 additions and 599 deletions
|
@ -1,7 +1,7 @@
|
|||
import { KubernetesConfigurationTypes } from 'Kubernetes/models/configuration/models';
|
||||
import { KubernetesConfigurationFormValuesEntry } from 'Kubernetes/models/configuration/formvalues';
|
||||
import _ from 'lodash-es';
|
||||
import YAML from 'yaml';
|
||||
import { KubernetesConfigurationTypes } from 'Kubernetes/models/configuration/models';
|
||||
import { KubernetesConfigurationFormValuesEntry } from 'Kubernetes/models/configuration/formvalues';
|
||||
|
||||
class KubernetesConfigurationHelper {
|
||||
static getUsingApplications(config, applications) {
|
||||
|
|
12
app/kubernetes/helpers/stackHelper.test.js
Normal file
12
app/kubernetes/helpers/stackHelper.test.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
import KubernetesStackHelper from './stackHelper';
|
||||
|
||||
describe('stacksFromApplications', () => {
|
||||
const { stacksFromApplications } = KubernetesStackHelper;
|
||||
test('should return an empty array when passed an empty array', () => {
|
||||
expect(stacksFromApplications([])).toHaveLength(0);
|
||||
});
|
||||
|
||||
test('should return an empty array when passed a list of applications without stacks', () => {
|
||||
expect(stacksFromApplications([{ StackName: '' }, { StackName: '' }, { StackName: '' }, { StackName: '' }])).toHaveLength(0);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue