-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to define Kubernetes cluster context
- Loading branch information
1 parent
e519601
commit f912a34
Showing
2 changed files
with
117 additions
and
2 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
namespace SmoothSailing; | ||
|
||
public class KubernetesContext | ||
{ | ||
/// <summary> | ||
/// Client-side default throttling limit (default 100). | ||
/// </summary> | ||
public int? BurstLimit { get; set; } | ||
|
||
/// <summary> | ||
/// Enable verbose output. | ||
/// </summary> | ||
public bool? Debug { get; set; } | ||
|
||
/// <summary> | ||
/// The address and the port for the Kubernetes API server. | ||
/// </summary> | ||
public string? APIServer { get; set; } | ||
|
||
/// <summary> | ||
/// Group to impersonate for the operation. This flag can be repeated to specify multiple groups. | ||
/// </summary> | ||
public string[]? AsGroup { get; set; } | ||
|
||
/// <summary> | ||
/// Username to impersonate for the operation. | ||
/// </summary> | ||
public string? AsUser { get; set; } | ||
|
||
/// <summary> | ||
/// The certificate authority file for the Kubernetes API server connection. | ||
/// </summary> | ||
public string? CAFile { get; set; } | ||
|
||
/// <summary> | ||
/// Name of the kubeconfig context to use. | ||
/// </summary> | ||
public string? Context { get; set; } | ||
|
||
/// <summary> | ||
/// If true, the Kubernetes API server's certificate will not be checked for validity. | ||
/// This will make your HTTPS connections insecure. | ||
/// </summary> | ||
public bool? InsecureSkipTLSVerify { get; set; } | ||
|
||
/// <summary> | ||
/// Server name to use for Kubernetes API server certificate validation. | ||
/// If it is not provided, the hostname used to contact the server is used. | ||
/// </summary> | ||
public string? TLSServerName { get; set; } | ||
|
||
/// <summary> | ||
/// Bearer token used for authentication. | ||
/// </summary> | ||
public string? Token { get; set; } | ||
|
||
/// <summary> | ||
/// Path to the kubeconfig file. | ||
/// </summary> | ||
public string? KubeConfig { get; set; } | ||
|
||
/// <summary> | ||
/// Namespace scope for this request. | ||
/// </summary> | ||
public string? Namespace { get; set; } | ||
|
||
} |