Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[k8s] Simplify Kustomize project #436

Open
Tristan-WorkGH opened this issue Oct 2, 2024 · 2 comments
Open

[k8s] Simplify Kustomize project #436

Tristan-WorkGH opened this issue Oct 2, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Tristan-WorkGH
Copy link
Contributor

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 Tristan-WorkGH added enhancement New feature or request help wanted Extra attention is needed labels Oct 2, 2024
@Tristan-WorkGH Tristan-WorkGH self-assigned this Oct 2, 2024
@Tristan-WorkGH
Copy link
Contributor Author

Tristan-WorkGH commented Oct 2, 2024

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;
Loading

@jonenst
Copy link
Contributor

jonenst commented Oct 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants