Comments (3)
Apologies for the late response.
I'm hesitant to add additional complex features that are configurable using annotations (in fact, I'd prefer phasing out annotation support entirely in favour of using CRs).
Maybe we could extend the CR definition to allow templated values? Maybe something like this:
apiVersion: "secretgenerator.mittwald.de/v1alpha1"
kind: "StringSecret"
metadata:
name: "example-pw"
namespace: "default"
spec:
forceRegenerate: false
data:
username: "testuser"
fields:
- fieldName: "postgresPassword"
encoding: "hex"
length: "15"
templateFields:
- fieldName: dbconfig
template: |
database:
name: psycopg2
args:
user: synapse_user
password: {{ .data.dbconfig }}
WDYT? Anyway, PRs are always welcome. 🙂
from kubernetes-secret-generator.
There has not been any activity to this issue in the last 30 days. It will automatically be closed after 7 more days. Remove the stale
label to prevent this.
from kubernetes-secret-generator.
I'm also in favor for CR >> annotations. The template looks great, unfortunately my go skills are not really existing :-(
In regards to the template, I think you meant to refer {{ .data.postgresPassword }}
, didn't you?
from kubernetes-secret-generator.
Related Issues (20)
- Backwards compatibility broken because of CRDs HOT 2
- Option to exclude characters from generated secrets HOT 4
- Allow passing custom annotations to CR-generated secrets HOT 1
- Cut a release HOT 3
- The role is missing permissions to access the CRD HOT 1
- The secrets are not generated on Raspberry PI cluster HOT 1
- Ability to specify the kubernetes secret type HOT 1
- ARM64 Image HOT 8
- Documentation of fieldName and add encoding to Values.yaml for CRD Secret String instantiation HOT 1
- Pod startup failure HOT 4
- Go Versioning
- Permissions for OwnerReferencesPermissionEnforcement plugin
- Allow arbitrary labels & annotaitons for Secrets generated from custom resources HOT 1
- Add the option to opt out of service account token automounting HOT 1
- Feature Request: Enhancing SSHKeyPair Generation with Customizable Algorithms and Options HOT 1
- Allow Customization of ssh-privatekey and ssh-publickey for SSHKeyPair HOT 3
- Secrets out of sync HOT 2
- Periodic secret regeneration
- modify liveness probes from values.yaml
- Is this project still in active development? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubernetes-secret-generator.