Skip to content

Commit

Permalink
Add workaround way to set exec as a pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed May 20, 2021
1 parent 680a5dd commit f6a5639
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ process-files:
find pkg/tsuru/ -name "*.go" ! -name 'custom_*' | xargs rm
mv *.go pkg/tsuru
gofmt -s -w pkg/tsuru/
git apply patch.diff
goimports -w pkg/tsuru/
go mod tidy

Expand Down
13 changes: 13 additions & 0 deletions patch.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/pkg/tsuru/model_cluster_kube_config_user.go b/pkg/tsuru/model_cluster_kube_config_user.go
index f4d70f3..a8704c2 100644
--- a/pkg/tsuru/model_cluster_kube_config_user.go
+++ b/pkg/tsuru/model_cluster_kube_config_user.go
@@ -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"`
- Exec ClusterKubeConfigUserExec `json:"exec,omitempty"`
+ Exec *ClusterKubeConfigUserExec `json:"exec,omitempty"`
Token string `json:"token,omitempty"`
Username string `json:"username,omitempty"`
}
2 changes: 1 addition & 1 deletion pkg/tsuru/model_cluster_kube_config_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Exec ClusterKubeConfigUserExec `json:"exec,omitempty"`
Exec *ClusterKubeConfigUserExec `json:"exec,omitempty"`
Token string `json:"token,omitempty"`
Username string `json:"username,omitempty"`
}

0 comments on commit f6a5639

Please sign in to comment.