blob: 6790cfddaa2f325de5a83685d5d30d1387bb63cc [file] [log] [blame]
Giorgi Lekveishvilia09fad72024-03-21 15:24:35 +04001input: {}
DTabidze0d802592024-03-19 17:42:45 +04002
Giorgi Lekveishvilia09fad72024-03-21 15:24:35 +04003_domain: "memberships.\(global.privateDomain)"
DTabidze0d802592024-03-19 17:42:45 +04004
5name: "memberships"
Giorgi Lekveishvilia09fad72024-03-21 15:24:35 +04006namespace: "core-auth-memberships"
7readme: "Memberships application will be installed on Private network and be accessible at https://\(_domain)"
DTabidze0d802592024-03-19 17:42:45 +04008description: "The application is a membership management system designed to facilitate the organization and administration of groups and memberships. Can be configured to be reachable only from private network or publicly."
9icon: "<svg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 24 24'><path fill='currentColor' d='M15.43 15.48c-1.1-.49-2.26-.73-3.43-.73c-1.18 0-2.33.25-3.43.73c-.23.1-.4.29-.49.52h7.85a.978.978 0 0 0-.5-.52m-2.49-6.69C12.86 8.33 12.47 8 12 8s-.86.33-.94.79l-.2 1.21h2.28z' opacity='0.3'/><path fill='currentColor' d='M10.27 12h3.46a1.5 1.5 0 0 0 1.48-1.75l-.3-1.79a2.951 2.951 0 0 0-5.82.01l-.3 1.79c-.15.91.55 1.74 1.48 1.74m.79-3.21c.08-.46.47-.79.94-.79s.86.33.94.79l.2 1.21h-2.28zm-9.4 2.32c-.13.26-.18.57-.1.88c.16.69.76 1.03 1.53 1h1.95c.83 0 1.51-.58 1.51-1.29c0-.14-.03-.27-.07-.4c-.01-.03-.01-.05.01-.08c.09-.16.14-.34.14-.53c0-.31-.14-.6-.36-.82c-.03-.03-.03-.06-.02-.1c.07-.2.07-.43.01-.65a1.12 1.12 0 0 0-.99-.74a.09.09 0 0 1-.07-.03C5.03 8.14 4.72 8 4.37 8c-.3 0-.57.1-.75.26c-.03.03-.06.03-.09.02a1.24 1.24 0 0 0-1.7 1.03c0 .02-.01.04-.03.06c-.29.26-.46.65-.41 1.05c.03.22.12.43.25.6c.03.02.03.06.02.09m14.58 2.54c-1.17-.52-2.61-.9-4.24-.9c-1.63 0-3.07.39-4.24.9A2.988 2.988 0 0 0 6 16.39V18h12v-1.61c0-1.18-.68-2.26-1.76-2.74M8.07 16a.96.96 0 0 1 .49-.52c1.1-.49 2.26-.73 3.43-.73c1.18 0 2.33.25 3.43.73c.23.1.4.29.49.52zm-6.85-1.42A2.01 2.01 0 0 0 0 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29c-.37-.06-.74-.1-1.13-.1c-.99 0-1.93.21-2.78.58m21.56 0A6.95 6.95 0 0 0 20 14c-.39 0-.76.04-1.13.1c.4.68.63 1.46.63 2.29V18H24v-1.57c0-.81-.48-1.53-1.22-1.85M22 11v-.5c0-1.1-.9-2-2-2h-2c-.42 0-.65.48-.39.81l.7.63c-.19.31-.31.67-.31 1.06c0 1.1.9 2 2 2s2-.9 2-2'/></svg>"
10
11images: {
12 memberships: {
13 repository: "giolekva"
14 name: "memberships"
15 tag: "latest"
16 pullPolicy: "Always"
17 }
DTabidze618e2432024-03-20 21:07:52 +040018 authProxy: {
19 repository: "giolekva"
20 name: "auth-proxy"
21 tag: "latest"
22 pullPolicy: "Always"
23 }
DTabidze0d802592024-03-19 17:42:45 +040024}
25
26charts: {
27 memberships: {
28 chart: "charts/memberships"
29 sourceRef: {
30 kind: "GitRepository"
31 name: "pcloud"
32 namespace: global.id
33 }
34 }
DTabidze618e2432024-03-20 21:07:52 +040035 ingress: {
36 chart: "charts/ingress"
37 sourceRef: {
38 kind: "GitRepository"
39 name: "pcloud"
40 namespace: global.id
41 }
42 }
43 authProxy: {
44 chart: "charts/auth-proxy"
45 sourceRef: {
46 kind: "GitRepository"
47 name: "pcloud"
48 namespace: global.id
49 }
50 }
DTabidze0d802592024-03-19 17:42:45 +040051}
52
DTabidze618e2432024-03-20 21:07:52 +040053_membershipsServiceName: "memberships"
54_authProxyServiceName: "auth-proxy"
55_httpPortName: "http"
56
DTabidze0d802592024-03-19 17:42:45 +040057helm: {
Giorgi Lekveishvilia09fad72024-03-21 15:24:35 +040058 memberships: {
DTabidze0d802592024-03-19 17:42:45 +040059 chart: charts.memberships
60 values: {
DTabidze0d802592024-03-19 17:42:45 +040061 storage: {
62 size: "1Gi"
63 }
64 image: {
DTabidze618e2432024-03-20 21:07:52 +040065 repository: images.memberships.fullName
DTabidze0d802592024-03-19 17:42:45 +040066 tag: images.memberships.tag
67 pullPolicy: images.memberships.pullPolicy
68 }
DTabidze618e2432024-03-20 21:07:52 +040069 portName: _httpPortName
70 }
71 }
72 if input.requireAuth {
73 "auth-proxy": {
74 chart: charts.authProxy
75 values: {
76 image: {
77 repository: images.authProxy.fullName
78 tag: images.authProxy.tag
79 pullPolicy: images.authProxy.pullPolicy
80 }
81 upstream: "\(_membershipsServiceName).\(release.namespace).svc.cluster.local"
82 whoAmIAddr: "https://accounts.\(global.domain)/sessions/whoami"
83 loginAddr: "https://accounts-ui.\(global.domain)/login"
84 portName: _httpPortName
85 }
86 }
87 }
88 ingress: {
89 chart: charts.ingress
90 values: {
91 domain: _domain
92 ingressClassName: input.network.ingressClass
93 certificateIssuer: input.network.certificateIssuer
94 service: {
95 if input.requireAuth {
96 name: _authProxyServiceName
97 }
98 if !input.requireAuth {
99 name: _membershipsServiceName
100 }
101 port: name: _httpPortName
102 }
DTabidze0d802592024-03-19 17:42:45 +0400103 }
104 }
105}