Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

deploy-sourcegraph: remove CACHE_DIR from frontend #38934

@keegancsmith

Description

@keegancsmith

We removed the need for frontend to have CACHE_DIR set a long time ago, but we never removed it from our resource definitions.

Here is some output from prod and dogfood clusters proving we don't even create this dir (which we would do on the first use)

# sourcegraph.comkubectl get po -o name | grep sourcegraph-frontend | xargs -P0 -IPOD kubectl exec -c frontend POD -- sh -c 'du -hs ${CACHE_DIR}'
du: /mnt/cache/sourcegraph-frontend-5c4bd7d959-b2m9t: No such file or directory
command terminated with exit code 1
du: /mnt/cache/sourcegraph-frontend-5c4bd7d959-27hvx: No such file or directory
command terminated with exit code 1
du: /mnt/cache/sourcegraph-frontend-internal-5d5fdc5787-zgvwp: No such file or directory
du: /mnt/cache/sourcegraph-frontend-5c4bd7d959-8x4mt: No such file or directory
command terminated with exit code 1
command terminated with exit code 1
du: /mnt/cache/sourcegraph-frontend-5c4bd7d959-qv4dg: No such file or directory
command terminated with exit code 1
du: /mnt/cache/sourcegraph-frontend-internal-5d5fdc5787-x9dh8: No such file or directory
command terminated with exit code 1
# dogfoodkubectl get po -o name | grep sourcegraph-frontend | xargs -P0 -IPOD kubectl exec -c frontend POD -- sh -c 'du -hs ${CACHE_DIR}'
du: /mnt/cache/sourcegraph-frontend-7cbfcdf749-lhbdx: No such file or directory
du: /mnt/cache/sourcegraph-frontend-7cbfcdf749-v6t6p: No such file or directory
command terminated with exit code 1
command terminated with exit code 1
du: /mnt/cache/sourcegraph-frontend-7cbfcdf749-bw4cd: No such file or directory
command terminated with exit code 1

Note: this will likely require the removal in a lot of deploy- repos. Additionally we still have some references in code for frontend to read CACHE_DIR. However, there are no writers in pratice. That should be removed as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    debtTechnical debt.deploy-sourcegraphIssues that affect sourcegraph/deploy-sourcegraphteam/deliveryDelivery team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions