Skip to content

Commit

Permalink
do not refer to the statefulset-runner from the controllers folder
Browse files Browse the repository at this point in the history
  • Loading branch information
pbusko committed Jan 8, 2025
1 parent e03fc9f commit 7bd9984
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion controllers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ RUN --mount=type=cache,target=/go/pkg/mod \

COPY model model
COPY controllers controllers
COPY statefulset-runner statefulset-runner
COPY tools tools
COPY version version

Expand Down
3 changes: 1 addition & 2 deletions controllers/cleanup/build_cleaner.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"sort"

korifiv1alpha1 "code.cloudfoundry.org/korifi/controllers/api/v1alpha1"
"code.cloudfoundry.org/korifi/statefulset-runner/controllers"
"github.com/go-logr/logr"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/types"
Expand Down Expand Up @@ -35,7 +34,7 @@ func (c BuildCleaner) Clean(ctx context.Context, app types.NamespacedName) error
err = c.k8sClient.List(ctx, &cfBuilds,
client.InNamespace(app.Namespace),
client.MatchingLabels{
controllers.LabelAppGUID: app.Name,
korifiv1alpha1.CFAppGUIDLabelKey: app.Name,
},
)
if err != nil {
Expand Down
3 changes: 1 addition & 2 deletions controllers/cleanup/build_cleaner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (

korifiv1alpha1 "code.cloudfoundry.org/korifi/controllers/api/v1alpha1"
"code.cloudfoundry.org/korifi/controllers/cleanup"
"code.cloudfoundry.org/korifi/statefulset-runner/controllers"
"github.com/google/uuid"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -108,7 +107,7 @@ func createBuild(namespace, appGUID, name string) *korifiv1alpha1.CFBuild {
Name: name,
Namespace: namespace,
Labels: map[string]string{
controllers.LabelAppGUID: appGUID,
korifiv1alpha1.CFAppGUIDLabelKey: appGUID,
},
},
Spec: korifiv1alpha1.CFBuildSpec{Lifecycle: korifiv1alpha1.Lifecycle{Type: "buildpack"}},
Expand Down
3 changes: 1 addition & 2 deletions controllers/cleanup/package_cleaner.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"sort"

korifiv1alpha1 "code.cloudfoundry.org/korifi/controllers/api/v1alpha1"
"code.cloudfoundry.org/korifi/statefulset-runner/controllers"

"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/types"
Expand Down Expand Up @@ -45,7 +44,7 @@ func (c PackageCleaner) Clean(ctx context.Context, app types.NamespacedName) err
err = c.k8sClient.List(ctx, &cfPackages,
client.InNamespace(app.Namespace),
client.MatchingLabels{
controllers.LabelAppGUID: app.Name,
korifiv1alpha1.CFAppGUIDLabelKey: app.Name,
},
)
if err != nil {
Expand Down
3 changes: 1 addition & 2 deletions controllers/cleanup/package_cleaner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (

korifiv1alpha1 "code.cloudfoundry.org/korifi/controllers/api/v1alpha1"
"code.cloudfoundry.org/korifi/controllers/cleanup"
"code.cloudfoundry.org/korifi/statefulset-runner/controllers"

"github.com/google/uuid"
. "github.com/onsi/ginkgo/v2"
Expand Down Expand Up @@ -119,7 +118,7 @@ func createPackage(namespace, appGUID, name string) *korifiv1alpha1.CFPackage {
Name: name,
Namespace: namespace,
Labels: map[string]string{
controllers.LabelAppGUID: appGUID,
korifiv1alpha1.CFAppGUIDLabelKey: appGUID,
},
},
Spec: korifiv1alpha1.CFPackageSpec{Type: "bits"},
Expand Down
1 change: 0 additions & 1 deletion controllers/remote-debug/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ RUN --mount=type=cache,target=/go/pkg/mod \

COPY model model
COPY controllers controllers
COPY statefulset-runner statefulset-runner
COPY tools tools
COPY version version

Expand Down

0 comments on commit 7bd9984

Please sign in to comment.