diff --git a/charts/spire/README.md b/charts/spire/README.md index c3981b8..083212e 100644 --- a/charts/spire/README.md +++ b/charts/spire/README.md @@ -48,7 +48,6 @@ Kubernetes: `>=1.21.0-0` | Key | Type | Default | Description | |-----|------|---------|-------------| -| affinity | object | `{}` | | | agent.image.pullPolicy | string | `"IfNotPresent"` | | | agent.image.registry | string | `"ghcr.io"` | | | agent.image.repository | string | `"spiffe/spire-agent"` | | @@ -76,6 +75,7 @@ Kubernetes: `>=1.21.0-0` | oidc.acme.directoryUrl | string | `"https://acme-v02.api.letsencrypt.org/directory"` | | | oidc.acme.emailAddress | string | `"letsencrypt@example.org"` | | | oidc.acme.tosAccepted | bool | `false` | | +| oidc.affinity | object | `{}` | | | oidc.domains[0] | string | `"localhost"` | | | oidc.domains[1] | string | `"spire-oidc.spire"` | | | oidc.domains[2] | string | `"spire-oidc.spire.svc.cluster.local"` | | @@ -93,6 +93,7 @@ Kubernetes: `>=1.21.0-0` | oidc.jwtIssuer | string | `"oidc-discovery.example.org"` | | | oidc.logLevel | string | `"INFO"` | | | oidc.nodeSelector."kubernetes.io/arch" | string | `"amd64"` | | +| oidc.podAnnotations | object | `{}` | | | oidc.podSecurityContext | object | `{}` | | | oidc.replicaCount | int | `1` | | | oidc.resources | object | `{}` | | @@ -100,7 +101,7 @@ Kubernetes: `>=1.21.0-0` | oidc.service.annotations | object | `{}` | | | oidc.service.port | int | `80` | | | oidc.service.type | string | `"NodePort"` | | -| podAnnotations | object | `{}` | | +| oidc.tolerations | list | `[]` | | | server.dataStorage.accessMode | string | `"ReadWriteOnce"` | | | server.dataStorage.enabled | bool | `true` | | | server.dataStorage.size | string | `"1Gi"` | | @@ -123,7 +124,6 @@ Kubernetes: `>=1.21.0-0` | spire.clusterName | string | `"example-cluster"` | | | spire.server.logLevel | string | `"info"` | | | spire.trustDomain | string | `"example.org"` | | -| tolerations | list | `[]` | | | waitForIt.image.pullPolicy | string | `"IfNotPresent"` | | | waitForIt.image.registry | string | `"gcr.io"` | | | waitForIt.image.repository | string | `"spiffe-io/wait-for-it"` | | diff --git a/charts/spire/templates/oidc-deployment.yaml b/charts/spire/templates/oidc-deployment.yaml index e71d730..e4fe820 100644 --- a/charts/spire/templates/oidc-deployment.yaml +++ b/charts/spire/templates/oidc-deployment.yaml @@ -15,7 +15,7 @@ spec: {{- include "spire.oidc.selectorLabels" . | nindent 6 }} template: metadata: - {{- with .Values.podAnnotations }} + {{- with .Values.oidc.podAnnotations }} annotations: {{- toYaml . | nindent 8 }} {{- end }} @@ -106,11 +106,11 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.affinity }} + {{- with .Values.oidc.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.tolerations }} + {{- with .Values.oidc.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} diff --git a/charts/spire/templates/server-statefulset.yaml b/charts/spire/templates/server-statefulset.yaml index e33b4ed..4d75708 100644 --- a/charts/spire/templates/server-statefulset.yaml +++ b/charts/spire/templates/server-statefulset.yaml @@ -15,7 +15,7 @@ spec: {{- include "spire.server.selectorLabels" . | nindent 6 }} template: metadata: - {{- with .Values.podAnnotations }} + {{- with .Values.oidc.podAnnotations }} annotations: {{- toYaml . | nindent 8 }} {{- end }} @@ -99,11 +99,11 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.affinity }} + {{- with .Values.server.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.tolerations }} + {{- with .Values.server.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} diff --git a/charts/spire/values.yaml b/charts/spire/values.yaml index f81e981..45522c2 100644 --- a/charts/spire/values.yaml +++ b/charts/spire/values.yaml @@ -165,6 +165,11 @@ oidc: # runAsNonRoot: true # runAsUser: 1000 + tolerations: [] + + affinity: {} + podAnnotations: {} + insecureScheme: enabled: false @@ -221,9 +226,6 @@ serviceAccount: # If not set and create is true, a name is generated using the fullname template name: "" -podAnnotations: {} - - autoscaling: enabled: false minReplicas: 1 @@ -231,10 +233,6 @@ autoscaling: targetCPUUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: 80 -tolerations: [] - -affinity: {} - # spireSettings spire: