@@ -38,6 +38,8 @@ private[client] trait SttpJVM[F[_]] {
3838 * Config to use
3939 * @param context
4040 * If provided, overrides the config's current context
41+ * @param cluster
42+ * If provided, overrides the config's current cluster
4143 */
4244 def fromConfig [T : Builder : Reader : BodySerializer ](
4345 config : Config ,
@@ -111,6 +113,8 @@ private[client] trait SttpJVM[F[_]] {
111113 * Path to kubeconfig file
112114 * @param context
113115 * If provided, overrides the config's current context
116+ * @param cluster
117+ * If provided, overrides the config's current cluster
114118 */
115119 def load [T : Builder : Reader : BodySerializer ](
116120 config : Path ,
@@ -131,11 +135,14 @@ private[client] trait SttpJVM[F[_]] {
131135 * Path to kubeconfig file
132136 * @param context
133137 * If provided, overrides the config's current context
138+ * @param cluster
139+ * If provided, overrides the config's current cluster
134140 */
135141 def loadFile [T : Builder : Reader : BodySerializer ](
136142 config : String ,
137- context : Option [String ] = None
138- ): HttpClient [SttpF [F , * ]] = load(Paths .get(config), context)
143+ context : Option [String ] = None ,
144+ cluster : Option [String ] = None
145+ ): HttpClient [SttpF [F , * ]] = load(Paths .get(config), context, cluster)
139146
140147 /** Build kubernetes client kubectl config file found from default locations.
141148 * It tries:
@@ -153,6 +160,11 @@ private[client] trait SttpJVM[F[_]] {
153160 * locations. It tries:
154161 * - `KUBECONFIG` from env
155162 * - ~/.kube/config
163+ *
164+ * @param context
165+ * If provided, overrides the config's current context
166+ * @param cluster
167+ * If provided, overrides the config's current cluster
156168 */
157169 def kubeconfig [T : Builder : Reader : BodySerializer ](
158170 context : Option [String ] = None ,
0 commit comments