<commit_before># ConfigMap
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: bits
data:
  bits-config-key: |
    logging:
      level: debug
    private_endpoint: "https://bits.{{ .Release.Namespace }}.svc.cluster.local"
    {{- if .Values.ingress.use }}
    public_endpoint: "https://registry.{{ .Values.ingress.endpoint }}:443"
    {{- else if .Values.services.loadbalanced }}
    public_endpoint: "https://registry.{{ .Values.env.DOMAIN }}:6666"
    {{- else }}
    public_endpoint: "https://bits.{{ index .Values.kube.external_ips 0 }}.nip.io"
    {{- end }}
    {{- if .Values.ingress.use }}
    registry_endpoint: "https://registry.{{ .Values.ingress.endpoint }}"
    {{- else if .Values.services.loadbalanced }}
    registry_endpoint: "https://registry.{{ .Values.env.DOMAIN }}"
    {{- else }}
    registry_endpoint: "https://registry.{{ index .Values.kube.external_ips 0 }}.nip.io"
    {{- end }}
    cert_file: /workspace/jobs/bits-service/certs/tls.crt
    key_file: /workspace/jobs/bits-service/certs/tls.key
    port: 6666
    enable_http: true
    http_port: 8888
    secret:  {{ .Values.secrets.BITS_SERVICE_SECRET }}
    skip_cert_verify: true
    max_body_size: 2M
    signing_users:
      - username: admin
        password:  {{ .Values.secrets.BITS_SERVICE_SIGNING_USER_PASSWORD }}
    app_stash_config:
      maximum_size: 512M
      minimum_size: 64K
    {{- $hasBitsBlobstore := false }}
    {{- if .Values.bits }}
      {{- if.Values.bits.blobstore_config }}
        {{- $hasBitsBlobstore = true }}
      {{- end }}
    {{- end }}
    {{- if $hasBitsBlobstore }}
    buildpacks: {{ .Values.bits.blobstore_config.buildpacks | toJson }}
    droplets: {{ .Values.bits.blobstore_config.droplets | toJson }}
    packages: {{ .Values.bits.blobstore_config.packages | toJson }}
    app_stash: {{ .Values.bits.blobstore_config.app_stash | toJson }}
    {{- else }}
    buildpacks:
      blobstore_type: webdav
      webdav_config: &webdav_config
        directory_key: cc-buildpacks
        private_endpoint: https://{{ .Values.blobstore.serviceName }}.{{ .Release.Namespace }}.svc.cluster.local:4443
        {{- if .Values.ingress.use }}
        public_endpoint: https://blobstore.{{ .Values.ingress.endpoint }}
        {{- else if .Values.services.loadbalanced }}
        public_endpoint: https://blobstore.{{ .Values.env.DOMAIN }}
        {{- else }}
        public_endpoint: https://blobstore.{{ index .Values.kube.external_ips 0 }}.nip.io
        {{- end }}
        username: {{ .Values.blobstore.userName }}
        password: {{ .Values.secrets.BLOBSTORE_PASSWORD  }}
        # TODO: provide proper cert file here
        ca_cert_path: /workspace/jobs/bits-service/certs/tls.crt
        # TODO: remove this skip, when we have propert cert file above
        skip_cert_verify: true
    droplets:
      blobstore_type: webdav
      webdav_config:
        <<: *webdav_config
        directory_key: cc-droplets
    packages:
      blobstore_type: webdav
      webdav_config:
        <<: *webdav_config
        directory_key: cc-packages
    app_stash:<commit_msg>Make the file name of certificates configurable through Values<commit_after># ConfigMap
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: bits
data:
  bits-config-key: |
    logging:
      level: debug
    private_endpoint: "https://bits.{{ .Release.Namespace }}.svc.cluster.local"
    {{- if .Values.ingress.use }}
    public_endpoint: "https://registry.{{ .Values.ingress.endpoint }}:443"
    {{- else if .Values.services.loadbalanced }}
    public_endpoint: "https://registry.{{ .Values.env.DOMAIN }}:6666"
    {{- else }}
    public_endpoint: "https://bits.{{ index .Values.kube.external_ips 0 }}.nip.io"
    {{- end }}
    {{- if .Values.ingress.use }}
    registry_endpoint: "https://registry.{{ .Values.ingress.endpoint }}"
    {{- else if .Values.services.loadbalanced }}
    registry_endpoint: "https://registry.{{ .Values.env.DOMAIN }}"
    {{- else }}
    registry_endpoint: "https://registry.{{ index .Values.kube.external_ips 0 }}.nip.io"
    {{- end }}
    cert_file: /workspace/jobs/bits-service/certs/{{ if index .Values "tls_cert_name" }}{{ .Values.tls_cert_name }}{{ else }}{{ "tls.crt" }}{{ end }}
    key_file: /workspace/jobs/bits-service/certs/{{ if index .Values "tls_key_name" }}{{ .Values.tls_key_name }}{{ else }}{{ "tls.key" }}{{ end }}
    port: 6666
    enable_http: true
    http_port: 8888
    secret:  {{ .Values.secrets.BITS_SERVICE_SECRET }}
    skip_cert_verify: true
    max_body_size: 2M
    signing_users:
      - username: admin
        password:  {{ .Values.secrets.BITS_SERVICE_SIGNING_USER_PASSWORD }}
    app_stash_config:
      maximum_size: 512M
      minimum_size: 64K
    {{- $hasBitsBlobstore := false }}
    {{- if .Values.bits }}
      {{- if.Values.bits.blobstore_config }}
        {{- $hasBitsBlobstore = true }}
      {{- end }}
    {{- end }}
    {{- if $hasBitsBlobstore }}
    buildpacks: {{ .Values.bits.blobstore_config.buildpacks | toJson }}
    droplets: {{ .Values.bits.blobstore_config.droplets | toJson }}
    packages: {{ .Values.bits.blobstore_config.packages | toJson }}
    app_stash: {{ .Values.bits.blobstore_config.app_stash | toJson }}
    {{- else }}
    buildpacks:
      blobstore_type: webdav
      webdav_config: &webdav_config
        directory_key: cc-buildpacks
        private_endpoint: https://{{ .Values.blobstore.serviceName }}.{{ .Release.Namespace }}.svc.cluster.local:4443
        {{- if .Values.ingress.use }}
        public_endpoint: https://blobstore.{{ .Values.ingress.endpoint }}
        {{- else if .Values.services.loadbalanced }}
        public_endpoint: https://blobstore.{{ .Values.env.DOMAIN }}
        {{- else }}
        public_endpoint: https://blobstore.{{ index .Values.kube.external_ips 0 }}.nip.io
        {{- end }}
        username: {{ .Values.blobstore.userName }}
        password: {{ .Values.secrets.BLOBSTORE_PASSWORD  }}
        # TODO: provide proper cert file here
        ca_cert_path: /workspace/jobs/bits-service/certs/{{ if index .Values "tls_ca_name" }}{{ .Values.tls_ca_name }}{{ else }}{{ "tls.crt" }}{{ end }}
        # TODO: remove this skip, when we have propert cert file above
        skip_cert_verify: true
    droplets:
      blobstore_type: webdav
      webdav_config:
        <<: *webdav_config
        directory_key: cc-droplets
    packages:
      blobstore_type: webdav
      webdav_config:
        <<: *webdav_config
        directory_key: cc-packages
    app_stash:
{'fraction_non_alphanumeric': 0.1515805705474171, 'fraction_numerical': 0.008943716268311488, 'mean_word_length': 2.7556456282570934, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, 'https://': 22, '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': '640254', 'n_tokens_mistral': 2213, 'n_tokens_neox': 2124, 'n_words': 389}