From 7ac7816f7d7dd383f1cd3adcf74ca6ff8fb8252a Mon Sep 17 00:00:00 2001 From: nagesh bansal Date: Mon, 14 Aug 2023 17:14:48 +0530 Subject: [PATCH] Fix gofmt Signed-off-by: nagesh bansal --- main.go | 2 +- pkg/apis/auth.go | 2 +- pkg/apis/request.go | 2 +- pkg/cmd/config/config.go | 2 +- pkg/cmd/config/getAccounts.go | 2 +- pkg/cmd/config/useAccount.go | 2 +- pkg/cmd/config/view.go | 2 +- pkg/cmd/create/project.go | 2 +- pkg/cmd/upgrade/agent.go | 4 ++-- pkg/cmd/upgrade/upgrade.go | 2 +- pkg/cmd/version/version.go | 2 +- pkg/config/ops.go | 2 +- pkg/k8s/client.go | 2 +- pkg/types/api_types.go | 2 +- pkg/types/config_types.go | 2 +- pkg/utils/reader.go | 2 +- 16 files changed, 17 insertions(+), 17 deletions(-) diff --git a/main.go b/main.go index 4d4a2f57..76e5afb9 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/apis/auth.go b/pkg/apis/auth.go index 11f679cb..5b2c3b42 100644 --- a/pkg/apis/auth.go +++ b/pkg/apis/auth.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/apis/request.go b/pkg/apis/request.go index 9333abae..fc94806b 100644 --- a/pkg/apis/request.go +++ b/pkg/apis/request.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/cmd/config/config.go b/pkg/cmd/config/config.go index f1569e61..a742707f 100644 --- a/pkg/cmd/config/config.go +++ b/pkg/cmd/config/config.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/cmd/config/getAccounts.go b/pkg/cmd/config/getAccounts.go index fa56b95f..3c3e9c7a 100644 --- a/pkg/cmd/config/getAccounts.go +++ b/pkg/cmd/config/getAccounts.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/cmd/config/useAccount.go b/pkg/cmd/config/useAccount.go index 8ebe6875..17d6748a 100644 --- a/pkg/cmd/config/useAccount.go +++ b/pkg/cmd/config/useAccount.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/cmd/config/view.go b/pkg/cmd/config/view.go index 34f9817b..6c585825 100644 --- a/pkg/cmd/config/view.go +++ b/pkg/cmd/config/view.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/cmd/create/project.go b/pkg/cmd/create/project.go index 5e9c3304..005d7daa 100644 --- a/pkg/cmd/create/project.go +++ b/pkg/cmd/create/project.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/cmd/upgrade/agent.go b/pkg/cmd/upgrade/agent.go index c74df6fb..7de68ca7 100644 --- a/pkg/cmd/upgrade/agent.go +++ b/pkg/cmd/upgrade/agent.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -52,7 +52,7 @@ var agentCmd = &cobra.Command{ kubeconfig, err := cmd.Flags().GetString("kubeconfig") utils.PrintError(err) - output, err := apis.UpgradeAgent(context.Background(), credentials, projectID, cluster_id, kubeconfig) + output, err := apis.UpgradeInfra(context.Background(), credentials, projectID, cluster_id, kubeconfig) if err != nil { utils.Red.Print("\n❌ Failed upgrading Chaos Delegate: \n" + err.Error() + "\n") os.Exit(1) diff --git a/pkg/cmd/upgrade/upgrade.go b/pkg/cmd/upgrade/upgrade.go index 6b599afc..deb5d5ea 100644 --- a/pkg/cmd/upgrade/upgrade.go +++ b/pkg/cmd/upgrade/upgrade.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/cmd/version/version.go b/pkg/cmd/version/version.go index 14fc163f..2f0c2a0f 100644 --- a/pkg/cmd/version/version.go +++ b/pkg/cmd/version/version.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/config/ops.go b/pkg/config/ops.go index e58b7fc4..09694f6e 100644 --- a/pkg/config/ops.go +++ b/pkg/config/ops.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/k8s/client.go b/pkg/k8s/client.go index f0a236ab..53bf5f37 100644 --- a/pkg/k8s/client.go +++ b/pkg/k8s/client.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/types/api_types.go b/pkg/types/api_types.go index a677f06b..1f62a11e 100644 --- a/pkg/types/api_types.go +++ b/pkg/types/api_types.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/types/config_types.go b/pkg/types/config_types.go index ccd14bbe..8f6b8155 100644 --- a/pkg/types/config_types.go +++ b/pkg/types/config_types.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/utils/reader.go b/pkg/utils/reader.go index dfa82b77..2740a0d8 100644 --- a/pkg/utils/reader.go +++ b/pkg/utils/reader.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,