Skip to content

Commit 7d7fe10

Browse files
committed
wip
Signed-off-by: Daniil Loktev <[email protected]>
1 parent 990a36a commit 7d7fe10

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

images/virtualization-artifact/pkg/controller/supplements/generator.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ type Generator interface {
7171
LegacyDVCRAuthSecretForDV() types.NamespacedName
7272
LegacyUploaderTLSSecretForIngress() types.NamespacedName
7373
LegacyImagePullSecret() types.NamespacedName
74-
LegacySnapshotSupplement() types.NamespacedName
7574
}
7675

7776
// Generator calculates names for supplemental resources, e.g. ImporterPod, AuthSecret or CABundleConfigMap.
@@ -277,11 +276,3 @@ func (g *generator) LegacyDataVolume() types.NamespacedName {
277276
func (g *generator) LegacyPersistentVolumeClaim() types.NamespacedName {
278277
return g.LegacyDataVolume()
279278
}
280-
281-
// LegacySnapshotSupplement generates old format name for snapshot-related resources.
282-
func (g *generator) LegacySnapshotSupplement() types.NamespacedName {
283-
return types.NamespacedName{
284-
Name: g.name,
285-
Namespace: g.namespace,
286-
}
287-
}

images/virtualization-artifact/pkg/controller/supplements/generator_test.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,6 @@ var _ = Describe("Generator", func() {
6868
Entry("CommonSupplement", func(g Generator) types.NamespacedName { return g.CommonSupplement() }, "vi"),
6969
)
7070

71-
It("should generate legacy snapshot supplement name without prefix or UID", func() {
72-
name := "test-snapshot"
73-
gen = NewGenerator("vms", name, namespace, uid)
74-
result := gen.LegacySnapshotSupplement()
75-
76-
Expect(result.Name).To(Equal(name))
77-
Expect(result.Namespace).To(Equal(namespace))
78-
})
79-
8071
DescribeTable("should truncate long names to respect limits",
8172
func(method func(Generator) types.NamespacedName, maxLength int) {
8273
name := strings.Repeat("very-long-resource-name-", 30)

0 commit comments

Comments
 (0)