Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 8e140ee

Browse files
author
Craig Furman
authored
appliance: remove hash package (#62151)
Nothing was reading the hash value. createOrUpdateObject() in kubernetes.go contains logic to compare an arbitrary config element to a standard config hash annotation, which supersedes this package for now.
1 parent cd44cf2 commit 8e140ee

File tree

5 files changed

+0
-277
lines changed

5 files changed

+0
-277
lines changed

internal/appliance/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ go_library(
1212
importpath = "github.com/sourcegraph/sourcegraph/internal/appliance",
1313
visibility = ["//:__subpackages__"],
1414
deps = [
15-
"//internal/appliance/hash",
1615
"//internal/k8s/resource/container",
1716
"//internal/k8s/resource/deployment",
1817
"//internal/k8s/resource/pod",

internal/appliance/hash/BUILD.bazel

Lines changed: 0 additions & 20 deletions
This file was deleted.

internal/appliance/hash/hash.go

Lines changed: 0 additions & 53 deletions
This file was deleted.

internal/appliance/hash/hash_test.go

Lines changed: 0 additions & 199 deletions
This file was deleted.

internal/appliance/reconcile.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import (
1717
"sigs.k8s.io/yaml"
1818

1919
"github.com/sourcegraph/sourcegraph/lib/errors"
20-
21-
"github.com/sourcegraph/sourcegraph/internal/appliance/hash"
2220
)
2321

2422
const (
@@ -48,8 +46,6 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu
4846
return ctrl.Result{}, err
4947
}
5048

51-
applianceSpec.Labels = hash.SetTemplateHashLabel(applianceSpec.Labels, applianceSpec.Data)
52-
5349
// TODO place holder code until we get the configmap spec'd out and working'
5450
data, ok := applianceSpec.Data["spec"]
5551
if !ok {

0 commit comments

Comments
 (0)