Skip to content

testing#239

Open
adskyiproger wants to merge 6 commits intodevelopfrom
manage-users
Open

testing#239
adskyiproger wants to merge 6 commits intodevelopfrom
manage-users

Conversation

@adskyiproger
Copy link
Collaborator

@adskyiproger adskyiproger commented Feb 6, 2026

Testing

Integration with environment:init

Option no selected

Go to next step
image

Option Yes selected: For new environment

Display existing users and enter edit mode
image

Save without adding any users: No confirmation message
image

Exit without saving: No confirmation message
image

Option Yes selected: For existing environment

Display existing users and enter edit mode
image

Script features

Add new user

NOTE: by default all new users are added present

Add new user without ssh keys
image

Summary
image

Edit existing user

Select user to edit:
image

Edit user summary:
image

Edit user change state:
image

Edit user after editing:
image

Back to main screen after editing
image

Save changes after editing user: script back to normal execution
image

Verify updated file
image

Remove user

NOTE: Script has support for multiple users removal

image image

View all after user removal
image

Confirmation dialog
image

Success save and exist
image

User was removed from inventory file
image

if (fs.existsSync(dest)) {
warn(` ⚠️ Skipping existing file: ${dest}`);
return;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initially we supposed only create helm chart values and ansible inventory files.

It is safe to update as well

Always overwrite generated configuration file, otherwise updates will not work

if (fs.existsSync(outputPath)) {
warn(` ⚠️ Skipping ${templatePath}, file already exists at ${outputPath}`);
return;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initially we supposed only create helm chart values and ansible inventory files.

It is safe to update as well

Always overwrite generated configuration file, otherwise updates will not work

}
}

export function getUsers(data: any): any {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to move this kind of functions to external file (library), If we add more methods in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant