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

Add virtual clusters creation #388

Closed
callmevladik opened this issue Sep 20, 2024 · 0 comments · Fixed by #389
Closed

Add virtual clusters creation #388

callmevladik opened this issue Sep 20, 2024 · 0 comments · Fixed by #389
Assignees
Labels
enhancement New feature or request feature New functionality

Comments

@callmevladik
Copy link
Contributor

callmevladik commented Sep 20, 2024

We need to enhance the functionality within the 'Configuration->Deployment->Clusters' section to allow users the capability to CREATE new clusters. This involves extending the current dialog for adding clusters with an additional option, enabling users to select between adding an existing cluster or creating a new one.

The dialog for creating a new cluster should be straightforward, prompting the user for the cluster name and offering the option to switch to a YAML format for more advanced configuration.

Upon entering the name of the cluster, the system should automatically generate the following object:

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {NAMESPACE}-{CLUSTER_NAME}
namespace: {NAMESPACE}
labels:
app.edp.epam.com/secret-type=cluster
spec:
project: {NAMESPACE}
source:
repoURL: https://github.com/loft-sh/vcluster
targetRevision: v0.20.0
path: chart
helm:
parameters:
- name: controlPlane.statefulSet.image.tag
value: "0.20.0"
- name: exportKubeConfig.server
value: "https://{CLUSTER_NAME}.{NAMESPACE}.svc:443"
- name: controlPlane.statefulSet.persistence.volumeClaim.retentionPolicy
value: "Delete"
destination:
server: https://kubernetes.default.svc
namespace: {NAMESPACE}
syncPolicy:
automated:
prune: true
selfHeal: true

Acceptance Criteria
The 'Configuration->Deployment->Clusters' section should include an option to add a new cluster. And new Section "Virtual Clusters"
A dialog for creating a new cluster should be implemented, asking only for the cluster name and offering a YAML format option.
Upon cluster creation, the specified YAML object should be generated with the user-provided CLUSTER_NAME and NAMESPACE extracted from the 'edp-config.edp_name' configmap.
UI should highlight clusters that are the virtual one and was created using create dialog
label app.edp.epam.com/app-type=cluster
name max char 10, [a-z]
Implementation Plan
Extend the existing dialog in the 'Configuration->Deployment->Clusters' section.
Implement the new cluster creation dialog with the name input and YAML format option.
Ensure the backend logic creates the appropriate YAML object based on user input and configmap data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature New functionality
Projects
Development

Successfully merging a pull request may close this issue.

1 participant