Error: error parsing template {{.data.”key-x”}}, template: output:1: bad character U+002D ‘-’


  • namespace: test
  • name of the secret: `config-parameters`


kind: Secret
apiVersion: v1
name: config-parameters
namespace: test
test-id: dGVzdC12YWx1ZQ==
type: Opaque
export NAMESPACE=testexport NAME=config-parametersoc get secrets/$NAME -n $NAMESPACE —-template=’{{index .data "test-id"}}’|base64 -d




#redhatter #opensource #developer #kubernetes #keycloak #golang #openshift #quarkus #spring

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Top 5 Software Development Tools

Working with Remote Teams: How to Do it Right

Unity/C# Challenge 58: Character Animation Setup.

Deployment of NextJS application using GitHub action to Azure

I’m software engineer

Visual Analytics Primer Part 3: Local Databases

#Stripe API / What is Subscription Schedule “end_behaviour” ?


2|3Bond Single Side Staking

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abhishek koserwal

Abhishek koserwal

#redhatter #opensource #developer #kubernetes #keycloak #golang #openshift #quarkus #spring

More from Medium

Kubernetes NFS encrypted communication: Kubernetes pod applications (as NFS client) and Linux based…

Git source code management for Oracle Integration Artifacts using VB Studio

When to use Kubernetes?