Commit Graph

52 Commits

Author SHA1 Message Date
Stavros Kois
3a6e29ae9e NAS-120452 / 23.10 / Add MinIO Enterprise (#1002)
* Add minio to enterprise train

* Adjust hostnetwork based on multimode configuration

* add update strategy and explicitly set permissions at install time

* minor typo

* use new common

* bump common

* Add upgrade info json

* make immutable the run context and check backup permissions before chowning

* spacing
2023-04-05 17:57:03 +03:00
Stavros Kois
30be52a860 Make init container for permissions more flexible and apply to qbit (#1077)
* Make init container for permissions more flexible and apply to qbit

* remove qbittorrent from `charts`

* Add upgrade_info to qbit

* fix paths
2023-04-04 17:35:58 +03:00
Stavros Kois
dc5ae91a7f NAS-121263 / 23.10 / Common: Fix pre-upgrade postgresBackup job and adds a template for postgres-wait (#1071)
* Fix pre-upgrade postgresBackup job and adds a template for postgres-wait

* reduce terminationGracePeriod to the j8s default.
2023-04-03 17:50:11 +03:00
Stavros Kois
929e60d801 NAS-121003 / 23.10 / Adapt charts CI and improve/fix common (#1011)
* Adapt charts CI and improve/fix common

* add check on permissions contaienr

* add postgres template

* update comments

* Update create_app.sh

* add check

* update script

* auto gen item.yaml from Chart,yaml

* rename readme on dest

* duplicate readme from the same source

* correct comment

* reoder

* remove extra space

* keep both README and app-readme

* update regex, to also allow 2 letter names, which is also valid

* No need to check host network if there aren't any pod values

* use same pattern as the pod.name label (not prepending release-name

* update deps

* add chart dirs to ci

* Add a validation to check if there is any yaml errors after merging files

* update charts path on ci

* common/1.0.0/ -> common/

* update common-test dep path

* temp update create_app script

* make permissions container name configurable, incase we want to change order of execution

* update naming convention

* fix typo and a missed name change

* do not allow `--` in names
2023-03-16 17:36:19 +02:00
Stavros Kois
5b1abdd839 NAS-118930 / 23.10 / Improve/Refactor Common Library (#917)
* fix

* fix

* some more

* somefixs

* whops

* initial structure

* finish up configmap

* secret class

* runtest secret

* move files arround

* ignore

* make clear on call template that need root context

* imagePullSecret (minus targetSelector)

* move out of the way

* clean up comment

* deployment basic spec

* daemonset basic spec

* statefulset spec

* split file

* docs

* update values

* job spec

* job docs

* cronJob basic spec

* job in cron test

* add common version

* podsepc

* whoopsis

* selectorlabels and pod metadata

* job and cron pod metadata

* update docs

* consistent order

* get ready for pod

* first targetSelector

* remove todo

* update docs

* add hostnet and enableservicelinks

* update selector logic

* update docs

* add tests for restartpolicy

* schedulerName

* priorityclassname

* hostname

* termperiodsec

* nodeselector

* add fail case

* host aliases

* dns policy

* dns config

* tolerations

* serviceaccoutn class, spawner, saname selector

* add pod todo

* update some tests

* add runtimeclassname

* controllers -> workload and plurar to singular

* require at least 1 primary on enabled SAs

* fix script

* remove wrong comment

* update naming scheme

* update rbac values ref

* rbac docs

* rbac's

* append short name, for future use

* update comments

* initial service wireframe

* shorten line

* simplify labels and update tests

* service selectors

* simplify error messages

* finish clusterIP type

* loadbalancer

* noedport

* externalname

* external ip

* update service

* fix highlighting

* session affinity

* add comment

* update comments

* service ports

* fix indentation

* externalname can have no ports

* fixup externalIP

* add pvc class and spawner and tests

* add nfs and emptyDir vols

* example

* extend docs a bit

* not create pvc if existing claim is set

* helm... you are dumb really. how this fixes an unrelated test

* add configmap

* add secret vol

* add pvc vol

* add hostpath

* finish volumes

* initial podsec

* podsec context with some todo's to check

* automatic sysctls

* remove todo

* update doc struct

* split docs

* split service docs

* initial container plumbing

* fix tests

* fix test

* rename to class

* command and args

* termination

* add lifecycle

* int value from tpl

* another case

* fix service protocol tpl

* update readme

* ports

* update todo

* cleanup values a bit

* only add sysctl when port is bellow 1024

* whops, thats a different range

* update avlue

* move some old docs to the "to be deleted" dir

* externalinteface validation

* update an error message and apply externalinterface annotations to workloads

* external interfaces

* TZ - TIMEZONE

* update rdoc

* reduce code duple

* device vol type

* initial certificate plumbing

* update comments

* finish secret creation of certificate

* cert dosc

* volumeMounts

* scale certs

* doc

* add tests for volMounts

* values updates

* update todo

* add test case

* remove some todo

* update todos

* vct

* remove tdoo

* restore default

* rename function

* make selectorlabels a bit better

* trim

* some cleanup

* update some ci values

* update ci

* rollingup defaults

* rename dir

* fix nil pointers

* check the same strategy var

* whops

* fix tests

* typo

* not a good day for copy paste

* move check

* move another check

* fix some tests for upcoming probes

* one mroe

* split docs

* add default probes for `main` and docs

* add probes and some ci testruns

* whops

* fix an edge case

* add an error for edge case

* runtests

* runtest updaets

* update

* check if podvalues exist first

* force types

* force only one of the 2

* quote labels and annotaions values

* job/cron have auto gen selectors

* remove false test

* fix maxsureg

* fix end

* different fix

* fix some tests

* fix rollUp

* try to fix 3.9.4 helm

* move file to helpers

* use capital types in probes and lifecycle

* Revert "use capital types in probes and lifecycle"

This reverts commit 380ebd5f1f.

* typo

* use lowercase for protocol everywhere

* rbac runtest

* prune old

* add resources

* add resources

* fix rbc

* fix sa naming in pod

* fix test

* 44 suppl group on gpu

* remove todo

* extract function in another file

* whops

* add securityContext implementation

* add fail cases

* add rest of the tests

* remove todo

* envFrom

* minify

* env list

* add env

* add envdupe check tests

* add fixed envs

* replace containers with callers

* add callers

* add initContainer

* add init run test

* reset default test val

* add  name tests

* add some more tests

* rename

* validate workload type only if enabled

* lint fix for 3.9.4

* add tpl on init enabled

* whops

* fix init

* echo

* echo

* args...

* list

* comment out disabled persistences

* fix some typos and improve resources `requests` requirement

* improve docs a bit

* require name,description,version,type

* add some wording regarding what Helm Template column means

* add title as requirement

* remove scheduler

* remove priority class name

* remove nfs + externalIP

* remove LB

* remove STS & VCT

* fix a test

* remove nodeselector

* remove DS

* remove pvc

* remove todo

* conditionally print the type, as we might want to use the template to select all objects inthe chart

* add some docs

* docs for notes

* add `tls.` in the certificate secret, according to k8s docs

* add some basic docs around the rest of the options

* clean values.yaml

* catch an edge case

* remove externalName

* set autmountSA on SA to false

* add note about the automountSA
2023-02-20 15:23:33 +02:00
M. Rehan
d39c5bbb9c Add common method for defining cpu/memory/gpu limitations 2022-07-29 02:12:09 +05:00
M. Rehan
ffd44aac0c Remove unused library common charts 2022-07-28 03:46:22 +05:00
M. Rehan
dd2d22d165 Add resource limits for applications 2022-06-28 18:32:27 +05:00
M. Rehan
8b63e23625 Allow special paths for host path mounts 2022-06-22 16:47:58 +05:00
M. Rehan
e599e7ec1e Add host path validations for applications 2022-06-15 17:47:56 +05:00
M. Rehan
b39abe009b Update library 2021-12-06 21:23:47 +05:00
Waqar Ahmed
8236d93473 Don't scope dns values by referencing .values directly 2021-05-10 12:59:38 +05:00
Waqar Ahmed
8b338dcb7d Only set dnspolicy if explicitly specified 2021-05-10 12:49:28 +05:00
Waqar Ahmed
0e01406359 Bump library chart version 2021-05-10 12:45:40 +05:00
Waqar Ahmed
cbc89cfd2a Properly quote env variables 2021-04-08 16:28:32 +05:00
Waqar Ahmed
e5b2930167 Update library chart version 2021-04-08 16:11:52 +05:00
Waqar Ahmed
a7f85c693d Consider cert key as a string in library chart 2021-02-08 02:44:54 +05:00
Waqar Ahmed
eaad608b76 Add library function to retrieve certificates 2021-02-06 23:09:03 +05:00
Waqar Ahmed
0960e8b2cd Allow specifying extra selector labels 2021-02-05 17:48:44 +05:00
Waqar Ahmed
68d7eace3b Allow overriding service account name 2021-02-05 14:32:50 +05:00
Waqar Ahmed
d7a1faa01b Add name suffix after evaluating name 2021-02-05 03:52:57 +05:00
Waqar Ahmed
fa234612af Add environment variables to test values 2021-02-04 01:15:51 +05:00
Waqar Ahmed
c2fb3d5d36 Remove common method for volume configuration based on old format 2021-02-03 22:36:25 +05:00
Waqar Ahmed
c03f6f5b67 Add method to render common deployment configuration 2021-02-03 18:27:24 +05:00
Waqar Ahmed
de0e83ad39 Use updateStrategy as a variable instead of strategyType 2021-02-03 18:11:11 +05:00
Waqar Ahmed
1e7b184520 Add common methods for deployment metadata 2021-02-03 16:14:05 +05:00
Waqar Ahmed
b91bc88153 Add common method to render GPU configuration 2021-02-03 16:02:31 +05:00
Waqar Ahmed
9c13001a5a Fix whitespace issues for volume rendering 2021-02-02 19:21:29 +05:00
Waqar Ahmed
502e700103 Add method to render all volumes/env variables 2021-02-02 17:51:34 +05:00
Waqar Ahmed
7fea12a0a6 Add validation for dataset name 2021-02-02 17:51:34 +05:00
Waqar Ahmed
9167d97343 Add common method to specify container/volume mounts 2021-02-02 17:51:34 +05:00
Waqar Ahmed
996c0c9593 Change common library chart directory structure allowing us to keep different versions of a single library chart 2021-02-02 15:14:44 +05:00
Waqar Ahmed
0ab705bc91 Separate common chart specific values in another variable 2021-02-02 15:14:44 +05:00
Waqar Ahmed
15ef56b8f0 Properly render full name if name is a substring of release name 2021-02-02 15:14:44 +05:00
Waqar Ahmed
c325524327 Allow overriding service name 2021-02-02 15:14:44 +05:00
Waqar Ahmed
e7f4adc039 Don't use a common name for service param 2021-02-02 15:14:44 +05:00
Waqar Ahmed
0e1ee81f36 Add name suffix for chart releases having more then 1 deployments 2021-02-02 15:14:44 +05:00
Waqar Ahmed
b8dc33b5be Have a line break between rendering environment variables 2021-02-02 15:14:44 +05:00
Waqar Ahmed
24045b305f Properly render services in common chart 2021-02-02 15:14:44 +05:00
Waqar Ahmed
7a51a9ad40 Add common serviceaccount implementation 2021-02-02 15:14:44 +05:00
Waqar Ahmed
de3948ecdd Fix line indent for volume configuration 2021-02-02 15:14:44 +05:00
Waqar Ahmed
fe8069a22d Add method to retrieve image/annotations and secrets configuration 2021-01-30 00:21:50 +05:00
Waqar Ahmed
9f527e21ea Add method to render environment variables 2021-01-30 00:21:50 +05:00
Waqar Ahmed
2865d86d42 Add helper to retrieve all volumes configuration 2021-01-30 00:21:50 +05:00
Waqar Ahmed
4a895d6b63 Add method to validate if values has required keys 2021-01-30 00:21:50 +05:00
Waqar Ahmed
399f867f26 Add method to retrieve single volume configuration based on input 2021-01-30 00:21:50 +05:00
Waqar Ahmed
cea74cc63f Add method to retrieve host path from user input or ix volumes 2021-01-30 00:21:50 +05:00
Waqar Ahmed
1b0c2107e5 Retrieve cronjob app version 2021-01-30 00:21:50 +05:00
Waqar Ahmed
49a08334e0 Add common implementation for networking/storage 2021-01-30 00:21:50 +05:00
Waqar Ahmed
4f2ef3691a Add common implementation of services 2021-01-30 00:21:50 +05:00