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

Solution

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

Secret

kind: Secret
apiVersion: v1
metadata:
name: config-parameters
namespace: test
data:
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 https://mentorcruise.com/mentor/abhishekkoserwal/

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” ?

image

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 https://mentorcruise.com/mentor/abhishekkoserwal/

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?