-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from adberger/master
[vcluster]: Add audit feature to apiserver
- Loading branch information
Showing
6 changed files
with
83 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -53,20 +53,3 @@ jobs: | |
- name: Run chart-testing (lint) | ||
run: ct lint --config ct.yaml --lint-conf lintconf.yaml | ||
if: steps.list-changed.outputs.changed == 'true' | ||
|
||
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
if: steps.list-changed.outputs.changed == 'true' | ||
#with: | ||
# kubectl_version: v1.22.0 | ||
|
||
# Install Dependencies | ||
- name: Install Required dependencies | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: | | ||
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.yaml | ||
kubectl create -f https://github.com/prometheus-operator/prometheus-operator/releases/download/v0.58.0/bundle.yaml | ||
- name: Run chart-testing (install) | ||
run: ct install --config ct.yaml | ||
if: steps.list-changed.outputs.changed == 'true' |
This file contains 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 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 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
18 changes: 18 additions & 0 deletions
18
charts/vcluster/templates/components/kubernetes/apiserver/policy.yaml
This file contains 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,18 @@ | ||
{{- if (include "kubernetes.enabled" $) -}} | ||
{{- $kubernetes := $.Values.kubernetes -}} | ||
{{- if and $kubernetes.apiServer.enabled $kubernetes.apiServer.audit.enabled -}} | ||
{{- $fullName := include "kubernetes.fullname" . -}} | ||
{{- $component_name := "apiserver" -}} | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ $fullName }}-audit-policy | ||
labels: {{- include "kubernetes.labels" $ | nindent 4 }} | ||
{{ include "pkg.common.labels.component" $ }}: {{ $component_name }} | ||
namespace: {{ $.Release.Namespace }} | ||
data: | ||
policy.yaml: | | ||
{{- $kubernetes.apiServer.audit.policy | nindent 4 }} | ||
{{- end -}} | ||
{{- end -}} |
This file contains 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