Skip to content
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

Add support for extra manifests #188

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions wiz-kubernetes-integration/templates/extra-manifests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{ range .Values.global.extraObjects }}
---
{{ if typeIs "string" . }}
{{- tpl . $ }}
{{- else }}
{{- tpl (toYaml .) $ }}
{{- end }}
{{ end }}
26 changes: 22 additions & 4 deletions wiz-kubernetes-integration/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ global:
clientId: "" # Client ID of the Wiz Service Account.
clientToken: "" # Client secret of the Wiz Service Account.
clientEndpoint: "" # Wiz endpoint to connect to (required for gov tenants).

secret:
# Should a Secret be created by the chart or not.
# Set this to false if you wish to create the Secret yourself or using another tool.
Expand All @@ -32,11 +32,11 @@ global:
create: true
secretName: "wiz-proxy" # The name of the proxy Secret.
annotations: {} # Annotations to be set on the secret

httpProxy: "" # URL to use as a proxy for outbound HTTP traffic.
httpsProxy: "" # URL to use as a proxy for outbound HTTPS traffic.
noProxyAddress: # Comma or space-separated list of machine or domain names. Note: This does not affect the Sensor.

# Proxy CA certificate in PEM format. This is required for TLS intercept proxies
# This value is currently only used by the wiz sensor.
caCertificate: ""
Expand All @@ -52,6 +52,24 @@ global:
customVolumes: [] # Additional volumes to add to the components Pods
customVolumeMounts: [] # Additional volume mounts to add to the components Pods

# -- Array of extra K8s manifests to deploy
## Note: Supports use of custom Helm templates
extraObjects: []
# - apiVersion: external-secrets.io/v1beta1
# kind: ExternalSecret
# metadata:
# name: wiz-sensor-api-token
# namespace: wiz
# spec:
# secretStoreRef:
# kind: ClusterSecretStore
# name: cluster-secret-store
# target:
# name: wiz-api-token
# dataFrom:
# - extract:
# key: wiz-sensor-api-token

# Wiz Kubernetes Connector
# Configuration values for the wiz-kubernetes-connector dependency
# ref: https://github.com/wiz-sec/charts/blob/master/wiz-kubernetes-connector/values.yaml
Expand Down Expand Up @@ -99,4 +117,4 @@ wiz-sensor:
# In case you want use an existing value (perhaps created via "kubectl create secret docker-registry ...")
# please mark "create" above as false
username: ""
password: ""
password: ""