Skip to content

Commit d27cc96

Browse files
committed
Reconcile sources in the runtime namespace only
1 parent 4f18299 commit d27cc96

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/e2e.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ jobs:
5151
KUBEBUILDER_ASSETS: ${{ github.workspace }}/kubebuilder/bin
5252
- name: Run smoke tests
5353
run: |
54-
kubectl apply -f ./config/samples
54+
kubectl -n source-system apply -f ./config/samples
5555
kubectl -n source-system rollout status deploy/source-controller --timeout=1m
56-
kubectl wait gitrepository/gitrepository-sample --for=condition=ready --timeout=1m
57-
kubectl wait helmrepository/helmrepository-sample --for=condition=ready --timeout=1m
58-
kubectl wait helmchart/helmchart-sample --for=condition=ready --timeout=1m
56+
kubectl -n source-system wait gitrepository/gitrepository-sample --for=condition=ready --timeout=1m
57+
kubectl -n source-system wait helmrepository/helmrepository-sample --for=condition=ready --timeout=1m
58+
kubectl -n source-system wait helmchart/helmchart-sample --for=condition=ready --timeout=1m
5959
kubectl -n source-system logs deploy/source-controller
6060
- name: Debug failure
6161
if: failure()
6262
run: |
63-
kubectl get gitrepositories -oyaml
64-
kubectl get helmrepositories -oyaml
65-
kubectl get helmcharts -oyaml
63+
kubectl -n source-system get gitrepositories -oyaml
64+
kubectl -n source-system get helmrepositories -oyaml
65+
kubectl -n source-system get helmcharts -oyaml
6666
kubectl -n source-system get all
6767
kubectl -n source-system logs deploy/source-controller

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ func main() {
8585
Port: 9443,
8686
LeaderElection: enableLeaderElection,
8787
LeaderElectionID: "305740c0.fluxcd.io",
88+
Namespace: os.Getenv("RUNTIME_NAMESPACE"),
8889
})
8990
if err != nil {
9091
setupLog.Error(err, "unable to start manager")

0 commit comments

Comments
 (0)