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 KUBEBUILDER_ASSETS: ${{ github.workspace }}/kubebuilder/bin
- name: Run smoke tests - name: Run smoke tests
run: | 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 -n source-system rollout status deploy/source-controller --timeout=1m
kubectl wait gitrepository/gitrepository-sample --for=condition=ready --timeout=1m kubectl -n source-system wait gitrepository/gitrepository-sample --for=condition=ready --timeout=1m
kubectl wait helmrepository/helmrepository-sample --for=condition=ready --timeout=1m kubectl -n source-system wait helmrepository/helmrepository-sample --for=condition=ready --timeout=1m
kubectl wait helmchart/helmchart-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 kubectl -n source-system logs deploy/source-controller
- name: Debug failure - name: Debug failure
if: failure() if: failure()
run: | run: |
kubectl get gitrepositories -oyaml kubectl -n source-system get gitrepositories -oyaml
kubectl get helmrepositories -oyaml kubectl -n source-system get helmrepositories -oyaml
kubectl get helmcharts -oyaml kubectl -n source-system get helmcharts -oyaml
kubectl -n source-system get all kubectl -n source-system get all
kubectl -n source-system logs deploy/source-controller kubectl -n source-system logs deploy/source-controller

View File

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