Skip to content

Commit

Permalink
Project dependency fixes, README file update
Browse files Browse the repository at this point in the history
  • Loading branch information
Denislite committed Aug 2, 2022
1 parent 39ff746 commit 3fb18bd
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ trim_trailing_whitespace = false
eclint_indent_style = unset

[Dockerfile]
indent_size = 4
indent_size = 4
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ Then update the on-disk dependencies to mirror Chart.yaml.
```
helm dependency update helm-charts/database-to-integrity-sum
```
INSERT TEXT HERE
Then install the database helm-chart on your cluster.
```
helm install helm-charts/database-to-integrity-sum
helm install db helm-charts/database-to-integrity-sum
```
INSERT TEXT HERE
And also install the mutating injector app.
```
helm install db helm-charts/mutator
helm install mutator helm-charts/mutator
```
INSERT TEXT HERE
For a demonstration of work, use demo-app.
```
helm install app helm-charts/demo-apps-to-monitor
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: {{.Release.Name}}-{{ .Values.secretName}}
name: {{ .Values.secretName}}
namespace: {{ .Release.Namespace }}
type: Opaque
stringData: # We dont need to worry about converting to base64
Expand Down
8 changes: 4 additions & 4 deletions helm-charts/database-to-integrity-sum/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Dependency to database "postgresql"
secretName: secret-database-to-integrety-sum # Set the unique name for secret for database
secretName: hasher-database-secret # Set the unique name for secret for database

postgresql:
auth:
Expand All @@ -16,10 +16,10 @@ postgresql:
# Set by the initdb script during initial container startup
00_init_extensions.sh: |
#!/bin/sh
export PGPASSWORD=$POSTGRES_PASSWORD
export PGPASSWORD=$POSTGRES_PASSWORD
psql -w -d $POSTGRES_DB -U $POSTGRES_USER -c "
CREATE TABLE IF NOT EXISTS hashfiles
(
CREATE TABLE IF NOT EXISTS hashfiles
(
id BIGSERIAL PRIMARY KEY,
file_name VARCHAR NOT NULL,
full_file_path TEXT NOT NULL,
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/demo-apps-to-monitor/templates/configMap.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: hasher-config
name: {{ .Release.Name }}-integrity-sum-config
data:
{{ .Values.container.name }}: |
PID_NAME={{ .Values.configMap.processName }}
Expand Down
6 changes: 3 additions & 3 deletions helm-charts/demo-apps-to-monitor/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ spec:
metadata:
labels:
app: {{ .Values.metadata.appName }}
hasher-webhook-process-name: "{{ .Values.processName }}"
hasher-webhook-injector-sidecar: "true"
main-process-name: "{{ .Values.configMap.processName }}"
hasher-certificates-injector-sidecar: "true"
spec:
serviceAccountName: {{ .Values.serviceAccount }}
shareProcessNamespace: true
containers:
- name: {{ .Values.container.name }}
image: {{ .Values.container.image }}
stdin: true
tty: true
tty: true
2 changes: 1 addition & 1 deletion helm-charts/mutator/templates/webhook-configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ webhooks:
resources: ["pods"]
admissionReviewVersions: ["v1", "v1beta1"]
sideEffects: None
timeoutSeconds: 5
timeoutSeconds: 5
4 changes: 2 additions & 2 deletions helm-charts/mutator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mountPath: /ssl
namespaceDep: default # namespace of cluster

contName: k8s-webhook-injector-ws # name of the container
image: dyslexicat/tcpdump-webhook # image name
image: mutator:latest # image name
pullPolicy: Never # pull policy for image

containerPort: 8443 # port for the container
Expand Down Expand Up @@ -36,4 +36,4 @@ path: "/mutate"
namespaceService: default # namespace of cluster

port: 443 # port of this service
targetPort: 8443 # port to accept traffic on
targetPort: 8443 # port to accept traffic on

0 comments on commit 3fb18bd

Please sign in to comment.