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

Issue 473: Fixing charts to set the required LTS type #475

Merged
merged 2 commits into from
Nov 6, 2020
Merged
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
4 changes: 2 additions & 2 deletions charts/pravega-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
name: pravega-operator
description: Pravega Operator Helm chart for Kubernetes
version: 0.5.1
appVersion: 0.5.1
version: 0.5.2
appVersion: 0.5.2
keywords:
- pravega
- storage
Expand Down
2 changes: 1 addition & 1 deletion charts/pravega-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The following table lists the configurable parameters of the pravega-operator ch
| Parameter | Description | Default |
| ----- | ----------- | ------ |
| `image.repository` | Image repository | `pravega/pravega-operator` |
| `image.tag` | Image tag | `0.5.1` |
| `image.tag` | Image tag | `0.5.2` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `crd.create` | Create pravega CRD | `true` |
| `rbac.create` | Create RBAC resources | `true` |
Expand Down
4 changes: 4 additions & 0 deletions charts/pravega-operator/templates/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ metadata:
labels:
{{ include "pravega-operator.commonLabels" . | indent 4 }}
annotations:
{{- if .Values.webhookCert.generate }}
cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ template "pravega-operator.fullname" . }}-cert
{{- else }}
cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ .Values.webhookCert.certName }}
{{- end }}
webhooks:
- clientConfig:
service:
Expand Down
2 changes: 1 addition & 1 deletion charts/pravega-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

image:
repository: pravega/pravega-operator
tag: 0.5.1
tag: 0.5.2
pullPolicy: IfNotPresent

## Install RBAC roles and bindings.
Expand Down
6 changes: 3 additions & 3 deletions charts/pravega/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ The following table lists the configurable parameters of the pravega chart and t
| `controller.resources.requests.memory` | Memory requests for controller | `1Gi` |
| `controller.resources.limits.cpu` | CPU limits for controller | `1000m` |
| `controller.resources.limits.memory` | Memory limits for controller | `2Gi` |
| `controller.securityContext` | Holds pod-level security attributes and common container settings for controller | `{}` |
| `controller.service.type` | Override the controller service type, if external access is enabled (LoadBalancer/NodePort) | |
| `controller.service.annotations` | Annotations to add to the controller service, if external access is enabled | `{}` |
| `controller.jvmOptions` | JVM Options for controller | `["-Xmx2g", "-XX:MaxDirectMemorySize=2g"]` |
Expand All @@ -87,9 +88,10 @@ The following table lists the configurable parameters of the pravega chart and t
| `segmentStore.resources.requests.memory` | Memory requests for segmentStore | `4Gi` |
| `segmentStore.resources.limits.cpu` | CPU limits for segmentStore | `2000m` |
| `segmentStore.resources.limits.memory` | Memory limits for segmentStore | `4Gi` |
| `segmentStore.securityContext` | Holds pod-level security attributes and common container settings for segmentStore | `{}` |
| `segmentStore.service.type` | Override the segmentStore service type, if external access is enabled (LoadBalancer/NodePort) | |
| `segmentStore.service.annotations` | Annotations to add to the segmentStore service, if external access is enabled | `{}` |
| `segmentStore.service.loadBalancerIP` |It is used to provide a LoadBalancerIP for the segmentStore service | |
| `segmentStore.service.loadBalancerIP` | It is used to provide a LoadBalancerIP for the segmentStore service | |
| `segmentStore.service.externalTrafficPolicy` | It is used to provide ExternalTrafficPolicy for the segmentStore service | |
| `segmentStore.jvmOptions` | JVM Options for segmentStore | `[]` |
| `storage.longtermStorage.type` | Type of long term storage backend to be used (filesystem/ecs/hdfs) | `filesystem` |
Expand All @@ -99,5 +101,3 @@ The following table lists the configurable parameters of the pravega chart and t
| `storage.cache.className` | Storage class for cache volume | `` |
| `storage.cache.size` | Storage requests for cache volume | `20Gi` |
| `options` | List of Pravega options | |
| `segmentStoreSecurityContext` | Holds pod-level security attributes and common container settings | `{}` |
| `controllerSecurityContext` | Holds pod-level security attributes and common container settings | `{}` |
15 changes: 8 additions & 7 deletions charts/pravega/templates/pravega.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- $longTermStorageType := .Values.storage.longtermStorage.type | default "filesystem" -}}
apiVersion: "pravega.pravega.io/v1beta1"
kind: "PravegaCluster"
metadata:
Expand Down Expand Up @@ -36,13 +37,13 @@ spec:
{{- end }}
{{- end }}
pravega:
{{- if .Values.segmentStoreSecurityContext }}
{{- if .Values.segmentStore.securityContext }}
segmentStoreSecurityContext:
runAsUser: {{ .Values.segmentStoreSecurityContext.runAsUser }}
runAsUser: {{ .Values.segmentStore.securityContext.runAsUser }}
{{- end }}
{{- if .Values.controllerSecurityContext }}
{{- if .Values.controller.securityContext }}
controllerSecurityContext:
runAsUser: {{ .Values.controllerSecurityContext.runAsUser }}
runAsUser: {{ .Values.controller.securityContext.runAsUser }}
{{- end }}
{{- if .Values.externalAccess.enabled }}
controllerServiceAccountName: {{ .Values.serviceAccount.name }}
Expand Down Expand Up @@ -111,21 +112,21 @@ spec:
storage: {{ .Values.storage.cache.size }}
{{- end }}
longtermStorage:
{{- if eq (default .Values.storage.longtermStorage.type "filesystem") "ecs" }}
{{- if eq $longTermStorageType "ecs" }}
ecs:
configUri: {{ .Values.storage.longtermStorage.ecs.configUri }}
bucket: {{ .Values.storage.longtermStorage.ecs.bucket }}
prefix: {{ .Values.storage.longtermStorage.ecs.prefix }}
credentials: {{ .Values.storage.longtermStorage.ecs.credentials }}
{{- else if eq (default .Values.storage.longtermStorage.type "filesystem") "hdfs"}}
{{- else if eq $longTermStorageType "hdfs"}}
hdfs:
uri: {{ .Values.storage.longtermStorage.hdfs.uri }}
root: {{ .Values.storage.longtermStorage.hdfs.root }}
replicationFactor: {{ .Values.storage.longtermStorage.hdfs.replicationFactor }}
{{- else }}
filesystem:
persistentVolumeClaim:
claimName: {{ default "pravega-tier2" .Values.storage.longtermStorage.filesystem.pvc }}
claimName: {{ .Values.storage.longtermStorage.filesystem.pvc | default "pravega-tier2" }}
{{- end }}
{{- if .Values.options }}
options:
Expand Down
12 changes: 5 additions & 7 deletions charts/pravega/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ externalAccess:
type: LoadBalancer
domainName:

segmentStoreSecurityContext: {}
#runAsUser: 0

controllerSecurityContext: {}
#runAsUser: 0

image:
repository: pravega/pravega
pullPolicy: IfNotPresent
Expand All @@ -54,6 +48,8 @@ controller:
limits:
cpu: 1000m
memory: 2Gi
securityContext: {}
# runAsUser: 0
## service type and annotations are ignored if external access is disabled
service:
## used to override the service type for controller
Expand All @@ -74,13 +70,15 @@ segmentStore:
limits:
cpu: 2000m
memory: 4Gi
securityContext: {}
# runAsUser: 0
## service type and annotations are ignored if external access is disabled
service:
## used to override the service type for segmentStore
type:
annotations: {}
loadBalancerIP:
externalTrafficPolicy: Local
externalTrafficPolicy:
jvmOptions: ["-Xmx2g", "-XX:MaxDirectMemorySize=2g"]

storage:
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/resources/bookkeeper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ spec:
serviceAccountName: bookkeeper-operator
containers:
- name: bookkeeper-operator
image: pravega/bookkeeper-operator:latest
image: pravega/bookkeeper-operator:0.1.2
ports:
- containerPort: 60000
name: metrics
Expand Down