Skip to content

Commit

Permalink
Update secrets naming (#56)
Browse files Browse the repository at this point in the history
Updated secrets naming.
  • Loading branch information
antejavor authored Aug 14, 2024
1 parent d08e538 commit ad0b6d0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint-test-memgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
if: steps.list-changed.outputs.changed == 'true'
run: |
kubectl create secret generic memgraph-secrets \
--from-literal=MEMGRAPH_USER=memgraph \
--from-literal=MEMGRAPH_PASSWORD=memgraph \
--from-literal=USER=memgraph \
--from-literal=PASSWORD=memgraph \
--namespace default
- name: Verify Kubernetes secrets
Expand Down
9 changes: 5 additions & 4 deletions charts/memgraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ The following table lists the configurable parameters of the Memgraph chart and
| `replicaCount` | Number of Memgraph instances to run. Note: no replication or HA support. | `1` |
| `affinity.nodeKey` | Key for node affinity (Preferred) | `""` |
| `affinity.nodeValue` | Value for node affinity (Preferred) | `""` |
| `nodeSelector` | Constrain which nodes your Memgraph pod is eligible to be scheduled on, based on the labels on the nodes. Left empty by default. | `{}` |
| `service.type` | Kubernetes service type | `ClusterIP` |
| `service.enableBolt` | Enable Bolt protocol | `true` |
| `service.boltPort` | Bolt protocol port | `7687` |
Expand All @@ -54,14 +55,14 @@ The following table lists the configurable parameters of the Memgraph chart and
| `memgraphConfig` | List of strings defining Memgraph configuration settings | `["--also-log-to-stderr=true"]` |
| `secrets.enabled` | Enable the use of Kubernetes secrets for Memgraph credentials | `false` |
| `secrets.name` | The name of the Kubernetes secret containing Memgraph credentials | `memgraph-secrets` |
| `secrets.userKey` | The key in the Kubernetes secret for the Memgraph user | `MEMGRAPH_USER` |
| `secrets.passwordKey` | The key in the Kubernetes secret for the Memgraph password | `MEMGRAPH_PASSWORD` |
| `secrets.userKey` | The key in the Kubernetes secret for the Memgraph user, the value is passed to the `MEMGRAPH_USER` env | `USER` |
| `secrets.passwordKey` | The key in the Kubernetes secret for the Memgraph password, the value is passed to the `MEMGRAPH_PASSWORD` | `PASSWORD` |
| `memgraphEnterpriseLicense` | Memgraph Enterprise License | `""` |
| `memgraphOrganizationName` | Organization name for Memgraph Enterprise License | `""` |
| `statefulSetAnnotations` | Annotations to add to the stateful set | `{}` |
| `podAnnotations` | Annotations to add to the pod | `{}` |
| `resources` | CPU/Memory resource requests/limits. Left empty by default. | `{}` |
| `tolerations` | Tolerations for pod. Left empty by default. | `[]` |
| `tolerations` | A toleration is applied to a pod and allows the pod to be scheduled on nodes with matching taints. Left empty by default. | `[]` |
| `serviceAccount.create` | Specifies whether a service account should be created | `true` |
| `serviceAccount.annotations` | Annotations to add to the service account | `{}` |
| `serviceAccount.name` | The name of the service account to use. If not set and create is true, a name is generated. | `""` |
Expand Down Expand Up @@ -104,7 +105,7 @@ memgraphConfig:
If you are using the Memgraph user, make sure you have secrets set:

```
kubectl create secret generic memgraph-secrets --from-literal=MEMGRAPH_USER=myuser --from-literal=MEMGRAPH_PASSWORD=mypassword
kubectl create secret generic memgraph-secrets --from-literal=USER=myuser --from-literal=PASSWORD=mypassword
```

For all available database settings, refer to the [Configuration settings reference guide](https://memgraph.com/docs/memgraph/reference-guide/configuration).
4 changes: 2 additions & 2 deletions charts/memgraph/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ memgraphConfig:
secrets:
enabled: false
name: memgraph-secrets
userKey: MEMGRAPH_USER
passwordKey: MEMGRAPH_PASSWORD
userKey: USER
passwordKey: PASSWORD

## Memgraph Enterprise Licence
# memgraphEnterpriseLicense: "<your-license>"
Expand Down

0 comments on commit ad0b6d0

Please sign in to comment.