From dafaf93d5057add457a54bfd7ffbbaf5c7d4b24e Mon Sep 17 00:00:00 2001 From: Bas Date: Fri, 18 Aug 2023 10:49:22 +0200 Subject: [PATCH] examples/k8s-cronjob.yaml: fix job naming Fixes validation errors upon applying the k8s manifest: ``` The CronJob "FediFetcher" is invalid: * metadata.name: Invalid value: "FediFetcher": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*') * spec.jobTemplate.spec.template.spec.containers[0].name: Invalid value: "FediFetcher": a lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?') ``` --- examples/k8s-cronjob.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/k8s-cronjob.yaml b/examples/k8s-cronjob.yaml index da9035c..c98ac50 100644 --- a/examples/k8s-cronjob.yaml +++ b/examples/k8s-cronjob.yaml @@ -14,7 +14,7 @@ spec: apiVersion: batch/v1 kind: CronJob metadata: - name: FediFetcher + name: fedifetcher spec: # Run every 2 hours schedule: "0 */2 * * *" @@ -30,7 +30,7 @@ spec: persistentVolumeClaim: claimName: fedifetcher-pvc containers: - - name: FediFetcher + - name: fedifetcher image: ghcr.io/nanos/fedifetcher:latest args: - --server=your.server.social