I'm trying to run the following kubectl command: kubectl apply -n dev-governance --debug…
- User
I'm trying to run the following kubectl command:
kubectl apply -n dev-governance --debug --dry-run -f upsertConfigurationJob-temp.yaml -o json
but I'm getting the following error: error parsing upsertConfigurationJob-temp.yaml: error converting YAML to JSON: yaml: line 14: mapping values are not allowed in this context
this is the content of the yaml file:
apiVersion: v1 kind: ConfigMap metadata: name: "acmecorp-upsert-configuration-cm" data: configuration.yml: |+ config: auditors: bankb: O=BankB, L=London, C=GB sbgas: O=Swiss Better Gold Association, L=Tannay, C=CH custodians: adsss: O=Advanced Streaming for Sustainable Sources SpA, L=Lampa, C=CL arghe: O=Argor-Heraeus SA, L=Mendrisio, C=CH aurmx: O=AurumX GmbH, L=Munich, C=DE banka: O=BankA, L=London, C=GB bkaha: O=BankAHSA, L=Zurich, C=CH
apiVersion: batch/v1 kind: Job metadata: name: "acmecorp-upsert-configuration-1723716147" spec: backoffLimit: 3 template: spec: imagePullSecrets: - name: regcreds containers: - name: upsert-configuration image: registry.axedras.dev/ax-governance-service:9.0.0 imagePullPolicy: Always
Assistant
Error Analysis
The error message indicates that there is an issue with the YAML file
upsertConfigurationJob-temp.yaml. Specifically, it mentions that "mapping values are not allowed in this context" at line 14.Identifying the Issue
Upon reviewing the YAML file, we can see that line 14 corresponds to the
datablock under the definition. The issue seems to be with the way the value is defined.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.