- decode k8s secret
kubectl get secret watchmen-jenkins -o jsonpath --template '{.data.jenkins-admin-password}' -n watchmen | base64 --decode
kubectl get secret watchmen-jenkins -o jsonpath --template '{.data.jenkins-admin-password}' -n watchmen | base64 --decode
{
result: { n: 1, nModified: 1, ok: 1 },
connection: {
domain: null,
_events: { error: [Object], close: [Object], timeout: [Object], parseError: [Object] },
_eventsCount: 4,
_maxListeners: undefined,
options: {
host: 'localhost',
package com.x.y.model; | |
import java.io.IOException; | |
import java.util.Date; | |
import junit.framework.Assert; | |
import net.sf.json.JSONObject; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; |