title: How to create kubernetes secret using json file content and stringData field
body: <p>I am trying to create a secret using JSON file content and stringData like below but giving some error which I am not able to identify after multiple tries.</p>
  <pre><code>apiVersion: v1
  kind: Secret
  metadata:
    name: image-secret
    type: Opaque
  stringData:
     creds: _json_key:{&quot;type&quot;: &quot;service_account&quot;,&quot;project_id&quot;: &quot;xyz&quot;,&quot;private_key_id&quot;: &quot;9b0eb25b41ae9161123dbfh56mgj&quot;,&quot;private_key&quot;: &quot;-----BEGIN PRIVATE KEY-----\nmch0iiFz1DAdM8vQTXiETI+3gvSnknXQ0M5WmkA1dkiJgyhe3r8tpeb42jo4FCd\nbHLf9eeIql8TKEm9BAk+qnQZq8FykWEnQLuU7APrFNZ0qtYP8t1Y7HSGpdVmmCyK\nykJAGznKaiEf9SJiNy8HqJy1kOhajn1fL3CdcShWcY793qRLyeFyrIZ\n6lfnjSE9IW5iEOBmxEpXf5Q=\n-----END PRIVATE KEY-----\n&quot;,&quot;client_email&quot;: &quot;argocd-image-updater@xyz.iam.&quot;,&quot;client_id&quot;: &quot;113522222222222222222222222&quot;,&quot;auth_uri&quot;: &quot;https://accounts.google.com,&quot;token_uri&quot;: &quot;https://oauth.googleap,&quot;auth_provider_x509_cert_url&quot;: &quot;https://www.googleapis.com/oauth/v1/certs&quot;,&quot;client_x509_cert_url&quot;: &quot;https://www.googleapis.com/v1&quot;}
  </code></pre>
  <p>username as <strong>_json_key</strong> and password is <strong>&quot;json file content&quot;</strong></p>
  <p>The error which I am getting is as below:-</p>
  <pre><code>error: error parsing argocd-image-updater-secret.yaml: error converting YAML to JSON: yaml: line 7: mapping values are not allowed in this context
  </code></pre>