-
Notifications
You must be signed in to change notification settings - Fork 305
Out-of-tree client authentication providers (UserCredentials exec option) for asp.net core applications #359
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
1269c41
Adding the user credentials exec abillity
talboren fbe92c1
Fixed a few issues with the process spawning and some null references…
talboren 887fa41
Removed unused import that caused the build to fail (Mail)
talboren 8eb021b
Added preprocessor directive that will disable out-of-tree client aut…
talboren 8ac68da
Added tests to the new external execution (out-of-tree client authent…
talboren 5b69353
Trying to fix failing tests that fail apparently due to the preproces…
talboren 93cd4d8
Trying to fix failing macos tests
talboren c7bacf6
Added the -n (do not output trailing newline) and the -E options to t…
talboren 77e18f2
initializing arguments variable
talboren 5b40f28
Changes according to tg123 comments
talboren 70026f2
Added missing references
talboren b240d87
Environment.UserInteractive and Process applies to .NET Standard >= 2…
talboren File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
src/KubernetesClient/KubeConfigModels/ExecCredentialResponse.cs
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace k8s.KubeConfigModels | ||
{ | ||
public class ExecCredentialResponse | ||
{ | ||
[JsonProperty("apiVersion")] | ||
public string ApiVersion { get; set; } | ||
[JsonProperty("kind")] | ||
public string Kind { get; set; } | ||
[JsonProperty("status")] | ||
public IDictionary<string, string> Status { get; set; } | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/KubernetesClient/KubeConfigModels/ExternalExecution.cs
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Collections.Generic; | ||
using YamlDotNet.Serialization; | ||
|
||
namespace k8s.KubeConfigModels | ||
{ | ||
public class ExternalExecution | ||
{ | ||
[YamlMember(Alias = "apiVersion")] | ||
public string ApiVersion { get; set; } | ||
/// <summary> | ||
/// The command to execute. Required. | ||
/// </summary> | ||
[YamlMember(Alias = "command")] | ||
public string Command { get; set; } | ||
/// <summary> | ||
/// Environment variables to set when executing the plugin. Optional. | ||
/// </summary> | ||
[YamlMember(Alias = "env")] | ||
public IDictionary<string, string> EnvironmentVariables { get; set; } | ||
/// <summary> | ||
/// Arguments to pass when executing the plugin. Optional. | ||
/// </summary> | ||
[YamlMember(Alias = "args")] | ||
public IList<string> Arguments { get; set; } | ||
} | ||
} |
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.