gridsuite / deployment

GridSuite deployment configuration
Mozilla Public License 2.0
5 stars 7 forks source link

[k8s] Simplify Kustomize project #436

Open Tristan-WorkGH opened 1 month ago

Tristan-WorkGH commented 1 month ago

The kustomize project has grown to be quite complex with time. When we need to update it, few people understand how it work.

This issue is to group and trace actions for this goal.

Tristan-WorkGH commented 1 month ago

A first look at inheritance (bases & resources) of files give:
img: https://github.com/user-attachments/assets/28995286-1513-42f7-affd-8f9a3bfc00f9

flowchart TB
    subgraph bases[bases]
        direction TB
        subgraph bases_admingridsuite[admingridsuite]
            bases_admingridsuite_kustomization_yaml(kustomization.yaml)
        end
        subgraph bases_griddyna[griddyna]
            bases_griddyna_kustomization_yaml(kustomization.yaml)
        end
        subgraph bases_gridmerge[gridmerge]
            bases_gridmerge_kustomization_yaml(kustomization.yaml)
        end
        subgraph bases_gridstudy[gridstudy]
            bases_gridstudy_kustomization_yaml(kustomization.yaml)
        end
        subgraph bases_gridsuite[gridsuite]
            bases_gridsuite_kustomization_yaml(kustomization.yaml)
        end
    end
    subgraph components[components]
        direction TB
        subgraph components_azure[azure]
            components_azure_kustomization_yaml(kustomization.yaml)
        end
        subgraph components_gridsuite[gridsuite]
            components_gridsuite_kustomization_yaml(kustomization.yaml)
            subgraph components_gridsuite_patches[patches]
            end
        end
    end
    subgraph live[live]
        direction TB
        subgraph live_azure_dev[azure-dev]
            subgraph live_azure_dev_config[config]
            end
            live_azure_dev_kustomization_yaml(kustomization.yaml)
        end
        subgraph live_azure_integ[azure-integ]
            live_azure_integ_kustomization_yaml(kustomization.yaml)
        end
        subgraph live_local[local]
            live_local_kustomization_yaml(kustomization.yaml)
            subgraph live_local_patches[patches]
            end
        end
    end
    subgraph overlays[overlays]
        direction TB
        subgraph overlays_azure[azure]
            overlays_azure_kustomization_yaml(kustomization.yaml)
        end
    end
    subgraph resources[resources]
        direction TB
        subgraph resources_admin[admin]
            resources_admin_kustomization_yaml(kustomization.yaml)
        end
        subgraph resources_common[common]
            subgraph resources_common_config[config]
                subgraph resources_common_config_apps_metadata_server[apps-metadata-server]
                end
                subgraph resources_common_config_default_backend[default-backend]
                end
            end
            resources_common_kustomization_yaml(kustomization.yaml)
        end
        subgraph resources_dynamic_mapping[dynamic-mapping]
            subgraph resources_dynamic_mapping_config[config]
            end
            resources_dynamic_mapping_kustomization_yaml(kustomization.yaml)
        end
        subgraph resources_merging[merging]
            subgraph resources_merging_config[config]
            end
            resources_merging_kustomization_yaml(kustomization.yaml)
        end
        subgraph resources_study[study]
            direction TB
            subgraph resources_study_config[config]
                subgraph resources_study_config_dynamic_simulation[dynamic-simulation]
                end
            end
            resources_study_kustomization_yaml(kustomization.yaml)
        end
    end

live_local_kustomization_yaml==>bases_admingridsuite
live_local_kustomization_yaml-->components_gridsuite
live_azure_dev_kustomization_yaml & live_azure_integ_kustomization_yaml ==> overlays_azure
live_azure_dev_kustomization_yaml & live_azure_integ_kustomization_yaml --> components_gridsuite & components_azure
overlays_azure_kustomization_yaml==>bases_admingridsuite
bases_admingridsuite_kustomization_yaml==>bases_gridsuite & resources_admin
bases_gridsuite_kustomization_yaml==>resources_common & resources_study & resources_merging & resources_dynamic_mapping
bases_gridstudy_kustomization_yaml==>resources_common & resources_study
bases_gridmerge_kustomization_yaml==>resources_common & resources_merging
bases_griddyna_kustomization_yaml==>resources_common & resources_dynamic_mapping

linkStyle 12,16 stroke:yellow;
linkStyle 13,18 stroke:green;
linkStyle 14,20 stroke:blue;
jonenst commented 1 month ago

you can add more docs to the existing one https://github.com/gridsuite/deployment/blob/main/k8s/README.md