# Selector-match overlay for paperless-ngx (Gitea #101). # # Its one job: make the consume CronJob render, so that the required podAffinity # it carries is actually held against the StatefulSet's pod labels. The template # sits behind smbConnection.enabled, false in the chart defaults and in # ci/paperless-ngx/test-values.yaml, so without this overlay the affinity term # exists in the repository and in no render - and the test would pass over it. # # What it guards: the term selects the StatefulSet pod by a label written in # ANOTHER template (paperless-server.sfs.yaml). Renaming that label leaves both # files rendering perfectly while the mover can never be scheduled again, one # Pending pod per schedule, nothing in the render to show for it. # # Kept separate from ci/yaml-scalar/paperless-ngx.yaml although both switch SMB # on: that one feeds the CronJob a hostile SCHEDULE and hostile env values for a # different test, and folding the two would make each test's failure depend on # the other's fixture. smbConnection: enabled: true server: "//smb.ci.local/scans" secrets: # Satisfies the required() behind the SMB PersistentVolume's # nodeStageSecretRef. Nothing is mounted in a render. smbConnectionSecretRef: op://ci/paperless-smb