Skip to content

Commit

Permalink
Merge branch 'master' into feat/GPE-979
Browse files Browse the repository at this point in the history
  • Loading branch information
EliseCastle23 authored Aug 8, 2023
2 parents 73b9323 + bea2a85 commit fc54ca6
Show file tree
Hide file tree
Showing 8 changed files with 162 additions and 175 deletions.
4 changes: 2 additions & 2 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"files": "^.secrets.baseline$",
"lines": null
},
"generated_at": "2023-07-03T15:16:07Z",
"generated_at": "2023-07-27T21:47:16Z",
"plugins_used": [
{
"name": "AWSKeyDetector"
Expand Down Expand Up @@ -365,7 +365,7 @@
"hashed_secret": "1740c48fa3141d4851b14f97e3bc0f46f7670672",
"is_secret": false,
"is_verified": false,
"line_number": 118,
"line_number": 119,
"type": "Secret Keyword"
}
],
Expand Down
6 changes: 5 additions & 1 deletion helm/gen3/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ dependencies:
version: "0.1.6"
repository: "file://../ssjdispatcher"
condition: ssjdispatcher.enabled
- name: sower
version: "0.1.6"
condition: sower.enabled
repository: "file://../sower"
- name: wts
version: "0.1.10"
repository: "file://../wts"
Expand Down Expand Up @@ -107,7 +111,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.18
version: 0.1.19

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 2 additions & 1 deletion helm/gen3/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# gen3

