Skip to content

staging: Disable refresh-savecodenow-statuses-cronjob

Guillaume Samson requested to merge staging_disable_refresh-savecodenow into production

Related to swh/infra/sysadm-environment#5165 (closed)

Depends on !253 (merged)

Helm diff
./swh/helm-diff.sh
[swh] Comparing changes between branches production and staging_disable_refresh-savecodenow (per environment)...
Your branch is up to date with 'origin/production'.
[swh] Generate config in production branch for environment staging, namespace swh...
[swh] Generate config in production branch for environment staging, namespace swh-cassandra...
[swh] Generate config in production branch for environment staging, namespace swh-cassandra-next-version...
Your branch is up to date with 'origin/staging_disable_refresh-savecodenow'.
[swh] Generate config in staging_disable_refresh-savecodenow branch for environment staging...
[swh] Generate config in staging_disable_refresh-savecodenow branch for environment staging...
[swh] Generate config in staging_disable_refresh-savecodenow branch for environment staging...
Your branch is up to date with 'origin/production'.
[swh] Generate config in production branch for environment production, namespace swh...
[swh] Generate config in production branch for environment production, namespace swh-cassandra...
[swh] Generate config in production branch for environment production, namespace swh-cassandra-next-version...
Your branch is up to date with 'origin/staging_disable_refresh-savecodenow'.
[swh] Generate config in staging_disable_refresh-savecodenow branch for environment production...
[swh] Generate config in staging_disable_refresh-savecodenow branch for environment production...
[swh] Generate config in staging_disable_refresh-savecodenow branch for environment production...


------------- diff for environment staging namespace swh -------------

No differences


------------- diff for environment staging namespace swh-cassandra -------------

--- /tmp/swh-chart.swh.Pnb84uxd/staging-swh-cassandra.before	2023-12-01 16:33:36.808175211 +0100
+++ /tmp/swh-chart.swh.Pnb84uxd/staging-swh-cassandra.after	2023-12-01 16:33:37.204182431 +0100
@@ -12936,164 +12936,20 @@
   minReplicas: 1
   maxReplicas: 3
   metrics:
   - type: Resource
     resource:
       name: cpu
       target:
         type: Utilization
         averageUtilization: 50
 ---
-# Source: swh/templates/web/refresh-savecodenow-statuses-cronjob.yaml
-apiVersion: batch/v1
-kind: CronJob
-metadata:
-  name: refresh-savecodenow-statuses-cronjob
-spec:
-  schedule: "*/2 * * * *"
-  concurrencyPolicy: Forbid
-  jobTemplate:
-    spec:
-      template:
-        spec:
-          affinity:
-            nodeAffinity:
-              requiredDuringSchedulingIgnoredDuringExecution:
-                nodeSelectorTerms:
-                - matchExpressions:
-                  - key: swh/web
-                    operator: In
-                    values:
-                    - "true"
-          priorityClassName: swh-cassandra-frontend-rpc-workload
-          
-          initContainers:
-            - name: prepare-web-configuration
-              image: debian:bullseye
-              imagePullPolicy: IfNotPresent
-              command:
-              - /bin/bash
-              args:
-              - -c
-              - eval echo "\"$(</etc/swh/configuration-template/config.yml.template)\"" > /etc/swh/config.yml
-              env:
-                
-                - name: POSTGRESQL_PASSWORD
-                  valueFrom:
-                    secretKeyRef:
-                      name: swh-postgresql-web-secrets
-                      key: postgres-swh-web-password
-                      # 'name' secret must exist & include that ^ key
-                      optional: false
-                
-                - name: DJANGO_SECRET_KEY
-                  valueFrom:
-                    secretKeyRef:
-                      name: swh-webapp-django-secret
-                      key: webapp-django-secret-key
-                      # 'name' secret must exist & include that ^ key
-                      optional: false
-                
-                
-                - name: DEPOSIT_PASSWORD
-                  valueFrom:
-                    secretKeyRef:
-                      name: deposit-secrets
-                      key: password
-                      # 'name' secret must exist & include that ^ key
-                      optional: false
-                - name: DEPOSIT_USERNAME
-                  valueFrom:
-                    secretKeyRef:
-                      name: deposit-secrets
-                      key: username
-                      # 'name' secret must exist & include that ^ key
-                      optional: false
-                
-                
-                - name: GIVE_PRIVATE_TOKEN
-                  valueFrom:
-                    secretKeyRef:
-                      name: web-give-secrets
-                      key: private-token
-                      # 'name' secret must exist & include that ^ key
-                      optional: false
-                - name: GIVE_PUBLIC_KEY
-                  valueFrom:
-                    secretKeyRef:
-                      name: web-give-secrets
-                      key: public-key
-                      # 'name' secret must exist & include that ^ key
-                      optional: false
-                
-                - name: SWH_SENTRY_DSN
-                  valueFrom:
-                    secretKeyRef:
-                      name: common-secrets
-                      key: web-sentry-dsn
-                      # 'name' secret should exist & include key
-                      # if the setting doesn't exist, sentry pushes will be disabled
-                      optional: true
-                
-              volumeMounts:
-              - name: configuration
-                mountPath: /etc/swh
-              - name: web-configuration-template
-                mountPath: /etc/swh/configuration-template
-          containers:
-            - name: refresh-savecodenow-statuses
-              resources:
-                requests:
-                  memory: 512Mi
-                  cpu: 500m
-              image: container-registry.softwareheritage.org/swh/infra/swh-apps/web:20231127.1
-              command:
-              - /opt/swh/entrypoint.sh
-              args:
-              - refresh
-              env:
-                - name: STATSD_HOST
-                  value: prometheus-statsd-exporter
-                - name: STATSD_PORT
-                  value: "9125"
-                - name: SWH_CONFIG_FILENAME
-                  value: /etc/swh/config.yml
-                - name: LOG_LEVEL
-                  value: INFO
-                - name: SWH_SENTRY_ENVIRONMENT
-                  value: staging
-                - name: SWH_MAIN_PACKAGE
-                  value: swh.web
-                - name: SWH_SENTRY_DSN
-                  valueFrom:
-                    secretKeyRef:
-                      name: common-secrets
-                      key: web-sentry-dsn
-                      # if the setting doesn't exist, sentry issue pushes will be disabled
-                      optional: false
-                - name: SWH_SENTRY_DISABLE_LOGGING_EVENTS
-                  value: "true"
-              imagePullPolicy: IfNotPresent
-              volumeMounts:
-              - name: configuration
-                mountPath: /etc/swh
-          volumes:
-          - name: configuration
-            emptyDir: {}
-          - name: web-configuration-template
-            configMap:
-              name: web-configuration-template
-              items:
-              - key: "config.yml.template"
-                path: "config.yml.template"
-          restartPolicy: OnFailure
----
 # Source: swh/templates/web/sync-mailmaps-cronjob.yaml
 apiVersion: batch/v1
 kind: CronJob
 metadata:
   name: sync-mailmaps-cronjob
 spec:
   schedule: "15 * * * *"
   concurrencyPolicy: Forbid
   jobTemplate:
     spec:


------------- diff for environment staging namespace swh-cassandra-next-version -------------

No differences


------------- diff for environment production namespace swh -------------

No differences


------------- diff for environment production namespace swh-cassandra -------------

No differences
Edited by Vincent Sellier

Merge request reports