Skip to content

Commit 2633061

Browse files
ewilkeniabudiab
authored andcommitted
add installHint, provideClusterInfo & interactiveMode fields to ExecConfig
1 parent 5224cef commit 2633061

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Sources/SwiftkubeClient/Config/KubeConfig.swift

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,29 @@ public struct ExecConfig: Codable, Sendable, Hashable, Equatable {
272272

273273
/// Preferred input version of the ExecInfo. The returned ExecCredentials MUST use the same encoding version as the input.
274274
public var apiVersion: String
275+
276+
/// This text is shown to the user when the executable doesn't seem to be
277+
/// present. For example, `brew install foo-cli` might be a good InstallHint for
278+
/// foo-cli on Mac OS systems.
279+
public var installHint: String?
280+
281+
/// ProvideClusterInfo determines whether or not to provide cluster information,
282+
/// which could potentially contain very large CA data, to this exec plugin as a
283+
/// part of the KUBERNETES_EXEC_INFO environment variable. By default, it is set
284+
/// to false. Package k8s.io/client-go/tools/auth/exec provides helper methods for
285+
/// reading this environment variable.
286+
public var provideClusterInfo: Bool?
287+
288+
/// InteractiveMode determines this plugin's relationship with standard input. Valid
289+
/// values are "Never" (this exec plugin never uses standard input), "IfAvailable" (this
290+
/// exec plugin wants to use standard input if it is available), or "Always" (this exec
291+
/// plugin requires standard input to function). See ExecInteractiveMode values for more
292+
/// details.
293+
///
294+
/// If APIVersion is client.authentication.k8s.io/v1alpha1 or
295+
/// client.authentication.k8s.io/v1beta1, then this field is optional and defaults
296+
/// to "IfAvailable" when unset. Otherwise, this field is required.
297+
public var interactiveMode: String?
275298
}
276299

277300
// MARK: - ExecEnvVar

0 commit comments

Comments
 (0)