<commit_before>{{- define "vcf_image" -}}
  {{- if contains "DEFINED" $.Values.image_tag -}}
    {{ required "This release should be installed by the deployment pipeline!" "" }}
  {{- else -}}
    {{ $.Values.global.registryAlternateRegion }}/vcf-automation:{{$.Values.image_tag}}
  {{- end -}}
{{- end -}}

{{- define "vcf_environment" }}
- name: AUTOMATION_WORK_DIR
  value: /pulumi/vcf
- name: AUTOMATION_CONFIG_DIR
  value: /pulumi/etc
- name: AUTOMATION_OS_PASSWORD
  valueFrom:
    secretKeyRef:
      name: vcf-secret
      key: os_password
- name: AUTOMATION_OS_USERNAME
  valueFrom:
    secretKeyRef:
      name: vcf-secret
      key: os_username
- name: AUTOMATION_OS_REGION
  value: "{{ .Values.global.region }}"
- name: PULUMI_BACKEND_URL
  value: file:///pulumi/etc
- name: PULUMI_CONFIG_PASSPHRASE
  valueFrom:
    secretKeyRef:
      name: vcf-secret
      key: pulumi_config_passphrase
- name: VCF_ESXI_LICENSE
  valueFrom:
    secretKeyRef:
      name: vcf-secret
      key: esxi_license
- name: VCF_ESXI_LICENSE_MANAGEMENT
  valueFrom:
    secretKeyRef:
      name: vcf-secret
      key: esxi_license_management
{{- if hasKey .Values "esxi_password" }}
- name: VCF_ESXI_PASSWORD
  valueFrom:
    secretKeyRef:
      name: vcf-secret
      key: esxi_password
{{- end }}
- name: VCF_VMWARE_PASSWORD
  valueFrom:
    secretKeyRef:
      name: vcf-secret
      key: vmware_password
{{- end -}}
<commit_msg>[vcf] update env variables<commit_after>{{- define "vcf_image" -}}
  {{- if contains "DEFINED" $.Values.image_tag -}}
    {{ required "This release should be installed by the deployment pipeline!" "" }}
  {{- else -}}
    {{ $.Values.global.registryAlternateRegion }}/vcf-automation:{{$.Values.image_tag}}
  {{- end -}}
{{- end -}}

{{- define "vcf_environment" }}
- name: PULUMI_BACKEND_URL
  value: file:///pulumi/etc
- name: PULUMI_CONFIG_PASSPHRASE
  valueFrom:
    secretKeyRef:
      name: vcf-secret
      key: pulumi_config_passphrase
- name: VCF_OS_USERNAME
  valueFrom:
    secretKeyRef:
      name: vcf-secret
      key: os_username
- name: VCF_OS_PASSWORD
  valueFrom:
    secretKeyRef:
      name: vcf-secret
      key: os_password
- name: VCF_OS_REGION
  value: "{{ .Values.global.region }}"
- name: VCF_CONFIG_DIR
  value: /pulumi/etc
- name: VCF_WORK_DIR
  value: /pulumi/vcf
- name: VCF_ESXI_LICENSE
  valueFrom:
    secretKeyRef:
      name: vcf-secret
      key: esxi_license
- name: VCF_ESXI_LICENSE_MANAGEMENT
  valueFrom:
    secretKeyRef:
      name: vcf-secret
      key: esxi_license_management
- name: VCF_ESXI_PASSWORD
  valueFrom:
    secretKeyRef:
      name: vcf-secret
{{- if hasKey .Values "esxi_password" }}
      key: esxi_password
{{- else }}
      key: vmware_password
{{- end }}
- name: VCF_VMWARE_PASSWORD
  valueFrom:
    secretKeyRef:
      name: vcf-secret
      key: vmware_password
{{- end -}}

{'fraction_non_alphanumeric': 0.1232061603080154, 'fraction_numerical': 0.0, 'mean_word_length': 3.118155619596542, 'pattern_counts': {'":': 0, '<': 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': '1538190', 'n_tokens_mistral': 1049, 'n_tokens_neox': 1047, 'n_words': 210}