This repository has been archived by the owner on Oct 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add execution environment auto completion (#42)
* feat: add execution environment auto completion * Add support for execution environment (EE) configuration options received from client. Example client `settings.json` for EE options (default) ``` { "ansible.executionEnvironment.enabled": false, "ansible.executionEnvironment.image": "quay.io/ansible/ansible-navigator-demo-ee:0.6.0", "ansible.executionEnvironment.containerEngine": "auto", "ansible.executionEnvironment.pullPolicy: "missing" } ``` * Add executionEnvironment service to handle initilization of EE and pulling plugins from within EE into cache path on local system * In case EE is enabled update docsLibrary service to read plugin docs from local cache path after executionEnvironment service is initialized * Add commandRunner utility to run command on local host or within EE based on settings passed from client * Update ansibleConfig service to use commandRunner utility to run ansible-config and related commands * remove stale logs and unused imports * update package.json node type version * updates to package-lock.json file * remove debug lods * chore: remove unused inputs * chore: readd unrelated removed file * chore: fix review comments * Add semicolon and fix indetation using Prettier extesnion * Use vscode-uri package to get document path in commandRunner utility * Add progess status for downloaing EE * Change user message to log messeage at all applicable places * Add comments on code for better readability * Simplify logic to add `plugins` folder in `site-packages` path * Fix type on executionEnvironment service * Remove `--interactive` flag from container run command * chore: Update log messages * chore: Move container engine assignment out of try/catch based on review comment * chore: add progress tracker to fetch plugin docs
- Loading branch information
Showing
11 changed files
with
865 additions
and
258 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
export type IContainerEngine = 'auto' | 'podman' | 'docker'; | ||
|
||
export type IPullPolicy = 'always' | 'missing' | 'never' | 'tag'; | ||
|
||
export interface ExtensionSettings { | ||
ansible: { path: string; useFullyQualifiedCollectionNames: boolean }; | ||
ansibleLint: { enabled: boolean; path: string; arguments: string }; | ||
executionEnvironment: ExecutionEnvironmentSettings; | ||
python: { interpreterPath: string; activationScript: string }; | ||
} | ||
|
||
interface ExecutionEnvironmentSettings { | ||
containerEngine: IContainerEngine; | ||
enabled: boolean; | ||
image: string; | ||
pullPolicy: IPullPolicy; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.