diff --git a/api/openapi.yaml b/api/openapi.yaml index 0ee3ae6..00ce557 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -6851,6 +6851,7 @@ components: - args - args apiVersion: apiVersion + interactiveMode: interactiveMode env: - name: name value: value @@ -6864,6 +6865,8 @@ components: type: array apiVersion: type: string + interactiveMode: + type: string env: items: $ref: '#/components/schemas/Cluster_kubeConfig_user_exec_env' @@ -7516,6 +7519,7 @@ components: - args - args apiVersion: apiVersion + interactiveMode: interactiveMode env: - name: name value: value @@ -8770,6 +8774,7 @@ components: - args - args apiVersion: apiVersion + interactiveMode: interactiveMode env: - name: name value: value @@ -9197,6 +9202,7 @@ components: - args - args apiVersion: apiVersion + interactiveMode: interactiveMode env: - name: name value: value diff --git a/docs/ClusterKubeConfigUserExec.md b/docs/ClusterKubeConfigUserExec.md index dd006d1..d023128 100644 --- a/docs/ClusterKubeConfigUserExec.md +++ b/docs/ClusterKubeConfigUserExec.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Args** | **[]string** | | [optional] **ApiVersion** | **string** | | [optional] +**InteractiveMode** | **string** | | [optional] **Env** | [**[]ClusterKubeConfigUserExecEnv**](Cluster_kubeConfig_user_exec_env.md) | | [optional] **Command** | **string** | | [optional] diff --git a/patchs/01.diff b/patchs/01.diff index 2826369..8c8ba1d 100644 --- a/patchs/01.diff +++ b/patchs/01.diff @@ -5,8 +5,9 @@ index f4d70f3..a8704c2 100644 @@ -14,7 +14,7 @@ type ClusterKubeConfigUser struct { ClientCertificateData string `json:"client-certificate-data,omitempty"` ClientKeyData string `json:"client-key-data,omitempty"` - AuthProvider ClusterKubeConfigUserAuthprovider `json:"auth-provider,omitempty"` +- AuthProvider ClusterKubeConfigUserAuthprovider `json:"auth-provider,omitempty"` - Exec ClusterKubeConfigUserExec `json:"exec,omitempty"` ++ AuthProvider *ClusterKubeConfigUserAuthprovider `json:"auth-provider,omitempty"` + Exec *ClusterKubeConfigUserExec `json:"exec,omitempty"` Token string `json:"token,omitempty"` Username string `json:"username,omitempty"` diff --git a/pkg/tsuru/model_cluster_kube_config_user.go b/pkg/tsuru/model_cluster_kube_config_user.go index 7967f1b..2403842 100644 --- a/pkg/tsuru/model_cluster_kube_config_user.go +++ b/pkg/tsuru/model_cluster_kube_config_user.go @@ -10,11 +10,11 @@ package tsuru type ClusterKubeConfigUser struct { - Password string `json:"password,omitempty"` - ClientCertificateData string `json:"client-certificate-data,omitempty"` - ClientKeyData string `json:"client-key-data,omitempty"` - AuthProvider ClusterKubeConfigUserAuthprovider `json:"auth-provider,omitempty"` - Exec *ClusterKubeConfigUserExec `json:"exec,omitempty"` - Token string `json:"token,omitempty"` - Username string `json:"username,omitempty"` + Password string `json:"password,omitempty"` + ClientCertificateData string `json:"client-certificate-data,omitempty"` + ClientKeyData string `json:"client-key-data,omitempty"` + AuthProvider *ClusterKubeConfigUserAuthprovider `json:"auth-provider,omitempty"` + Exec *ClusterKubeConfigUserExec `json:"exec,omitempty"` + Token string `json:"token,omitempty"` + Username string `json:"username,omitempty"` } diff --git a/pkg/tsuru/model_cluster_kube_config_user_exec.go b/pkg/tsuru/model_cluster_kube_config_user_exec.go index a7dcd85..43b487e 100644 --- a/pkg/tsuru/model_cluster_kube_config_user_exec.go +++ b/pkg/tsuru/model_cluster_kube_config_user_exec.go @@ -10,8 +10,9 @@ package tsuru type ClusterKubeConfigUserExec struct { - Args []string `json:"args,omitempty"` - ApiVersion string `json:"apiVersion,omitempty"` - Env []ClusterKubeConfigUserExecEnv `json:"env,omitempty"` - Command string `json:"command,omitempty"` + Args []string `json:"args,omitempty"` + ApiVersion string `json:"apiVersion,omitempty"` + InteractiveMode string `json:"interactiveMode,omitempty"` + Env []ClusterKubeConfigUserExecEnv `json:"env,omitempty"` + Command string `json:"command,omitempty"` }