Reconcile sources in the runtime namespace only

This commit is contained in:
stefanprodan 2020-05-03 13:04:00 +03:00
parent 4f1829914d
commit d27cc96233
2 changed files with 8 additions and 7 deletions

View File

@ -51,17 +51,17 @@ jobs:
KUBEBUILDER_ASSETS: ${{ github.workspace }}/kubebuilder/bin
- name: Run smoke tests
run: |
kubectl apply -f ./config/samples
kubectl -n source-system apply -f ./config/samples
kubectl -n source-system rollout status deploy/source-controller --timeout=1m
kubectl wait gitrepository/gitrepository-sample --for=condition=ready --timeout=1m
kubectl wait helmrepository/helmrepository-sample --for=condition=ready --timeout=1m
kubectl wait helmchart/helmchart-sample --for=condition=ready --timeout=1m
kubectl -n source-system wait gitrepository/gitrepository-sample --for=condition=ready --timeout=1m
kubectl -n source-system wait helmrepository/helmrepository-sample --for=condition=ready --timeout=1m
kubectl -n source-system wait helmchart/helmchart-sample --for=condition=ready --timeout=1m
kubectl -n source-system logs deploy/source-controller
- name: Debug failure
if: failure()
run: |
kubectl get gitrepositories -oyaml
kubectl get helmrepositories -oyaml
kubectl get helmcharts -oyaml
kubectl -n source-system get gitrepositories -oyaml
kubectl -n source-system get helmrepositories -oyaml
kubectl -n source-system get helmcharts -oyaml
kubectl -n source-system get all
kubectl -n source-system logs deploy/source-controller

View File

@ -85,6 +85,7 @@ func main() {
Port: 9443,
LeaderElection: enableLeaderElection,
LeaderElectionID: "305740c0.fluxcd.io",
Namespace: os.Getenv("RUNTIME_NAMESPACE"),
})
if err != nil {
setupLog.Error(err, "unable to start manager")