...

Text file src/edge-infra.dev/third_party/k8s/coredns/version.bzl

Documentation: edge-infra.dev/third_party/k8s/coredns

     1"""
     2Name: CoreDNS
     3Description: DNS server
     4Repo: https://github.com/coredns/coredns
     5Kubernetes Repo: https://github.com/kubernetes/kubernetes
     6Release Cadence: A new version is released approximately every six months. Take security updates.
     7
     8Upgrade Strategy: Upgrade to every patch version.
     9Upgrade Steps:
    101. Set the `TAG` variable to the latest coredns release
    112. Set the digest for the coredns image. This can be obtained via "crane digest --platform=linux/amd64 index.docker.io/coredns/coredns:${VERSION}". Make sure the VERSION used in this command is not prefixed with "v"
    123. Update Kubernetes version
    134. Get kubernetes checksum via "wget https://github.com/kubernetes/kubernetes/archive/refs/tags/v${K8S_VERSION}.tar.gz && sha256sum v${K8S_VERSION}.tar.gz && rm v${K8S_VERSION}.tar.gz"
    145. Run `just third_party/k8s/coredns/update`
    15"""
    16
    17load("//hack/build/rules/container:third_party_images.bzl", "third_party_container_dep")
    18
    19TAG = "v1.12.0"
    20DIGEST = "sha256:2324f485c8db937628a18c293d946327f3a7229b9f77213e8f2256f0b616a4ee"
    21REGISTRY = "index.docker.io"
    22REPO = "coredns/coredns"
    23DESTINATION_REPO = "registry.k8s.io/coredns"
    24
    25def coredns_images():
    26    third_party_container_dep(
    27        name = "coredns",
    28        tag = TAG,
    29        digest = DIGEST,
    30        repository = REPO,
    31        destination_repo = DESTINATION_REPO,
    32        registry = REGISTRY,
    33    )

View as plain text