testsuite icon indicating copy to clipboard operation
testsuite copied to clipboard

[Feature] CNF installation (1), Implement new config format

Open kosstennbl opened this issue 7 months ago • 0 comments

1st step of #2120.

We need new cnf-testsuite.yml config format that would be able to:

  1. Support installation of multiple helm charts
  2. Specify which parameters are used for which install methods
  3. As a bonus - look more organized and structured.

Currently, idea for structure of new config looks like that (up to change, some parameters may be added/removed):

config_version
common:
    container_names
    white_list_container_names
    docker_insecure_registries
    image_registry_fqdns
    five_g_parameters:
        amf_label
        smf_label
        upf_label
        ric_label
        amf_service_name
        mmc
        mnc
        sst
        sd
        tac
        protectionScheme
        publicKey
        publicKeyId
        routingIndicator
        enabled
        count
        initialMSISDN
        key
        op
        opType
        type 
        apn
        emergency
dynamic:
    source_cnf_dir 
    destination_cnf_dir
    install_method
deployments:
  helm_charts:
	- name
          helm_repo_name 
          helm_repo_url
          helm_chart_name
          helm_values
	  namespace	  
  helm_dirs:
	- name
	  helm_directory
          helm_values
	  namespace
  manifests:
       - name
	 manifest_directory

Scope of this issue is to only prepare config structure and needed code to parse this config, at this point it shouldn't be used for testsuite operations.

kosstennbl avatar Aug 01 '24 08:08 kosstennbl