You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor configuration builers and add support for overriding the current k8s context (#47)
* Refactor configuration builers and add support for overriding the current k8s context
* reformatted with tab indents
* reformatted swift-format
* Refactor KubeConfigLoader as KubeConfig extensions
* Clean up comments
* Add back a few convenience functions
* swiftformat
---------
Co-authored-by: nefilim <nefilim@nefilim.org>
Copy file name to clipboardExpand all lines: Sources/SwiftkubeClient/Client/KubernetesClient.swift
+19-50Lines changed: 19 additions & 50 deletions
Original file line number
Diff line number
Diff line change
@@ -104,56 +104,6 @@ public actor KubernetesClient {
104
104
}()
105
105
#endif
106
106
107
-
/// Create a new instance of the Kubernetes client.
108
-
///
109
-
/// The client tries to resolve a `kube config` automatically from different sources in the following order:
110
-
///
111
-
/// - A Kube config file at path of environment variable `KUBECONFIG` (if set)
112
-
/// - A Kube config file in the user's `$HOME/.kube/config` directory
113
-
/// - `ServiceAccount` token located at `/var/run/secrets/kubernetes.io/serviceaccount/token` and a mounted CA certificate, if it's running in Kubernetes.
114
-
///
115
-
/// Returns `nil` if a configuration can't be found.
116
-
///
117
-
/// - Parameters:
118
-
/// - provider: A ``EventLoopGroupProvider`` to specify how ``EventLoopGroup`` will be created.
0 commit comments