Browse Source

correcting dependencies +

master
Keny Villela 2 years ago
parent
commit
d32e3fa05c
  1. 2
      charts/sigi/v0.2.3/Chart.yaml
  2. 113
      charts/sigi/v0.2.3/templates/deployment.yaml
  3. 26
      charts/sigi/v0.2.3/values.yaml

2
charts/sigi/v0.2.3/Chart.yaml

@ -13,7 +13,7 @@ version: 0.2.3
# This is the version number of the application being deployed. This version number should be # 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 # incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using. # follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 3.0.0 appVersion: 3.0.38
icon: https://git.interlegis.leg.br/SEIT/rancher-charts/raw/master/images/sigi_interlegis.png icon: https://git.interlegis.leg.br/SEIT/rancher-charts/raw/master/images/sigi_interlegis.png

113
charts/sigi/v0.2.3/templates/deployment.yaml

@ -46,111 +46,54 @@ spec:
- name: DATABASE_URL - name: DATABASE_URL
value: {{ printf "postgresql://%s:%s@%s:5432/%s" .Values.postgresql.auth.username .Values.postgresql.auth.password (include "postgresql.fullname" .) .Values.postgresql.auth.database| quote }} value: {{ printf "postgresql://%s:%s@%s:5432/%s" .Values.postgresql.auth.username .Values.postgresql.auth.password (include "postgresql.fullname" .) .Values.postgresql.auth.database| quote }}
- name: ADMINS - name: ADMINS
valueFrom: value: "{{ .Values.sigi.emailAdmins }}"
configMapKeyRef:
name: sigi-email
key: ADMINS
- name: EMAIL_PORT - name: EMAIL_PORT
valueFrom: value: "{{ .Values.sigi.emailPort }}"
configMapKeyRef:
name: sigi-email
key: EMAIL_PORT
- name: EMAIL_HOST - name: EMAIL_HOST
valueFrom: value: "{{ .Values.sigi.emailHost }}"
configMapKeyRef:
name: sigi-email
key: EMAIL_HOST
- name: DEFAULT_FROM_EMAIL - name: DEFAULT_FROM_EMAIL
valueFrom: value: "{{ .Values.sigi.defaultFromEmail }}"
configMapKeyRef:
name: sigi-email
key: DEFAULT_FROM_EMAIL
- name: AUTH_LDAP_SERVER_URI - name: AUTH_LDAP_SERVER_URI
valueFrom: value: "{{ .Values.sigi.auth.ldap.serverURI }}"
configMapKeyRef:
name: sigi-auth-ldap
key: AUTH_LDAP_SERVER_URI
- name: AUTH_LDAP_BIND_DN - name: AUTH_LDAP_BIND_DN
valueFrom: value: "{{ .Values.sigi.auth.ldap.bindDN }}"
configMapKeyRef:
name: sigi-auth-ldap
key: AUTH_LDAP_BIND_DN
- name: AUTH_LDAP_USER - name: AUTH_LDAP_USER
valueFrom: value: "{{ .Values.sigi.auth.ldap.user }}"
configMapKeyRef: - name: AUTH_LDAP_BIND_PASSWORD
name: sigi-auth-ldap valueFrom:
key: AUTH_LDAP_USER # Secret Key
secretKeyRef:
name: {{ include "sigi.fullname" . }}-auth-ldap-key
key: AUTH_LDAP_BIND_PASSWORD
- name: AUTH_LDAP_USER_SEARCH_STRING - name: AUTH_LDAP_USER_SEARCH_STRING
valueFrom: value: "{{ .Values.sigi.auth.ldap.userSearchString }}"
configMapKeyRef: - name: AUTH_LDAP_USER_ATTR_MAP
name: sigi-auth-ldap value: {{ .Values.sigi.auth.ldap.userAttrMap | quote }}
key: AUTH_LDAP_USER_SEARCH_STRING
- name: AUTH_LDAP_GROUP - name: AUTH_LDAP_GROUP
valueFrom: value: "{{ .Values.sigi.auth.ldap.group }}"
configMapKeyRef:
name: sigi-auth-ldap
key: AUTH_LDAP_GROUP
- name: AUTH_LDAP_GROUP_SEARCH_STRING - name: AUTH_LDAP_GROUP_SEARCH_STRING
valueFrom: value: "{{ .Values.sigi.auth.ldap.groupSearchString }}"
configMapKeyRef:
name: sigi-auth-ldap
key: AUTH_LDAP_GROUP_SEARCH_STRING
- name: AUTH_LDAP_GROUP_TYPE_STRING - name: AUTH_LDAP_GROUP_TYPE_STRING
valueFrom: value: "{{ .Values.sigi.auth.ldap.groupTypeString }}"
configMapKeyRef:
name: sigi-auth-ldap
key: AUTH_LDAP_GROUP_TYPE_STRING
- name: AUTH_LDAP_USER_ATTR_MAP
valueFrom:
configMapKeyRef:
name: sigi-auth-ldap
key: AUTH_LDAP_USER_ATTR_MAP
- name: AUTH_LDAP_PROFILE_ATTR_MAP
valueFrom:
configMapKeyRef:
name: sigi-auth-ldap
key: AUTH_LDAP_PROFILE_ATTR_MAP
- name: AUTH_LDAP_FIND_GROUP_PERMS - name: AUTH_LDAP_FIND_GROUP_PERMS
valueFrom: value: "{{ .Values.sigi.auth.ldap.findGroupPerms }}"
configMapKeyRef:
name: sigi-auth-ldap
key: AUTH_LDAP_FIND_GROUP_PERMS
- name: AUTH_LDAP_MIRROR_GROUPS - name: AUTH_LDAP_MIRROR_GROUPS
valueFrom: value: "{{ .Values.sigi.auth.ldap.mirrorGroups }}"
configMapKeyRef:
name: sigi-auth-ldap
key: AUTH_LDAP_MIRROR_GROUPS
- name: AUTH_LDAP_CACHE_GROUPS - name: AUTH_LDAP_CACHE_GROUPS
valueFrom: value: "{{ .Values.sigi.auth.ldap.cacheGroups }}"
configMapKeyRef:
name: sigi-auth-ldap
key: AUTH_LDAP_CACHE_GROUPS
- name: AUTH_LDAP_GROUP_CACHE_TIMEOUT - name: AUTH_LDAP_GROUP_CACHE_TIMEOUT
valueFrom: value: "{{ .Values.sigi.auth.ldap.groupCacheTimeout }}"
configMapKeyRef: - name: AUTH_LDAP_PROFILE_ATTR_MAP
name: sigi-auth-ldap value: {{ .Values.sigi.auth.ldap.profileAttrMap | quote }}
key: AUTH_LDAP_GROUP_CACHE_TIMEOUT
- name: AUTH_PROFILE_MODULE - name: AUTH_PROFILE_MODULE
valueFrom: value: "{{ .Values.sigi.auth.profileModule }}"
configMapKeyRef:
name: sigi-auth-ldap
key: AUTH_PROFILE_MODULE
- name: AUTH_LDAP_BIND_PASSWORD
valueFrom:
# Secret Key
secretKeyRef:
name: sigi-auth-ldap-key
key: AUTH_LDAP_BIND_PASSWORD
- name: MOODLE_BASE_URL - name: MOODLE_BASE_URL
valueFrom: value: "{{ .Values.sigi.saberes.moodleUrl }}"
configMapKeyRef:
name: sigi-saberes-url
key: MOODLE_BASE_URL
- name: MOODLE_API_TOKEN - name: MOODLE_API_TOKEN
valueFrom: valueFrom:
# Secret Key # Secret Key
secretKeyRef: secretKeyRef:
name: sigi-saberes-tkn name: {{ include "sigi.fullname" . }}-saberes-tkn
key: MOODLE_API_TOKEN key: MOODLE_API_TOKEN
volumeMounts: volumeMounts:
# - mountPath: /var/interlegis/sigi/data # - mountPath: /var/interlegis/sigi/data

