Skip to content

Commit 1d32364

Browse files
authored
Merge pull request #1076 from fluxcd/internal-controller
Move controllers to internal/controller
2 parents eaa25b9 + e16d6eb commit 1d32364

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+44
-45
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ RUN go mod download
4040

4141
# Copy source code
4242
COPY main.go main.go
43-
COPY controllers/ controllers/
4443
COPY pkg/ pkg/
4544
COPY internal/ internal/
4645

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ test-ctrl: install-envtest test-api check-deps ## Run controller tests
8282
GIT_CONFIG_GLOBAL=/dev/null \
8383
go test $(GO_STATIC_FLAGS) \
8484
-run "^$(GO_TEST_PREFIX).*" \
85-
-v ./controllers \
85+
-v ./internal/controller \
8686
-coverprofile cover.out
8787

8888
check-deps:

hack/ci/e2e.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ kubectl -n source-system wait bucket/podinfo --for=condition=ready --timeout=1m
133133

134134
echo "Run HelmChart from Bucket tests"
135135
"${BUILD_DIR}/mc" mb minio/charts
136-
"${BUILD_DIR}/mc" mirror "${ROOT_DIR}/controllers/testdata/charts/helmchart/" minio/charts/helmchart
136+
"${BUILD_DIR}/mc" mirror "${ROOT_DIR}/internal/controller/testdata/charts/helmchart/" minio/charts/helmchart
137137

138138
kubectl -n source-system apply -f "${ROOT_DIR}/config/testdata/helmchart-from-bucket/source.yaml"
139139
kubectl -n source-system wait bucket/charts --for=condition=ready --timeout=1m
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import sourcev1 "github.com/fluxcd/source-controller/api/v1"
2020

controllers/artifact_matchers_test.go renamed to internal/controller/artifact_matchers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"fmt"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"testing"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"context"

controllers/bucket_controller_fetch_test.go renamed to internal/controller/bucket_controller_fetch_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"context"

controllers/bucket_controller_test.go renamed to internal/controller/bucket_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"context"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"context"

0 commit comments

Comments
 (0)