|
163 | 163 | {{- end -}} |
164 | 164 | {{- end -}} |
165 | 165 |
|
| 166 | +{{/* SHARED SETTINGS */}} |
| 167 | +{{- define "wire-server.settings.common" -}} |
| 168 | +maxTeamSize: {{ .maxTeamSize }} |
| 169 | +maxConvSize: {{ .maxConvSize }} |
| 170 | +intraListing: {{ .intraListing }} |
| 171 | +{{- if .maxFanoutSize }} |
| 172 | +maxFanoutSize: {{ .maxFanoutSize }} |
| 173 | +{{- end }} |
| 174 | +{{- if .exposeInvitationURLsTeamAllowlist }} |
| 175 | +exposeInvitationURLsTeamAllowlist: {{ toYaml .exposeInvitationURLsTeamAllowlist | nindent 8 }} |
| 176 | +{{- end }} |
| 177 | +{{- if .conversationCodeURI }} |
| 178 | +conversationCodeURI: {{ .conversationCodeURI | quote }} |
| 179 | +{{- else if .multiIngress }} |
| 180 | +multiIngress: {{- toYaml .multiIngress | nindent 8 }} |
| 181 | +{{- else }} |
| 182 | +{{ fail "Either settings.conversationCodeURI or settings.multiIngress have to be set" }} |
| 183 | +{{- end }} |
| 184 | +{{- if (and .conversationCodeURI .multiIngress) }} |
| 185 | +{{ fail "settings.conversationCodeURI and settings.multiIngress are mutually exclusive" }} |
| 186 | +{{- end }} |
| 187 | +{{- if hasKey . "httpPoolSize" }} |
| 188 | +httpPoolSize: {{ .httpPoolSize }} |
| 189 | +{{- end }} |
| 190 | +{{- if hasKey . "federationDomain" }} |
| 191 | +federationDomain: {{ .federationDomain }} |
| 192 | +{{- end }} |
| 193 | +{{- if .federationProtocols }} |
| 194 | +federationProtocols: {{ .federationProtocols | toJson }} |
| 195 | +{{- end }} |
| 196 | +{{- if .mlsPrivateKeyPaths }} |
| 197 | +mlsPrivateKeyPaths: {{- toYaml .mlsPrivateKeyPaths | nindent 8 }} |
| 198 | +{{- end }} |
| 199 | +{{- if .concurrentDeletionEvents }} |
| 200 | +concurrentDeletionEvents: {{ .concurrentDeletionEvents }} |
| 201 | +{{- end }} |
| 202 | +{{- if .deleteConvThrottleMillis }} |
| 203 | +deleteConvThrottleMillis: {{ .deleteConvThrottleMillis }} |
| 204 | +{{- end }} |
| 205 | +{{- if hasKey . "disabledAPIVersions" }} |
| 206 | +disabledAPIVersions: {{ toJson .disabledAPIVersions }} |
| 207 | +{{- end }} |
| 208 | +{{- if .guestLinkTTLSeconds }} |
| 209 | +guestLinkTTLSeconds: {{ .guestLinkTTLSeconds }} |
| 210 | +{{- end }} |
| 211 | +passwordHashingOptions: {{ toYaml .passwordHashingOptions | nindent 8 }} |
| 212 | +passwordHashingRateLimit: {{ toYaml .passwordHashingRateLimit | nindent 8 }} |
| 213 | +{{- if .checkGroupInfo }} |
| 214 | +checkGroupInfo: {{ .checkGroupInfo }} |
| 215 | +{{- end }} |
| 216 | +{{- if hasKey . "meetings" }} |
| 217 | +meetings: |
| 218 | + {{- toYaml .meetings | nindent 8 }} |
| 219 | +{{- end }} |
| 220 | +{{- if .featureFlags }} |
| 221 | +featureFlags: |
| 222 | + sso: {{ .featureFlags.sso }} |
| 223 | + legalhold: {{ .featureFlags.legalhold }} |
| 224 | + teamSearchVisibility: {{ .featureFlags.teamSearchVisibility }} |
| 225 | + classifiedDomains: |
| 226 | + {{- toYaml .featureFlags.classifiedDomains | nindent 10 }} |
| 227 | + {{- if .featureFlags.fileSharing }} |
| 228 | + fileSharing: |
| 229 | + {{- toYaml .featureFlags.fileSharing | nindent 10 }} |
| 230 | + {{- end }} |
| 231 | + {{- if .featureFlags.enforceFileDownloadLocation }} |
| 232 | + enforceFileDownloadLocation: |
| 233 | + {{- toYaml .featureFlags.enforceFileDownloadLocation | nindent 10 }} |
| 234 | + {{- end }} |
| 235 | + {{- if .featureFlags.sndFactorPasswordChallenge }} |
| 236 | + sndFactorPasswordChallenge: |
| 237 | + {{- toYaml .featureFlags.sndFactorPasswordChallenge | nindent 10 }} |
| 238 | + {{- end }} |
| 239 | + {{- if .featureFlags.searchVisibilityInbound }} |
| 240 | + searchVisibilityInbound: |
| 241 | + {{- toYaml .featureFlags.searchVisibilityInbound | nindent 10 }} |
| 242 | + {{- end }} |
| 243 | + {{- /* Accept the legacy typo in Helm values, but always render the canonical Galley key. */}} |
| 244 | + {{- $validateSAMLemails := .featureFlags.validateSAMLemails | default .featureFlags.validateSAMLEmails }} |
| 245 | + {{- if $validateSAMLemails }} |
| 246 | + validateSAMLemails: |
| 247 | + {{- toYaml $validateSAMLemails | nindent 10 }} |
| 248 | + {{- end }} |
| 249 | + {{- if .featureFlags.appLock }} |
| 250 | + appLock: |
| 251 | + {{- toYaml .featureFlags.appLock | nindent 10 }} |
| 252 | + {{- end }} |
| 253 | + {{- if .featureFlags.conferenceCalling }} |
| 254 | + conferenceCalling: |
| 255 | + {{- toYaml .featureFlags.conferenceCalling | nindent 10 }} |
| 256 | + {{- end }} |
| 257 | + {{- if .featureFlags.selfDeletingMessages }} |
| 258 | + selfDeletingMessages: |
| 259 | + {{- toYaml .featureFlags.selfDeletingMessages | nindent 10 }} |
| 260 | + {{- end }} |
| 261 | + {{- if .featureFlags.conversationGuestLinks }} |
| 262 | + conversationGuestLinks: |
| 263 | + {{- toYaml .featureFlags.conversationGuestLinks | nindent 10 }} |
| 264 | + {{- end }} |
| 265 | + {{- if .featureFlags.mls }} |
| 266 | + mls: |
| 267 | + {{- toYaml .featureFlags.mls | nindent 10 }} |
| 268 | + {{- end }} |
| 269 | + {{- if .featureFlags.outlookCalIntegration }} |
| 270 | + outlookCalIntegration: |
| 271 | + {{- toYaml .featureFlags.outlookCalIntegration | nindent 10 }} |
| 272 | + {{- end }} |
| 273 | + {{- if .featureFlags.mlsE2EId }} |
| 274 | + mlsE2EId: |
| 275 | + {{- toYaml .featureFlags.mlsE2EId | nindent 10 }} |
| 276 | + {{- end }} |
| 277 | + {{- if .featureFlags.mlsMigration }} |
| 278 | + mlsMigration: |
| 279 | + {{- toYaml .featureFlags.mlsMigration | nindent 10 }} |
| 280 | + {{- end }} |
| 281 | + {{- if .featureFlags.limitedEventFanout }} |
| 282 | + limitedEventFanout: |
| 283 | + {{- toYaml .featureFlags.limitedEventFanout | nindent 10 }} |
| 284 | + {{- end }} |
| 285 | + {{- if .featureFlags.domainRegistration }} |
| 286 | + domainRegistration: |
| 287 | + {{- toYaml .featureFlags.domainRegistration | nindent 10 }} |
| 288 | + {{- end }} |
| 289 | + {{- if .featureFlags.channels }} |
| 290 | + channels: |
| 291 | + {{- toYaml .featureFlags.channels | nindent 10 }} |
| 292 | + {{- end }} |
| 293 | + {{- if .featureFlags.cells }} |
| 294 | + cells: |
| 295 | + {{- toYaml .featureFlags.cells | nindent 10 }} |
| 296 | + {{- end }} |
| 297 | + {{- if .featureFlags.cellsInternal }} |
| 298 | + cellsInternal: |
| 299 | + {{- toYaml .featureFlags.cellsInternal | nindent 10 }} |
| 300 | + {{- end }} |
| 301 | + {{- if .featureFlags.allowedGlobalOperations }} |
| 302 | + allowedGlobalOperations: |
| 303 | + {{- toYaml .featureFlags.allowedGlobalOperations | nindent 10 }} |
| 304 | + {{- end }} |
| 305 | + {{- if .featureFlags.assetAuditLog }} |
| 306 | + assetAuditLog: |
| 307 | + {{- toYaml .featureFlags.assetAuditLog | nindent 10 }} |
| 308 | + {{- end }} |
| 309 | + {{- if .featureFlags.consumableNotifications }} |
| 310 | + consumableNotifications: |
| 311 | + {{- toYaml .featureFlags.consumableNotifications | nindent 10 }} |
| 312 | + {{- end }} |
| 313 | + {{- if .featureFlags.chatBubbles }} |
| 314 | + chatBubbles: |
| 315 | + {{- toYaml .featureFlags.chatBubbles | nindent 10 }} |
| 316 | + {{- end }} |
| 317 | + {{- if .featureFlags.apps }} |
| 318 | + apps: |
| 319 | + {{- toYaml .featureFlags.apps | nindent 10 }} |
| 320 | + {{- end }} |
| 321 | + {{- if .featureFlags.simplifiedUserConnectionRequestQRCode }} |
| 322 | + simplifiedUserConnectionRequestQRCode: |
| 323 | + {{- toYaml .featureFlags.simplifiedUserConnectionRequestQRCode | nindent 10 }} |
| 324 | + {{- end }} |
| 325 | + {{- if .featureFlags.stealthUsers }} |
| 326 | + stealthUsers: |
| 327 | + {{- toYaml .featureFlags.stealthUsers | nindent 10 }} |
| 328 | + {{- end }} |
| 329 | + {{- if .featureFlags.meetings }} |
| 330 | + meetings: |
| 331 | + {{- toYaml .featureFlags.meetings | nindent 10 }} |
| 332 | + {{- end }} |
| 333 | + {{- if .featureFlags.meetingsPremium }} |
| 334 | + meetingsPremium: |
| 335 | + {{- toYaml .featureFlags.meetingsPremium | nindent 10 }} |
| 336 | + {{- end }} |
| 337 | +{{- end }} |
| 338 | +{{- end -}} |
| 339 | + |
166 | 340 | {{/* Compute the SCIM base URI |
167 | 341 |
|
168 | 342 | The rules are: |
|
0 commit comments