26
charts/sigi/v0.2.3/values.yaml

@ -54,6 +54,7 @@ sigi:
language: 'pt_BR.UTF-8' language: 'pt_BR.UTF-8'
emailPort: 25 emailPort: 25
emailHost: 'smtp.interlegis.leg.br' emailHost: 'smtp.interlegis.leg.br'
emailAdmins: "(('SIGI Administrator', 'sigi@interlegis.leg.br'),)"
defaultFromEmail: 'sigi@interlegis.leg.br' defaultFromEmail: 'sigi@interlegis.leg.br'
auth: auth:
ldap: ldap:
@ -61,19 +62,20 @@ sigi:
bindDN: 'CN=Sistema de Informações Gerenciais do Interlegis Service Account,OU=_UsuariosServicos,OU=2-AdministracaoSistemas,DC=senado,DC=gov,DC=br' bindDN: 'CN=Sistema de Informações Gerenciais do Interlegis Service Account,OU=_UsuariosServicos,OU=2-AdministracaoSistemas,DC=senado,DC=gov,DC=br'
bindPwd: 'RgtJdtvas7s4BSpjnVnR' bindPwd: 'RgtJdtvas7s4BSpjnVnR'
user: 'U=UsuariosPessoas,DC=senado,DC=gov,DC=br' user: 'U=UsuariosPessoas,DC=senado,DC=gov,DC=br'
userSearchString: '(sAMAccountName=%(user)s)' userSearchString: '(&(sAMAccountName=%(user)s)(department=*ILB*)(!(title=*Desligad*))(!(title=*inativ*)))'
group: 'OU=GruposAutomaticosOU,DC=senado,DC=gov,DC=br' userAttrMap: '{"first_name": "givenName", "last_name": "sn", "email": "userPrincipalName", }'
groupSearchString: '(objectClass=Group)' group: ''
groupTypeString: 'cn' groupSearchString: ''
findGroupPerms: True groupTypeString: ''
mirrorGroups: True findGroupPerms: False
cacheGroups: True mirrorGroups: False
groupCacheTimeout: 3600 cacheGroups: False
groupCacheTimeout: 0
profileAttrMap: '{"nome_completo": "cn"}'
profileModule: 'servidores.Servidor' profileModule: 'servidores.Servidor'
saberes:
saberes: moodleUrl: 'https://saberes.senado.leg.br'
moodleURL: 'https://saberes.senado.leg.br' moodleToken: 'altereme'
moodleToken: ''
ingress: ingress:
enabled: true enabled: true

Loading…
Cancel
Save