airshipctl/pkg/config/testdata
Kostiantyn Kalynovskyi 147b97048b Split document model, add entrypoints for repos
Add NewBundleByPath function, that would return bundle built from
the specified path argument

Add CurrentContextEntryPoint method of the config
object, that would allow easily get kustomize root path based on
clusterType and phase. You can also leave phase arg empty string,
which would try to return bundle for all phases

Introduce changes to config pakage objects:

- Manifest:
  SubPath: this is relative path to the root of the repository that
contains directories with sites (SiteNames)
    PrimaryRepositoryName: this is a string that must correspond to a key
of the Repositories map of manifest object, which is used to derive
primary repository
    Repositories object is a map, map keys correspond to names of the
directories where `document pull` command will download repositories
defined in manifest prepended by manifest.TargetPath.

Introduce new config method CurrentContextEntryPoint(), method takes
TargetPath, PrimaryRepo.URL, SubPath, and clusterType and phase
constructs a path to the entry point out of which the DocumentBundle
should be build, and returns it to the caller. After that caller can
build a bundle out of it, the bundle will contain documents relevant to
particular cluster-type and phase.

All objects that depend on bundle interface are updated to use the
CurrentContextEntryPoint() method of the config object

Relates-To: #99

Closes: #99

Change-Id: I99320c4cb626841d46f4c298b583e9af90b1dce4
2020-03-12 09:55:05 -05:00
..
authinfo-string.yaml Introduces config cmd's for set-credentials and get-credentials 2020-02-04 13:01:19 -05:00
bootstrap-string.yaml [AIR-195] Extend config with isogen options 2020-01-23 13:03:42 +04:00
builder-string.yaml [AIR-195] Extend config with isogen options 2020-01-23 13:03:42 +04:00
ca.crt airshipctl config (replace 686508) 2019-11-05 15:42:42 +00:00
cluster-string.yaml Fix cluster name parsing 2020-02-07 21:58:10 +04:00
config-string.yaml Split document model, add entrypoints for repos 2020-03-12 09:55:05 -05:00
container-string.yaml [AIR-195] Extend config with isogen options 2020-01-23 13:03:42 +04:00
context-string.yaml Fix cluster name parsing 2020-02-07 21:58:10 +04:00
garbage-string.yaml Remove the need for reflect for testing config 2019-11-06 16:34:52 -06:00
manifest-string.yaml Split document model, add entrypoints for repos 2020-03-12 09:55:05 -05:00
modules-string.yaml [AIR-195] Extend config with isogen options 2020-01-23 13:03:42 +04:00
prettycluster-string.yaml Fix cluster name parsing 2020-02-07 21:58:10 +04:00
repo-auth-string.yaml Add implementation of document/repo interface 2020-02-10 20:06:14 +00:00
repo-checkout-string.yaml [#13] Add document pull command 2020-02-12 11:01:11 -06:00
repository-string.yaml Split document model, add entrypoints for repos 2020-03-12 09:55:05 -05:00
test-key.pem Add implementation of document/repo interface 2020-02-10 20:06:14 +00:00