Skip to content

Commit

Permalink
fix: de-hardcode namespace (#326)
Browse files Browse the repository at this point in the history
* istioctl install in any model namespace not kubeflow
* ci: test in non-kubeflow namespace
Fixes #325
  • Loading branch information
NohaIhab authored Sep 4, 2023
1 parent 293f90a commit 253bdc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ jobs:

- name: Run integration tests
run: |
juju add-model kubeflow
juju add-model test-istio
# Using destructive mode because of https://github.com/canonical/charmcraft/issues/1132
# and https://github.com/canonical/charmcraft/issues/1138
tox -e integration -- --model kubeflow --destructive-mode
tox -e integration -- --model test-istio --destructive-mode
timeout-minutes: 80

- name: Setup Debug Artifact Collection
Expand Down Expand Up @@ -95,13 +95,13 @@ jobs:
kubectl describe gateways -A | tee tmp/kube-gateways.txt
kubectl describe deployments -A | tee tmp/kube-deployments.txt
kubectl describe replicasets -A | tee tmp/kubectl-replicasets.txt
kubectl exec -n kubeflow istio-pilot-0 --container charm -- agents/unit-istio-pilot-0/charm/istioctl analyze -n kubeflow | tee tmp/istioctl-analyze.txt
kubectl exec -n test-istio istio-pilot-0 --container charm -- agents/unit-istio-pilot-0/charm/istioctl analyze -n test-istio | tee tmp/istioctl-analyze.txt
- name: Collect Kube logs
if: failure()
run: |
kubectl logs -n kubeflow --tail 1000 -lapp.kubernetes.io/name=istio-pilot -c charm | tee tmp/istio-pilot.log
kubectl logs -n kubeflow --tail 1000 -lapp.kubernetes.io/name=istio-ingressgateway-operator -c charm | tee tmp/istio-ingressgateway-operator.log
kubectl logs -n test-istio --tail 1000 -lapp.kubernetes.io/name=istio-pilot -c charm | tee tmp/istio-pilot.log
kubectl logs -n test-istio --tail 1000 -lapp.kubernetes.io/name=istio-ingressgateway-operator -c charm | tee tmp/istio-ingressgateway-operator.log
- name: Upload debug artifacts
if: failure()
Expand Down
2 changes: 1 addition & 1 deletion charms/istio-pilot/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def install(self, _):
"--set",
"profile=minimal",
"--set",
"values.global.istioNamespace=kubeflow",
f"values.global.istioNamespace={self.model.name}",
"--set",
f"values.pilot.image={pilot_image}",
"--set",
Expand Down

0 comments on commit 253bdc4

Please sign in to comment.