Comments (4)
Please provide more information and an example helm values of what you would like to see.
from helm-charts.
Example manifest:
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: diun
rules:
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- watch
- list
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: diun
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: diun
subjects:
- kind: ServiceAccount
name: diun
namespace: diun
Helm config for above:
rbac:
main:
enabled: true
clusterRoleLabels: {}
clusterRoleAnnotations: {}
clusterRoleBindingLabels: {}
clusterRoleBindingAnnotations: {}
rules:
apiGroups:
- ''
resources:
- pods
verbs:
- get
- watch
- list
# automatically created from serviceAccountName
# serviceAccountName:
# Add subjects to the ClusterRoleBinding. Includes the above created serviceAccount
# subjects: {}
For reference see TrueCharts library-chart, how this could be done.
from helm-charts.
It was never really a matter of me not knowing how to implement it, but rather a conscious choice not doing so.
The applications that typically rely on this library (even in the k8s-at-home days) never really needed Kubernetes API access, so it didn't really make sense to add an almost 1:1 mapping from values.yaml
to an RBAC manifest file that can also easily be included as a sidecar file if required.
from helm-charts.
I agreed we wouldn't want to support this as it can easily be defined outside the Helm Chart and isn't a very common need to embedded in the library.
from helm-charts.
Related Issues (20)
- common library: Remove additionalContainers key HOT 1
- common library: Remove list-based sidecars / initContainers entries HOT 1
- Add finalizers to meta data HOT 3
- Clarify this repo's purpose? HOT 6
- Preserve order of `initContainers` HOT 1
- Add a JSON schema HOT 5
- Is there documentation on how to convert an "old" k8s-at-home chart to using the new common library maintained in this repo? HOT 1
- When service 'http' is not defined, the service object gets rendered incorrectly HOT 1
- app-template doesn't like the image tag in the form a.b HOT 4
- Support for prometheusRule HOT 1
- Allow service loadbalancer modifier HOT 2
- Rename `ingressClassName` to `className` HOT 2
- Ingress port must be of type Int32 HOT 2
- Support for Argo Rollouts Controller
- Add support for networkpolicy HOT 2
- Multiple Images HOT 5
- Don't sort env variables HOT 2
- Support mulitline stringData secret HOT 2
- expected map[string]interface {}; got bool in _ports.tpl
- UDP/TCP Ingress HOT 1
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 helm-charts.