-
Notifications
You must be signed in to change notification settings - Fork 32
cisearch changes and add k8s ci search dns #561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: ci-search-k8s | ||
| namespace: prow | ||
| labels: | ||
| app: ci-search-k8s | ||
| spec: | ||
| replicas: 1 # Do not scale up. | ||
| strategy: | ||
| type: Recreate | ||
| selector: | ||
| matchLabels: | ||
| app: ci-search-k8s | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: ci-search-k8s | ||
| spec: | ||
| serviceAccountName: ci-search | ||
| terminationGracePeriodSeconds: 30 | ||
| containers: | ||
| - name: ci-search-k8s | ||
| image: quay.io/powercloud/ci-search:k8s | ||
| ports: | ||
| - containerPort: 8080 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| apiVersion: networking.k8s.io/v1 | ||
| kind: Ingress | ||
| metadata: | ||
| namespace: prow | ||
| name: ci-search-k8s | ||
| annotations: | ||
| kubernetes.io/ingress.class: public-iks-k8s-nginx | ||
| spec: | ||
| rules: | ||
| - host: k8ssearch.ppc64le-cloud.cis.ibm.net | ||
| http: | ||
| paths: | ||
| - path: / | ||
| pathType: Prefix | ||
| backend: | ||
| service: | ||
| name: ci-search-k8s | ||
| port: | ||
| number: 8080 | ||
| tls: | ||
| - hosts: | ||
| - k8ssearch.ppc64le-cloud.cis.ibm.net | ||
| secretName: ppc64le-cloud-cis |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| namespace: prow | ||
| name: ci-search-k8s | ||
| spec: | ||
| selector: | ||
| app: ci-search-k8s | ||
| ports: | ||
| - port: 8080 | ||
| targetPort: 8080 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,12 +2,12 @@ FROM golang | |
| WORKDIR /go/src/github.com/openshift | ||
| RUN git clone https://github.com/openshift/ci-search \ | ||
| && cd ci-search \ | ||
| && grep -rl origin-ci-test . | xargs sed -i 's/origin-ci-test/ppc64le-kubernetes/g' \ | ||
| && grep -rl "OpenShift" . | xargs sed -i 's/OpenShift/Kubernetes-ppc64le/g' \ | ||
| && grep -rl "prow\.ci\.openshift" . | xargs sed -i 's/prow\.ci\.openshift/prow\.ppc64le-cloud/g' \ | ||
| && make build | ||
| && grep -rl test-platform-results . | xargs sed -i 's/test-platform-results/ppc64le-kubernetes/g' \ | ||
| && grep -rl "OpenShift" . | xargs sed -i 's/OpenShift/ppc64le-cloud/g' \ | ||
| && grep -rl "ci\.openshift\.org" . | xargs sed -i 's/ci\.openshift\.org/ppc64le-cloud\.cis\.ibm\.net/g' \ | ||
| && GO_BUILD_PACKAGES=./cmd/search make GO_REQUIRED_MIN_VERSION:= build | ||
|
Comment on lines
+5
to
+8
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should get rid of these crazy seds, e.g: |
||
|
|
||
| FROM quay.io/centos/centos:stream8 | ||
| FROM quay.io/centos/centos:stream9 | ||
| COPY --from=0 /go/src/github.com/openshift/ci-search/search /usr/bin/ | ||
| RUN curl -L https://github.com/BurntSushi/ripgrep/releases/download/12.0.1/ripgrep-12.0.1-x86_64-unknown-linux-musl.tar.gz | \ | ||
| tar xvzf - --wildcards --no-same-owner --strip-components=1 -C /usr/bin '*/rg' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| FROM golang | ||
| WORKDIR /go/src/github.com/openshift | ||
| RUN git clone https://github.com/openshift/ci-search \ | ||
| && cd ci-search \ | ||
| && grep -rl test-platform-results . | xargs sed -i 's/test-platform-results/kubernetes-ci-logs/g' \ | ||
| && grep -rl "OpenShift" . | xargs sed -i 's/OpenShift/Kubernetes-ppc64le/g' \ | ||
| && grep -rl "prow\.ci\.openshift\.org" . | xargs sed -i 's/prow\.ci\.openshift\.org/prow\.k8s\.io/g' \ | ||
| && GO_BUILD_PACKAGES=./cmd/search make GO_REQUIRED_MIN_VERSION:= build | ||
|
|
||
| FROM quay.io/centos/centos:stream9 | ||
| COPY --from=0 /go/src/github.com/openshift/ci-search/search /usr/bin/ | ||
| RUN curl -L https://github.com/BurntSushi/ripgrep/releases/download/12.0.1/ripgrep-12.0.1-x86_64-unknown-linux-musl.tar.gz | \ | ||
| tar xvzf - --wildcards --no-same-owner --strip-components=1 -C /usr/bin '*/rg' | ||
| RUN mkdir /var/lib/ci-search && chown 1000:1000 /var/lib/ci-search && chmod 1777 /var/lib/ci-search | ||
| USER 1000:1000 | ||
| ENTRYPOINT ["search"] | ||
| CMD ["--path=/var/lib/ci-search/", "--deck-uri=https://prow.k8s.io"] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. deck-url can be overridden during the runtime to avoid duplicate images |
||
| EXPOSE 8080 | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to pin above golang version