Add support for parsing profile yaml files 40/76240/15
authorKiran Kamineni <kiran.k.kamineni@intel.com>
Wed, 23 Jan 2019 20:54:50 +0000 (12:54 -0800)
committerKiran Kamineni <kiran.k.kamineni@intel.com>
Tue, 12 Mar 2019 05:41:33 +0000 (22:41 -0700)
commit2416ab0120bfe15cd3c5ef6cd0bbade288b32e7a
treed9dafe3b31774d4306b277f583ba578243e34733
parent49a48a37a76201839c9507a970d639a318ba9d3f
Add support for parsing profile yaml files

Add code to parse profile configuration yaml
The parsing function is global and returns a client
which can then be used to get or apply specific parts
of the configuration on top of an extracted helm chart.
P14: Add unit test that covers both ProcessProfileYaml
     and CopyConfigurationOverrides
P15: Adding mock_charts and mock_profiles
     We expect to reuse these files for other unit tests

Issue-ID: ONAPARC-348
Change-Id: I4504d0b158fdfef476b8c2a461d33306926545d7
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
20 files changed:
src/k8splugin/go.mod
src/k8splugin/internal/rb/profile.go
src/k8splugin/internal/rb/profile_yaml.go [new file with mode: 0644]
src/k8splugin/internal/rb/profile_yaml_test.go [new file with mode: 0644]
src/k8splugin/mock_files/mock_charts/testchart1/Chart.yaml [new file with mode: 0644]
src/k8splugin/mock_files/mock_charts/testchart1/charts/subcharta/Chart.yaml [new file with mode: 0644]
src/k8splugin/mock_files/mock_charts/testchart1/charts/subcharta/templates/service.yaml [new file with mode: 0644]
src/k8splugin/mock_files/mock_charts/testchart1/charts/subcharta/values.yaml [new file with mode: 0644]
src/k8splugin/mock_files/mock_charts/testchart1/charts/subchartb/Chart.yaml [new file with mode: 0644]
src/k8splugin/mock_files/mock_charts/testchart1/charts/subchartb/templates/service.yaml [new file with mode: 0644]
src/k8splugin/mock_files/mock_charts/testchart1/charts/subchartb/values.yaml [new file with mode: 0644]
src/k8splugin/mock_files/mock_charts/testchart1/templates/NOTES.txt [new file with mode: 0644]
src/k8splugin/mock_files/mock_charts/testchart1/templates/service.yaml [new file with mode: 0644]
src/k8splugin/mock_files/mock_charts/testchart1/values.yaml [new file with mode: 0644]
src/k8splugin/mock_files/mock_profiles/profile1/faulty-dest-manifest.yaml [new file with mode: 0644]
src/k8splugin/mock_files/mock_profiles/profile1/faulty-manifest.yaml [new file with mode: 0644]
src/k8splugin/mock_files/mock_profiles/profile1/faulty-src-manifest.yaml [new file with mode: 0644]
src/k8splugin/mock_files/mock_profiles/profile1/manifest.yaml [new file with mode: 0644]
src/k8splugin/mock_files/mock_profiles/profile1/override_values.yaml [new file with mode: 0644]
src/k8splugin/mock_files/mock_profiles/profile1/subdir/p1.yaml [new file with mode: 0644]