@@ -14,11 +14,11 @@ import (
14
14
func (mh * Memcached ) implementingE2ETests () {
15
15
log .Infof ("implementing example e2e tests" )
16
16
17
- // testdDir is testdata/go/v3/memcached-operator/test
17
+ // testDir is testdata/go/v3/memcached-operator/test
18
18
testDir := filepath .Join (mh .ctx .Dir , "test" )
19
19
// testE2eDir is testdata/go/v3/memcached-operator/test/e2e
20
20
testE2eDir := filepath .Join (testDir , "e2e" )
21
- // testE2eDir is testdata/go/v3/memcached-operator/test/utils
21
+ // testUtilsDir is testdata/go/v3/memcached-operator/test/utils
22
22
testUtilsDir := filepath .Join (testDir , "utils" )
23
23
24
24
// Following we will create the directories
@@ -29,10 +29,10 @@ func (mh *Memcached) implementingE2ETests() {
29
29
mh .addContent (testE2eDir , testUtilsDir )
30
30
31
31
// Add a target to run the tests into the Makefile
32
- mh .addTestE2eMaekefileTarget ()
32
+ mh .addTestE2eMakefileTarget ()
33
33
}
34
34
35
- func (mh * Memcached ) addTestE2eMaekefileTarget () {
35
+ func (mh * Memcached ) addTestE2eMakefileTarget () {
36
36
err := kbutil .ReplaceInFile (filepath .Join (mh .ctx .Dir , "Makefile" ),
37
37
`KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test ./... -coverprofile cover.out` ,
38
38
`KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test $(go list ./... | grep -v /test/) -coverprofile cover.out` ,
@@ -176,17 +176,17 @@ var _ = Describe("memcached", func() {
176
176
Expect(utils.InstallCertManager()).To(Succeed())
177
177
178
178
// The namespace can be created when we run make install
179
- // However, in this test we want ensure that the solution
179
+ // However, in this test we want to ensure that the solution
180
180
// can run in a ns labeled as restricted. Therefore, we are
181
- // creating the namespace an lebeling it.
181
+ // creating the namespace and labeling it.
182
182
By("creating manager namespace")
183
183
cmd := exec.Command("kubectl", "create", "ns", namespace)
184
184
_, _ = utils.Run(cmd)
185
185
186
- // Now, let's ensure that all namespaces can raise an Warn when we apply the manifests
186
+ // Now, let's ensure that all namespaces can raise a Warn when we apply the manifests
187
187
// and that the namespace where the Operator and Operand will run are enforced as
188
188
// restricted so that we can ensure that both can be admitted and run with the enforcement
189
- By("labeling all namespaces to warn when we apply the manifest if would violate the PodStandards")
189
+ By("labeling all namespaces to warn when we apply the manifest if it would violate the PodStandards")
190
190
cmd = exec.Command("kubectl", "label", "--overwrite", "ns", "--all",
191
191
"pod-security.kubernetes.io/audit=restricted",
192
192
"pod-security.kubernetes.io/enforce-version=v1.24",
@@ -376,7 +376,7 @@ func Run(cmd *exec.Cmd) ([]byte, error) {
376
376
fmt.Fprintf(GinkgoWriter, "running dir: %s\n", cmd.Dir)
377
377
378
378
// To allow make commands be executed from the project directory which is subdir on SDK repo
379
- // TODO:(user) You might does not need the following code
379
+ // TODO:(user) You might not need the following code
380
380
if err := os.Chdir(cmd.Dir); err != nil {
381
381
fmt.Fprintf(GinkgoWriter, "chdir dir: %s\n", err)
382
382
}
0 commit comments