Skip to content

Commit

Permalink
fix: remove word konvoy/ and use cre/ (#365)
Browse files Browse the repository at this point in the history
The word "konvoy" doesn't mean anything in this repo, renamed it to more
generic "cre".
We can rename it to something else if this repo is renamed in future.
  • Loading branch information
dkoshkin authored Feb 15, 2024
1 parent 17fa13f commit 3c417a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

const (
//nolint:gosec // Does not contain hard coded credentials.
installKubeletCredentialProvidersScriptOnRemote = "/etc/konvoy/install-kubelet-credential-providers.sh"
installKubeletCredentialProvidersScriptOnRemote = "/etc/cre/install-kubelet-credential-providers.sh"

installKubeletCredentialProvidersScriptOnRemoteCommand = "/bin/bash " + installKubeletCredentialProvidersScriptOnRemote

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func TestGeneratePatches(
Path: "/spec/template/spec/kubeadmConfigSpec/files",
ValueMatcher: gomega.ContainElements(
gomega.HaveKeyWithValue(
"path", "/etc/konvoy/install-kubelet-credential-providers.sh",
"path", "/etc/cre/install-kubelet-credential-providers.sh",
),
gomega.HaveKeyWithValue(
"path", "/etc/kubernetes/image-credential-provider-config.yaml",
Expand All @@ -83,7 +83,7 @@ func TestGeneratePatches(
Operation: "add",
Path: "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands",
ValueMatcher: gomega.ContainElement(
"/bin/bash /etc/konvoy/install-kubelet-credential-providers.sh",
"/bin/bash /etc/cre/install-kubelet-credential-providers.sh",
),
},
{
Expand Down Expand Up @@ -132,7 +132,7 @@ func TestGeneratePatches(
Path: "/spec/template/spec/kubeadmConfigSpec/files",
ValueMatcher: gomega.ContainElements(
gomega.HaveKeyWithValue(
"path", "/etc/konvoy/install-kubelet-credential-providers.sh",
"path", "/etc/cre/install-kubelet-credential-providers.sh",
),
gomega.HaveKeyWithValue(
"path", "/etc/kubernetes/image-credential-provider-config.yaml",
Expand All @@ -149,7 +149,7 @@ func TestGeneratePatches(
Operation: "add",
Path: "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands",
ValueMatcher: gomega.ContainElement(
"/bin/bash /etc/konvoy/install-kubelet-credential-providers.sh",
"/bin/bash /etc/cre/install-kubelet-credential-providers.sh",
),
},
{
Expand Down Expand Up @@ -198,7 +198,7 @@ func TestGeneratePatches(
Path: "/spec/template/spec/files",
ValueMatcher: gomega.ContainElements(
gomega.HaveKeyWithValue(
"path", "/etc/konvoy/install-kubelet-credential-providers.sh",
"path", "/etc/cre/install-kubelet-credential-providers.sh",
),
gomega.HaveKeyWithValue(
"path", "/etc/kubernetes/image-credential-provider-config.yaml",
Expand All @@ -212,7 +212,7 @@ func TestGeneratePatches(
Operation: "add",
Path: "/spec/template/spec/preKubeadmCommands",
ValueMatcher: gomega.ContainElement(
"/bin/bash /etc/konvoy/install-kubelet-credential-providers.sh",
"/bin/bash /etc/cre/install-kubelet-credential-providers.sh",
),
},
{
Expand Down Expand Up @@ -258,7 +258,7 @@ func TestGeneratePatches(
Path: "/spec/template/spec/files",
ValueMatcher: gomega.ContainElements(
gomega.HaveKeyWithValue(
"path", "/etc/konvoy/install-kubelet-credential-providers.sh",
"path", "/etc/cre/install-kubelet-credential-providers.sh",
),
gomega.HaveKeyWithValue(
"path", "/etc/kubernetes/image-credential-provider-config.yaml",
Expand All @@ -275,7 +275,7 @@ func TestGeneratePatches(
Operation: "add",
Path: "/spec/template/spec/preKubeadmCommands",
ValueMatcher: gomega.ContainElement(
"/bin/bash /etc/konvoy/install-kubelet-credential-providers.sh",
"/bin/bash /etc/cre/install-kubelet-credential-providers.sh",
),
},
{
Expand Down

0 comments on commit 3c417a5

Please sign in to comment.