|
36 | 36 | docker build -t gcr.io/k8s-staging-kas-network-proxy/proxy-agent:master -f artifacts/images/agent-build.Dockerfile .
|
37 | 37 | docker save gcr.io/k8s-staging-kas-network-proxy/proxy-agent:master > _output/konnectivity-agent.tar
|
38 | 38 | docker build -t gcr.io/k8s-staging-kas-network-proxy/proxy-server:master -f artifacts/images/server-build.Dockerfile .
|
39 |
| - docker save gcr.io/k8s-staging-kas-network-proxy/proxy-server:master > > _output/konnectivity-server.tar |
| 39 | + docker save gcr.io/k8s-staging-kas-network-proxy/proxy-server:master > _output/konnectivity-server.tar |
40 | 40 |
|
41 | 41 | - uses: actions/upload-artifact@v2
|
42 | 42 | with:
|
@@ -143,78 +143,79 @@ jobs:
|
143 | 143 | kubectl apply -f examples/kind/konnectivity-server.yaml
|
144 | 144 | kubectl apply -f examples/kind/konnectivity-agent-ds.yaml
|
145 | 145 |
|
146 |
| - - name: Get Cluster status |
147 |
| - run: | |
148 |
| - # wait network is ready |
149 |
| - sleep 5 |
150 |
| - /usr/local/bin/kubectl get nodes -o wide |
151 |
| - /usr/local/bin/kubectl get pods -A |
152 |
| - /usr/local/bin/kubectl wait --timeout=1m --for=condition=ready pods --namespace=kube-system -l k8s-app=kube-dns |
153 |
| - # smoke test |
154 |
| - /usr/local/bin/kubectl run test --image httpd:2 |
155 |
| - /usr/local/bin/kubectl wait --timeout=1m --for=condition=ready pods test |
156 |
| - /usr/local/bin/kubectl logs test |
157 |
| -
|
158 |
| - - name: Workaround CoreDNS for IPv6 airgapped |
159 |
| - if: ${{ matrix.ipFamily == 'ipv6' }} |
160 |
| - run: | |
161 |
| - # Patch CoreDNS to work in Github CI |
162 |
| - # 1. Github CI doesn´t offer IPv6 connectivity, so CoreDNS should be configured |
163 |
| - # to work in an offline environment: |
164 |
| - # https://github.com/coredns/coredns/issues/2494#issuecomment-457215452 |
165 |
| - # 2. Github CI adds following domains to resolv.conf search field: |
166 |
| - # .net. |
167 |
| - # CoreDNS should handle those domains and answer with NXDOMAIN instead of SERVFAIL |
168 |
| - # otherwise pods stops trying to resolve the domain. |
169 |
| - # Get the current config |
170 |
| - original_coredns=$(/usr/local/bin/kubectl get -oyaml -n=kube-system configmap/coredns) |
171 |
| - echo "Original CoreDNS config:" |
172 |
| - echo "${original_coredns}" |
173 |
| - # Patch it |
174 |
| - fixed_coredns=$( |
175 |
| - printf '%s' "${original_coredns}" | sed \ |
176 |
| - -e 's/^.*kubernetes cluster\.local/& net/' \ |
177 |
| - -e '/^.*upstream$/d' \ |
178 |
| - -e '/^.*fallthrough.*$/d' \ |
179 |
| - -e '/^.*forward . \/etc\/resolv.conf$/d' \ |
180 |
| - -e '/^.*loop$/d' \ |
181 |
| - ) |
182 |
| - echo "Patched CoreDNS config:" |
183 |
| - echo "${fixed_coredns}" |
184 |
| - printf '%s' "${fixed_coredns}" | /usr/local/bin/kubectl apply -f - |
185 |
| -
|
186 |
| - - name: Run tests |
187 |
| - run: | |
188 |
| - export KUBERNETES_CONFORMANCE_TEST='y' |
189 |
| - export E2E_REPORT_DIR=${PWD}/_artifacts |
190 |
| -
|
191 |
| - # Run tests |
192 |
| - /usr/local/bin/ginkgo --nodes=25 \ |
193 |
| - --focus="\[Conformance\]" \ |
194 |
| - --skip="Feature|Federation|machinery|PerformanceDNS|DualStack|Disruptive|Serial|Slow|KubeProxy|LoadBalancer|GCE|Netpol|NetworkPolicy|NodeConformance" \ |
195 |
| - /usr/local/bin/e2e.test \ |
196 |
| - -- \ |
197 |
| - --kubeconfig=${PWD}/_artifacts/kubeconfig.conf \ |
198 |
| - --provider=local \ |
199 |
| - --dump-logs-on-failure=false \ |
200 |
| - --report-dir=${E2E_REPORT_DIR} \ |
201 |
| - --disable-log-dump=true |
202 |
| -
|
203 |
| - - name: Upload Junit Reports |
204 |
| - if: always() |
205 |
| - uses: actions/upload-artifact@v2 |
206 |
| - with: |
207 |
| - name: kind-junit-${{ env.JOB_NAME }}-${{ github.run_id }} |
208 |
| - path: './_artifacts/*.xml' |
209 |
| - |
210 |
| - - name: Export logs |
211 |
| - if: always() |
212 |
| - run: | |
213 |
| - /usr/local/bin/kind export logs --name ${KIND_CLUSTER_NAME} --loglevel=debug ./_artifacts/logs |
214 |
| -
|
215 |
| - - name: Upload logs |
216 |
| - if: always() |
217 |
| - uses: actions/upload-artifact@v2 |
218 |
| - with: |
219 |
| - name: kind-logs-${{ env.JOB_NAME }}-${{ github.run_id }} |
220 |
| - path: ./_artifacts/logs |
| 146 | + # - name: Get Cluster status |
| 147 | + # run: | |
| 148 | + # # wait network is ready |
| 149 | + # sleep 5 |
| 150 | + # /usr/local/bin/kubectl get nodes -o wide |
| 151 | + # /usr/local/bin/kubectl get pods -A |
| 152 | + # /usr/local/bin/kubectl wait --timeout=1m --for=condition=ready pods --namespace=kube-system -l k8s-app=konnectivity-agent |
| 153 | + # /usr/local/bin/kubectl wait --timeout=1m --for=condition=ready pods --namespace=kube-system -l k8s-app=konnectivity-server |
| 154 | + # # smoke test |
| 155 | + # /usr/local/bin/kubectl run test --image httpd:2 |
| 156 | + # /usr/local/bin/kubectl wait --timeout=1m --for=condition=ready pods test |
| 157 | + # /usr/local/bin/kubectl logs test |
| 158 | + |
| 159 | + # - name: Workaround CoreDNS for IPv6 airgapped |
| 160 | + # if: ${{ matrix.ipFamily == 'ipv6' }} |
| 161 | + # run: | |
| 162 | + # # Patch CoreDNS to work in Github CI |
| 163 | + # # 1. Github CI doesn´t offer IPv6 connectivity, so CoreDNS should be configured |
| 164 | + # # to work in an offline environment: |
| 165 | + # # https://github.com/coredns/coredns/issues/2494#issuecomment-457215452 |
| 166 | + # # 2. Github CI adds following domains to resolv.conf search field: |
| 167 | + # # .net. |
| 168 | + # # CoreDNS should handle those domains and answer with NXDOMAIN instead of SERVFAIL |
| 169 | + # # otherwise pods stops trying to resolve the domain. |
| 170 | + # # Get the current config |
| 171 | + # original_coredns=$(/usr/local/bin/kubectl get -oyaml -n=kube-system configmap/coredns) |
| 172 | + # echo "Original CoreDNS config:" |
| 173 | + # echo "${original_coredns}" |
| 174 | + # # Patch it |
| 175 | + # fixed_coredns=$( |
| 176 | + # printf '%s' "${original_coredns}" | sed \ |
| 177 | + # -e 's/^.*kubernetes cluster\.local/& net/' \ |
| 178 | + # -e '/^.*upstream$/d' \ |
| 179 | + # -e '/^.*fallthrough.*$/d' \ |
| 180 | + # -e '/^.*forward . \/etc\/resolv.conf$/d' \ |
| 181 | + # -e '/^.*loop$/d' \ |
| 182 | + # ) |
| 183 | + # echo "Patched CoreDNS config:" |
| 184 | + # echo "${fixed_coredns}" |
| 185 | + # printf '%s' "${fixed_coredns}" | /usr/local/bin/kubectl apply -f - |
| 186 | + |
| 187 | + # - name: Run tests |
| 188 | + # run: | |
| 189 | + # export KUBERNETES_CONFORMANCE_TEST='y' |
| 190 | + # export E2E_REPORT_DIR=${PWD}/_artifacts |
| 191 | + |
| 192 | + # # Run tests |
| 193 | + # /usr/local/bin/ginkgo --nodes=25 \ |
| 194 | + # --focus="\[Conformance\]" \ |
| 195 | + # --skip="Feature|Federation|machinery|PerformanceDNS|DualStack|Disruptive|Serial|Slow|KubeProxy|LoadBalancer|GCE|Netpol|NetworkPolicy|NodeConformance" \ |
| 196 | + # /usr/local/bin/e2e.test \ |
| 197 | + # -- \ |
| 198 | + # --kubeconfig=${PWD}/_artifacts/kubeconfig.conf \ |
| 199 | + # --provider=local \ |
| 200 | + # --dump-logs-on-failure=false \ |
| 201 | + # --report-dir=${E2E_REPORT_DIR} \ |
| 202 | + # --disable-log-dump=true |
| 203 | + |
| 204 | + # - name: Upload Junit Reports |
| 205 | + # if: always() |
| 206 | + # uses: actions/upload-artifact@v2 |
| 207 | + # with: |
| 208 | + # name: kind-junit-${{ env.JOB_NAME }}-${{ github.run_id }} |
| 209 | + # path: './_artifacts/*.xml' |
| 210 | + |
| 211 | + # - name: Export logs |
| 212 | + # if: always() |
| 213 | + # run: | |
| 214 | + # /usr/local/bin/kind export logs --name ${KIND_CLUSTER_NAME} --loglevel=debug ./_artifacts/logs |
| 215 | + |
| 216 | + # - name: Upload logs |
| 217 | + # if: always() |
| 218 | + # uses: actions/upload-artifact@v2 |
| 219 | + # with: |
| 220 | + # name: kind-logs-${{ env.JOB_NAME }}-${{ github.run_id }} |
| 221 | + # path: ./_artifacts/logs |
0 commit comments