Skip to content

Commit b44808e

Browse files
author
gurghet
committed
docs: improve values.yaml documentation
1 parent 49d6e69 commit b44808e

1 file changed

Lines changed: 26 additions & 10 deletions

File tree

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,47 @@
11
# Default values for github-deploy-key-operator.
22

3+
# -- Number of operator replicas to run
34
replicaCount: 1
45

6+
# -- Container image configuration
57
image:
8+
# -- Image repository in format: ghcr.io/gurghet/github-deploy-key-operator/operator
69
repository: ghcr.io/gurghet/github-deploy-key-operator/operator
7-
tag: latest # We recommend using a specific version
10+
# -- Image tag (we recommend using a specific version instead of latest)
11+
tag: latest
12+
# -- Image pull policy
813
pullPolicy: Always
914

15+
# -- Override the chart name
1016
nameOverride: ""
17+
# -- Override the full chart name
1118
fullnameOverride: ""
1219

13-
# GitHub configuration
20+
# -- GitHub configuration
1421
github:
1522
# -- GitHub token (not recommended, use existingSecret instead)
23+
# This token needs repo or admin:public_key permissions
1624
token: ""
1725

1826
# -- Name of existing secret containing the GitHub token
27+
# The secret must be in the same namespace as the operator
1928
existingSecret: ""
2029

2130
# -- Key in the existing secret that contains the GitHub token
31+
# Default matches the example in the README
2232
existingSecretKey: "GITHUB_TOKEN"
2333

24-
# Security context configuration
34+
# -- Pod security context configuration
35+
# These settings ensure the operator runs with minimal privileges
2536
podSecurityContext:
2637
runAsNonRoot: true
2738
runAsUser: 1000
2839
fsGroup: 2000
2940
seccompProfile:
3041
type: RuntimeDefault
3142

43+
# -- Container security context
44+
# These settings restrict the operator's capabilities
3245
securityContext:
3346
allowPrivilegeEscalation: false
3447
readOnlyRootFilesystem: true
@@ -37,16 +50,19 @@ securityContext:
3750
drop:
3851
- ALL
3952

40-
# Service account configuration
53+
# -- Service account configuration
4154
serviceAccount:
42-
# -- Create a service account
55+
# -- Whether to create a service account
4356
create: true
44-
# -- Service account name (if not creating one)
57+
# -- Name of the service account to use
58+
# If not set and create is true, a name is generated
4559
name: ""
4660
# -- Annotations to add to the service account
4761
annotations: {}
4862

49-
# Resource limits
63+
# -- Resource limits and requests
64+
# The operator is lightweight but needs enough resources
65+
# to handle multiple repositories
5066
resources:
5167
requests:
5268
cpu: 100m
@@ -55,11 +71,11 @@ resources:
5571
cpu: 500m
5672
memory: 256Mi
5773

58-
# Node selector
74+
# -- Node selector for the operator pod
5975
nodeSelector: {}
6076

61-
# Tolerations
77+
# -- Pod tolerations
6278
tolerations: []
6379

64-
# Affinity
80+
# -- Pod affinity rules
6581
affinity: {}

0 commit comments

Comments
 (0)