Skip to content
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

Revert "templates/gateway: use appsre's envoyproxy image" #21

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Gateway for the image builder community service.

To run envoy:
```
docker run --net=host -v $PWD/example:/app -it envoyproxy/envoy:distroless-v1.29-latest -c /app/config.yaml
docker build -t envoy-gateway -f ./distribution/Dockerfile .
docker run --net=host -v $PWD/example:/app -it envoy-gateway envoy -c /app/config.yaml
```

To try it out:
Expand Down
5 changes: 5 additions & 0 deletions distribution/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ ENV GOFLAGS=-mod=vendor
RUN go build -o oidc-authorizer /oidc-authorizer/cmd/oidc-authorizer

FROM quay.io/fedora/fedora-minimal:latest
RUN microdnf --nodocs upgrade -y
RUN rpm --import 'https://rpm.dl.getenvoy.io/public/gpg.CF716AF503183491.key'
RUN curl -sL 'https://rpm.dl.getenvoy.io/public/config.rpm.txt?distro=el&codename=9' > /etc/yum.repos.d/envoy.repo
RUN microdnf install -y getenvoy-envoy
RUN microdnf clean all
COPY --from=builder /oidc-authorizer/oidc-authorizer /oidc-authorizer
1 change: 0 additions & 1 deletion templates/.kube-linter-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ checks:
exclude:
- "no-read-only-root-fs"
- "run-as-non-root"
- "latest-tag"
19 changes: 6 additions & 13 deletions templates/gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ objects:
topologyKey: kubernetes.io/hostname
containers:
- name: community-gateway
image: "${ENVOYPROXY_IMAGE_NAME}:${ENVOYPROXY_IMAGE_TAG}"
image: "${IMAGE_NAME}:${IMAGE_TAG}"
command:
- /usr/bin/envoy
- --config-path
Expand Down Expand Up @@ -240,7 +240,7 @@ objects:
- name: sockets
mountPath: /sockets
- name: oidc-authorizer
image: "${OIDC_AUTHORIZER_IMAGE_NAME}:${IMAGE_TAG}"
image: "${IMAGE_NAME}:${IMAGE_TAG}"
command:
- /oidc-authorizer
ports:
Expand Down Expand Up @@ -324,20 +324,13 @@ objects:
protocol: TCP

parameters:
- description: oidc authorizer image name
name: OIDC_AUTHORIZER_IMAGE_NAME
value: quay.io/cloudservices/oidc-authorizer
- description: community-gateway image name
name: IMAGE_NAME
value: quay.io/cloudservices/community-gateway
required: true
- description: oidc authorizer tag, will be set by the deployment pipeline
- description: community-gateway tag, will be set by the deployment pipeline
name: IMAGE_TAG
required: true
- description: envoy proxy image name
name: ENVOYPROXY_IMAGE_NAME
value: quay.io/app-sre/envoyproxy
required: true
- description: envoy proxy tag
name: ENVOYPROXY_IMAGE_TAG
value: "latest"
- description: number of pods to spin up, minimum 3
name: REPLICAS
value: "3"
Expand Down
2 changes: 1 addition & 1 deletion tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# AppSRE runs this script to build the container and push it to Quay.
set -exv

IMAGE_NAME="quay.io/cloudservices/oidc-authorizer"
IMAGE_NAME="quay.io/cloudservices/community-gateway"
IMAGE_TAG=$(git rev-parse --short=7 HEAD)

if [[ -z "$QUAY_USER" || -z "$QUAY_TOKEN" ]]; then
Expand Down
Loading