<commit_before>When passed via `helm upgrade --set`, the image tag is misinterpreted as a float64. So special care is needed to render it correctly.

{{- define "castellum_image" -}}
  {{- if typeIs "string" $.Values.castellum.image_tag -}}
    {{ required "This release should be installed by the deployment pipeline!" "" }}
  {{- else -}}
    {{- if typeIs "float64" .Values.castellum.image_tag -}}
      {{$.Values.castellum.image}}:{{$.Values.castellum.image_tag | printf "%0.f"}}
    {{- else -}}
      {{$.Values.castellum.image}}:{{$.Values.castellum.image_tag}}
    {{- end -}}
  {{- end -}}
{{- end -}}

{{- define "castellum_common_envvars" }}
- name: CASTELLUM_DEBUG
  value: "false"
- name: CASTELLUM_ASSET_MANAGERS
  value: "nfs-shares,project-quota"
- name: CASTELLUM_DB_URI
  value: "postgres://postgres:{{ .Values.postgresql.postgresPassword }}@castellum-postgresql.{{ .Release.Namespace }}.svc/castellum?sslmode=disable"
- name: CASTELLUM_HTTP_LISTEN_ADDRESS
  value: ":8080"
- name: CASTELLUM_NFS_PROMETHEUS_URL
  value: "http://prometheus-infra-collector.infra-monitoring.svc:9090"
- name: CASTELLUM_OSLO_POLICY_PATH
  value: /etc/castellum/policy.json
- name: CASTELLUM_SENTRY_DSN
  valueFrom: { secretKeyRef: { name: sentry, key: castellum.DSN.public } }
- name: CASTELLUM_RABBITMQ_URI
  value: "{{ .Values.castellum.rabbitmq.uri }}"
- name: CASTELLUM_RABBITMQ_QUEUE_NAME
  value: "{{ .Values.castellum.rabbitmq.queue_name }}"
- name: OS_AUTH_URL
  value: "http://keystone.{{ .Values.global.keystoneNamespace }}.svc.kubernetes.{{ .Values.global.region }}.{{ .Values.global.tld }}:5000/v3"
- name: OS_AUTH_VERSION
  value: "3"
- name: OS_IDENTITY_API_VERSION
  value: "3"<commit_msg>set CASTELLUM_LOG_SCRAPES=true<commit_after>When passed via `helm upgrade --set`, the image tag is misinterpreted as a float64. So special care is needed to render it correctly.

{{- define "castellum_image" -}}
  {{- if typeIs "string" $.Values.castellum.image_tag -}}
    {{ required "This release should be installed by the deployment pipeline!" "" }}
  {{- else -}}
    {{- if typeIs "float64" .Values.castellum.image_tag -}}
      {{$.Values.castellum.image}}:{{$.Values.castellum.image_tag | printf "%0.f"}}
    {{- else -}}
      {{$.Values.castellum.image}}:{{$.Values.castellum.image_tag}}
    {{- end -}}
  {{- end -}}
{{- end -}}

{{- define "castellum_common_envvars" }}
- name: CASTELLUM_DEBUG
  value: "false"
- name: CASTELLUM_ASSET_MANAGERS
  value: "nfs-shares,project-quota"
- name: CASTELLUM_DB_URI
  value: "postgres://postgres:{{ .Values.postgresql.postgresPassword }}@castellum-postgresql.{{ .Release.Namespace }}.svc/castellum?sslmode=disable"
- name: CASTELLUM_HTTP_LISTEN_ADDRESS
  value: ":8080"
- name: CASTELLUM_LOG_SCRAPES
  value: "true"
- name: CASTELLUM_NFS_PROMETHEUS_URL
  value: "http://prometheus-infra-collector.infra-monitoring.svc:9090"
- name: CASTELLUM_OSLO_POLICY_PATH
  value: /etc/castellum/policy.json
- name: CASTELLUM_SENTRY_DSN
  valueFrom: { secretKeyRef: { name: sentry, key: castellum.DSN.public } }
- name: CASTELLUM_RABBITMQ_URI
  value: "{{ .Values.castellum.rabbitmq.uri }}"
- name: CASTELLUM_RABBITMQ_QUEUE_NAME
  value: "{{ .Values.castellum.rabbitmq.queue_name }}"
- name: OS_AUTH_URL
  value: "http://keystone.{{ .Values.global.keystoneNamespace }}.svc.kubernetes.{{ .Values.global.region }}.{{ .Values.global.tld }}:5000/v3"
- name: OS_AUTH_VERSION
  value: "3"
- name: OS_IDENTITY_API_VERSION
  value: "3"
{'fraction_non_alphanumeric': 0.163159411934275, 'fraction_numerical': 0.01153070049005477, 'mean_word_length': 4.338461538461538, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2259442', 'n_tokens_mistral': 1354, 'n_tokens_neox': 1315, 'n_words': 234}