-
Notifications
You must be signed in to change notification settings - Fork 25
feat: Add support for rbac resources #797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
robertoriv
wants to merge
1
commit into
cloudquery:main
Choose a base branch
from
robertoriv:add-rbac
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ sources: | |
maintainers: | ||
- name: yevgenypats | ||
email: [email protected] | ||
version: 38.2.0 | ||
version: 38.2.1 | ||
appVersion: 6.20.5 | ||
annotations: | ||
artifacthub.io/license: MPL-2.0 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# cloudquery | ||
|
||
   | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as the above, do remove this code change. |
||
   | ||
|
||
Open source high performance data integration platform designed for security and infrastructure teams. | ||
|
||
|
@@ -52,6 +52,12 @@ Kubernetes: `^1.8.0-0` | |
| nameOverride | string | `""` | Partially override common.names.fullname template (will maintain the release name) | | ||
| nodeSelector | object | `{}` | Optional. Adds the nodeSelector to the admin pod and cronjob. | | ||
| promtail | object | See [values.yaml](./values.yaml) | Promtail sub-chart configuration | | ||
| rbac | object | `{"annotations":{},"apiVersion":"v1","create":false,"labels":{},"name":"cloudquery-read-only"}` | RBAC configuration | | ||
| rbac.annotations | object | `{}` | Additional annotations to be applied to the ClusterRole and ClusterRoleBinding | | ||
| rbac.apiVersion | string | `"v1"` | API version of the ClusterRoleBinding | | ||
| rbac.create | bool | `false` | Create the ClusterRole and ClusterRoleBinding | | ||
| rbac.labels | object | `{}` | Additional labels to be applied to the ClusterRole and ClusterRoleBinding | | ||
| rbac.name | string | `"cloudquery-read-only"` | Name of the ClusterRole and ClusterRoleBinding | | ||
| resources.admin | object | `{"requests":{"cpu":"1000m","memory":"1024Mi"}}` | Optional. Resource requests/ limit for admin pod. | | ||
| resources.cronJob | object | `{"requests":{"cpu":"1000m","memory":"1024Mi"}}` | Optional. Resource requests/ limit for cronJob. | | ||
| schedule | string | `"0 */6 * * *"` | Schedule fetch time Every 6 hours. More information at: https://crontab.guru/#0_0_*_*_* | | ||
|
@@ -66,5 +72,3 @@ Kubernetes: `^1.8.0-0` | |
| volumeMounts | string | `nil` | | | ||
| volumes | string | `nil` | | | ||
|
||
---------------------------------------------- | ||
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0) | ||
Comment on lines
-69
to
-70
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did this get removed? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{{- if .Values.rbac.create }} | ||
apiVersion: rbac.authorization.k8s.io/{{ .Values.rbac.apiVersion }} | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ include "cloudquery.clusterRoleName" . }} | ||
labels: | ||
{{- include "cloudquery.labels" . | nindent 4 }} | ||
{{- with .Values.rbac.labels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .Values.rbac.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
rules: | ||
- apiGroups: | ||
- "*" | ||
resources: | ||
- "*" | ||
verbs: | ||
- get | ||
- list | ||
- nonResourceURLs: | ||
- "*" | ||
verbs: | ||
- get | ||
- list | ||
{{- end }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{{- if .Values.rbac.create }} | ||
apiVersion: rbac.authorization.k8s.io/{{ .Values.rbac.apiVersion }} | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ include "cloudquery.clusterRoleName" . }} | ||
labels: | ||
{{- include "cloudquery.labels" . | nindent 4 }} | ||
{{- with .Values.rbac.labels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .Values.rbac.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ include "cloudquery.clusterRoleName" . }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "cloudquery.serviceAccountName" . }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- end }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version bumps are handled automatically by CI based on the type of commit.
In this case, since the commit is a
feat:
, the minor will be bumped which is correct.Do remove this code change here.