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

feat(inject): Allow to inject a kubeconfig with the specified context #430

Merged
merged 2 commits into from
Dec 20, 2019

Conversation

azatsarynnyy
Copy link
Member

@azatsarynnyy azatsarynnyy commented Dec 9, 2019

Signed-off-by: Artem Zatsarynnyi azatsary@redhat.com

What does this PR do?

Adds the parameter --context to the workspace:inject command. It's used to specify the context to be injected. If no --context parameter is provided, the current context will be injected.

What issues does this PR fix or reference?

eclipse-che/che#14877 (1'st sub-task)

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
@azatsarynnyy azatsarynnyy changed the title Allow to inject a kubeconfig with the specified context feat(inject): Allow to inject a kubeconfig with the specified context Dec 10, 2019
@azatsarynnyy azatsarynnyy marked this pull request as ready for review December 10, 2019 10:38
@azatsarynnyy
Copy link
Member Author

Could someone take a look at the PR? @benoitf

@@ -92,10 +98,23 @@ export default class Inject extends Command {
})
}

async injectKubeconfigTasks(flags: any, chenamespace: string, workspace: string, container?: string): Promise<Listr> {
async injectKubeconfigTasks(flags: any): Promise<Listr> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need to use any?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I think. And what's your opinion @AndrienkoAleksandr?

@azatsarynnyy azatsarynnyy merged commit 997af71 into master Dec 20, 2019
@azatsarynnyy azatsarynnyy deleted the az/ctx branch December 20, 2019 15:19
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.

3 participants