Reconcile sources in the runtime namespace only
This commit is contained in:
parent
4f1829914d
commit
d27cc96233
|
@ -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
|
||||||
|
|
1
main.go
1
main.go
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue