Skip to content

Commit 08cdb41

Browse files
committed
Attempting to fix tests
Signed-off-by: Neo2308 <pradha.krishna.cse17@itbhu.ac.in>
1 parent 34afe5d commit 08cdb41

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

hack/generate/samples/ansible/advanced_molecule.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,6 @@ func ImplementAdvancedMolecule(sample sample.Sample, image string) {
7070
"size: 3")
7171
pkg.CheckError("updating spec of inventorytest sample", err)
7272

73-
//TODO: I think this needs to be removed, but then there are other failures when commented out that reference this file
74-
// making it unclear the actual operator of operators for kustomize, scaffolding, and the test code manipulating the yaml files
75-
// on disk
76-
log.Info("enabling metrics in the manager")
77-
err = kbutil.UncommentCode(
78-
filepath.Join(sample.Dir(), "config", "default", "kustomization.yaml"),
79-
"#- path: manager_metrics_patch.yaml", "#")
80-
pkg.CheckError("enabling metrics endpoint", err)
81-
8273
removeFixmeFromPlaybooks(sample.Dir(), sample.GVKs())
8374
updatePlaybooks(sample.Dir())
8475
addMocksFromTestdata(sample.Dir(), sample.CommandContext())

hack/generate/samples/ansible/memcached_molecule.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,4 @@ func ImplementMemcachedMolecule(sample sample.Sample, image string) {
124124
fmt.Sprintf("\n- %s", watchNamespacePatchFileName))
125125
pkg.CheckError("inserting in kustomization.yaml", err)
126126

127-
log.Info("enabling metrics in the manager")
128-
err = kbutil.UncommentCode(
129-
filepath.Join(sample.Dir(), "config", "default", "kustomization.yaml"),
130-
"- path: manager_metrics_patch.yaml", "#")
131-
pkg.CheckError("enabling metrics endpoint", err)
132127
}

0 commit comments

Comments
 (0)