![Version: 0.1.18](https://img.shields.io/badge/Version-0.1.18-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: master](https://img.shields.io/badge/AppVersion-master-informational?style=flat-square)
![Version: 0.1.19](https://img.shields.io/badge/Version-0.1.19-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: master](https://img.shields.io/badge/AppVersion-master-informational?style=flat-square)

Helm chart to deploy Gen3 Data Commons

Expand Down Expand Up @@ -37,6 +37,7 @@ Helm chart to deploy Gen3 Data Commons
| file://../requestor | requestor | 0.1.8 |
| file://../revproxy | revproxy | 0.1.10 |
| file://../sheepdog | sheepdog | 0.1.10 |
| file://../sower | sower | 0.1.6 |
| file://../ssjdispatcher | ssjdispatcher | 0.1.6 |
| file://../wts | wts | 0.1.10 |
| https://charts.bitnami.com/bitnami | postgresql | 11.9.13 |
Expand Down
2 changes: 1 addition & 1 deletion helm/sower/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.5
version: 0.1.6

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
71 changes: 59 additions & 12 deletions helm/sower/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sower

![Version: 0.1.5](https://img.shields.io/badge/Version-0.1.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: master](https://img.shields.io/badge/AppVersion-master-informational?style=flat-square)
![Version: 0.1.6](https://img.shields.io/badge/Version-0.1.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: master](https://img.shields.io/badge/AppVersion-master-informational?style=flat-square)

A Helm chart for gen3 sower

Expand Down Expand Up @@ -66,17 +66,6 @@ A Helm chart for gen3 sower
| nameOverride | string | `""` | Override the name of the chart. |
| nodeSelector | map | `{}` | Node Selector for the pods |
| partOf | string | `"Core-Service"` | Label to help organize pods and their use. Any value is valid, but use "_" or "-" to divide words. |
| pelican.bucket | string | `""` | The bucket for pelican exports |
| pelican.image.pullPolicy | string | `"Always"` | Docker pull policy. |
| pelican.image.repository | string | `"quay.io/cdis/pelican-export"` | Docker repository. |
| pelican.image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
| pelican.resources | map | `{"limits":{"cpu":1,"memory":"12Gi"},"requests":{"cpu":"100m","memory":"20Mi"}}` | Resource requests and limits for the containers in the pod |
| pelican.resources.limits | map | `{"cpu":1,"memory":"12Gi"}` | The maximum amount of resources that the container is allowed to use |
| pelican.resources.limits.cpu | string | `1` | The maximum amount of CPU the container can use |
| pelican.resources.limits.memory | string | `"12Gi"` | The maximum amount of memory the container can use |
| pelican.resources.requests | map | `{"cpu":"100m","memory":"20Mi"}` | The amount of resources that the container requests |
| pelican.resources.requests.cpu | string | `"100m"` | The amount of CPU requested |
| pelican.resources.requests.memory | string | `"20Mi"` | The amount of memory requested |
| podSecurityContext | map | `{"fsGroup":1000,"runAsUser":1000}` | Security context to apply to the pod |
| podSecurityContext.fsGroup | int | `1000` | Group that Kubernetes will change the permissions of all files in volumes to when volumes are mounted by a pod. |
| podSecurityContext.runAsUser | int | `1000` | User that all the processes will run under in the container. |
Expand All @@ -97,6 +86,64 @@ A Helm chart for gen3 sower
| serviceAccount.annotations | map | `{}` | Annotations to add to the service account. |
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created. |
| serviceAccount.name | string | `"sower-service-account"` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| sowerConfig[0].action | string | `"export"` | |
| sowerConfig[0].container.cpu-limit | string | `"1"` | |
| sowerConfig[0].container.env[0].name | string | `"DICTIONARY_URL"` | |
| sowerConfig[0].container.env[0].valueFrom.configMapKeyRef.key | string | `"dictionary_url"` | |
| sowerConfig[0].container.env[0].valueFrom.configMapKeyRef.name | string | `"manifest-global"` | |
| sowerConfig[0].container.env[1].name | string | `"GEN3_HOSTNAME"` | |
| sowerConfig[0].container.env[1].valueFrom.configMapKeyRef.key | string | `"hostname"` | |
| sowerConfig[0].container.env[1].valueFrom.configMapKeyRef.name | string | `"manifest-global"` | |
| sowerConfig[0].container.env[2].name | string | `"ROOT_NODE"` | |
| sowerConfig[0].container.env[2].value | string | `"subject"` | |
| sowerConfig[0].container.image | string | `"quay.io/cdis/pelican-export:master"` | |
| sowerConfig[0].container.memory-limit | string | `"12Gi"` | |
| sowerConfig[0].container.name | string | `"job-task"` | |
| sowerConfig[0].container.pull_policy | string | `"Always"` | |
| sowerConfig[0].container.volumeMounts[0].mountPath | string | `"/pelican-creds.json"` | |
| sowerConfig[0].container.volumeMounts[0].name | string | `"pelican-creds-volume"` | |
| sowerConfig[0].container.volumeMounts[0].readOnly | bool | `true` | |
| sowerConfig[0].container.volumeMounts[0].subPath | string | `"config.json"` | |
| sowerConfig[0].container.volumeMounts[1].mountPath | string | `"/peregrine-creds.json"` | |
| sowerConfig[0].container.volumeMounts[1].name | string | `"peregrine-creds-volume"` | |
| sowerConfig[0].container.volumeMounts[1].readOnly | bool | `true` | |
| sowerConfig[0].container.volumeMounts[1].subPath | string | `"creds.json"` | |
| sowerConfig[0].name | string | `"pelican-export"` | |
| sowerConfig[0].restart_policy | string | `"Never"` | |
| sowerConfig[0].volumes[0].name | string | `"pelican-creds-volume"` | |
| sowerConfig[0].volumes[0].secret.secretName | string | `"pelicanservice-g3auto"` | |
| sowerConfig[0].volumes[1].name | string | `"peregrine-creds-volume"` | |
| sowerConfig[0].volumes[1].secret.secretName | string | `"peregrine-creds"` | |
| sowerConfig[1].action | string | `"export-files"` | |
| sowerConfig[1].container.cpu-limit | string | `"1"` | |
| sowerConfig[1].container.env[0].name | string | `"DICTIONARY_URL"` | |
| sowerConfig[1].container.env[0].valueFrom.configMapKeyRef.key | string | `"dictionary_url"` | |
| sowerConfig[1].container.env[0].valueFrom.configMapKeyRef.name | string | `"manifest-global"` | |
| sowerConfig[1].container.env[1].name | string | `"GEN3_HOSTNAME"` | |
| sowerConfig[1].container.env[1].valueFrom.configMapKeyRef.key | string | `"hostname"` | |
| sowerConfig[1].container.env[1].valueFrom.configMapKeyRef.name | string | `"manifest-global"` | |
| sowerConfig[1].container.env[2].name | string | `"ROOT_NODE"` | |
| sowerConfig[1].container.env[2].value | string | `"file"` | |
| sowerConfig[1].container.env[3].name | string | `"EXTRA_NODES"` | |
| sowerConfig[1].container.env[3].value | string | `""` | |
| sowerConfig[1].container.image | string | `"quay.io/cdis/pelican-export:master"` | |
| sowerConfig[1].container.memory-limit | string | `"12Gi"` | |
| sowerConfig[1].container.name | string | `"job-task"` | |
| sowerConfig[1].container.pull_policy | string | `"Always"` | |
| sowerConfig[1].container.volumeMounts[0].mountPath | string | `"/pelican-creds.json"` | |
| sowerConfig[1].container.volumeMounts[0].name | string | `"pelican-creds-volume"` | |
| sowerConfig[1].container.volumeMounts[0].readOnly | bool | `true` | |
| sowerConfig[1].container.volumeMounts[0].subPath | string | `"config.json"` | |
| sowerConfig[1].container.volumeMounts[1].mountPath | string | `"/peregrine-creds.json"` | |
| sowerConfig[1].container.volumeMounts[1].name | string | `"peregrine-creds-volume"` | |
| sowerConfig[1].container.volumeMounts[1].readOnly | bool | `true` | |
| sowerConfig[1].container.volumeMounts[1].subPath | string | `"creds.json"` | |
| sowerConfig[1].name | string | `"pelican-export-files"` | |
| sowerConfig[1].restart_policy | string | `"Never"` | |
| sowerConfig[1].volumes[0].name | string | `"pelican-creds-volume"` | |
| sowerConfig[1].volumes[0].secret.secretName | string | `"pelicanservice-g3auto"` | |
| sowerConfig[1].volumes[1].name | string | `"peregrine-creds-volume"` | |
| sowerConfig[1].volumes[1].secret.secretName | string | `"peregrine-creds"` | |
| strategy | map | `{"rollingUpdate":{"maxSurge":1,"maxUnavailable":0},"type":"RollingUpdate"}` | Rolling update deployment strategy |
| strategy.rollingUpdate.maxSurge | int | `1` | Number of additional replicas to add during rollout. |
| strategy.rollingUpdate.maxUnavailable | int | `0` | Maximum amount of pods that can be unavailable during the update. |
Expand Down
135 changes: 1 addition & 134 deletions helm/sower/templates/manifest-sower.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,137 +4,4 @@ metadata:
name: manifest-sower
data:
json: |-
[
{
"name": "pelican-export",
"action": "export",
"container": {
"name": "job-task",
"image": "{{ .Values.pelican.image.repository }}:{{ .Values.pelican.image.tag | default .Chart.AppVersion }}",
"pull_policy": "Always",
"env": [
{
"name": "DICTIONARY_URL",
"valueFrom": {
"configMapKeyRef": {
"name": "manifest-global",
"key": "dictionary_url"
}
}
},
{
"name": "GEN3_HOSTNAME",
"valueFrom": {
"configMapKeyRef": {
"name": "manifest-global",
"key": "hostname"
}
}
},
{
"name": "ROOT_NODE",
"value": "subject"
}
],
"volumeMounts": [
{
"name": "pelican-creds-volume",
"readOnly": true,
"mountPath": "/pelican-creds.json",
"subPath": "config.json"
},
{
"name": "peregrine-creds-volume",
"readOnly": true,
"mountPath": "/peregrine-creds.json",
"subPath": "creds.json"
}
],
"cpu-limit": "{{ .Values.pelican.resources.limits.cpu }}",
"memory-limit": "{{ .Values.pelican.resources.limits.memory }}"
},
"volumes": [
{
"name": "pelican-creds-volume",
"secret": {
"secretName": "pelicanservice-g3auto"
}
},
{
"name": "peregrine-creds-volume",
"secret": {
"secretName": "peregrine-creds"
}
}
],
"restart_policy": "Never"
},
{
"name": "pelican-export-files",
"action": "export-files",
"container": {
"name": "job-task",
"image": "{{ .Values.pelican.image.repository }}:{{ .Values.pelican.image.tag | default .Chart.AppVersion }}",
"pull_policy": "Always",
"env": [
{
"name": "DICTIONARY_URL",
"valueFrom": {
"configMapKeyRef": {
"name": "manifest-global",
"key": "dictionary_url"
}
}
},
{
"name": "GEN3_HOSTNAME",
"valueFrom": {
"configMapKeyRef": {
"name": "manifest-global",
"key": "hostname"
}
}
},
{
"name": "ROOT_NODE",
"value": "file"
},
{
"name": "EXTRA_NODES",
"value": ""
}
],
"volumeMounts": [
{
"name": "pelican-creds-volume",
"readOnly": true,
"mountPath": "/pelican-creds.json",
"subPath": "config.json"
},
{
"name": "peregrine-creds-volume",
"readOnly": true,
"mountPath": "/peregrine-creds.json",
"subPath": "creds.json"
}
],
"cpu-limit": "{{ .Values.pelican.resources.limits.cpu }}",
"memory-limit": "{{ .Values.pelican.resources.limits.memory }}"
},
"volumes": [
{
"name": "pelican-creds-volume",
"secret": {
"secretName": "pelicanservice-g3auto"
}
},
{
"name": "peregrine-creds-volume",
"secret": {
"secretName": "peregrine-creds"
}
}
],
"restart_policy": "Never"
}
]
{{ .Values.sowerConfig | toJson | nindent 4 }}
12 changes: 12 additions & 0 deletions helm/sower/templates/role-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: sower-binding
subjects:
- kind: ServiceAccount
name: {{ include "sower.serviceAccountName" . }}
apiGroup: ""
roleRef:
kind: ClusterRole
name: admin
apiGroup: rbac.authorization.k8s.io
Loading

0 comments on commit fc54ca6

Please sign in to comment.