Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/fileStore/file-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,6 @@ export function getFileMaps(envDir: string): Map<AplKind, FileMap> {
name: 'platformBackups',
})

maps.set('AplSmtp', {
kind: 'AplSmtp',
envDir,
pathGlob: `${envDir}/env/settings/*smtp.{yaml,yaml.dec}`,
pathTemplate: 'env/settings/smtp.yaml',
name: 'smtp',
})

maps.set('AplUser', {
kind: 'AplUser',
envDir,
Expand Down
37 changes: 0 additions & 37 deletions src/openapi/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -378,41 +378,4 @@ Settings:
platformAdmin: [read-any, update-any]
teamAdmin: [read]
teamMember: [read]
smtp:
title: SMTP
additionalProperties: false
nullable: true
properties:
auth_identity:
title: Authentication identity
type: string
auth_password:
title: Authentication password
type: string
auth_secret:
title: Authentication secret
type: string
auth_username:
title: Authentication username
type: string
from:
$ref: 'definitions.yaml#/email'
description: The from address. Defaults to alerts@$clusterDomain.
title: From address
hello:
description: The hostname to identify to the SMTP server.
title: Hello
type: string
smarthost:
description: The smtp host:port combination.
pattern: ^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9]):()([1-9]|[1-5]?[0-9]{2,4}|6[1-4][0-9]{3}|65[1-4][0-9]{2}|655[1-2][0-9]|6553[1-5])$
type: string
title: Smart Host
required:
- smarthost
type: object
x-acl:
platformAdmin: [read-any, update-any]
teamAdmin: []
teamMember: []
type: object
4 changes: 0 additions & 4 deletions src/openapi/settingsinfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ SettingsInfo:
branch:
type: string
description: The branch to use in the Git repository.
smtp:
properties:
smarthost:
type: string
ingressClassNames:
description: Ingress class names that are used by the cluster.
items:
Expand Down
3 changes: 0 additions & 3 deletions src/otomi-models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export type Alerts = Settings['alerts']
export type Cluster = Settings['cluster']
export type Dns = Settings['dns']
export type Ingress = Settings['ingress']
export type Smtp = Settings['smtp']
export type Kms = Settings['kms']
export type Oidc = Settings['oidc']
export type Otomi = Settings['otomi']
Expand Down Expand Up @@ -112,7 +111,6 @@ export const APL_KINDS = [
'AplKms',
'AplIdentityProvider',
'AplCapabilitySet',
'AplSmtp',
'AplBackupCollection',
'AplUser',
'AplPlatformSettingSet',
Expand Down Expand Up @@ -305,7 +303,6 @@ export interface Repo {
oidc: Oidc
otomi: Otomi
platformBackups: Record<string, any>
smtp: Smtp
users: User[]
versions: Versions
teamConfig: Record<string, TeamConfig>
Expand Down
8 changes: 3 additions & 5 deletions src/otomi-stack.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CoreV1Api, KubeConfig, User as k8sUser, V1ObjectReference } from '@kubernetes/client-node'
import { CoreV1Api, User as k8sUser, KubeConfig, V1ObjectReference } from '@kubernetes/client-node'
import Debug from 'debug'

import { getRegions, ObjectStorageKeyRegions, Region, ResourcePage } from '@linode/api-v4'
Expand Down Expand Up @@ -123,6 +123,7 @@ import {
getTeamSecretsFromK8s,
watchPodUntilRunning,
} from './k8s_operations'
import CloudTty from './tty'
import {
getGiteaRepoUrls,
getPrivateRepoBranches,
Expand All @@ -143,7 +144,6 @@ import {
sparseCloneChart,
validateGitUrl,
} from './utils/workloadUtils'
import CloudTty from './tty'

interface ExcludedApp extends App {
managed: boolean
Expand Down Expand Up @@ -318,7 +318,7 @@ export default class OtomiStack {
}

getSettingsInfo(): SettingsInfo {
const settings = this.getSettings(['cluster', 'dns', 'otomi', 'smtp', 'ingress'])
const settings = this.getSettings(['cluster', 'dns', 'otomi', 'ingress'])
const otomiInfo = pick(settings.otomi, [
'hasExternalDNS',
'hasExternalIDP',
Expand All @@ -334,7 +334,6 @@ export default class OtomiStack {
cluster: pick(settings.cluster, ['name', 'domainSuffix', 'apiServer', 'provider', 'linode']),
dns: pick(settings.dns, ['zones']),
otomi: otomiInfo,
smtp: pick(settings.smtp, ['smarthost']),
ingressClassNames: map(settings.ingress?.classes, 'className') ?? [],
} as SettingsInfo
}
Expand Down Expand Up @@ -2694,7 +2693,6 @@ export default class OtomiStack {
const settingsPrefixMap: Record<string, string> = {
AplDns: 'dns.',
AplKms: 'kms.',
AplSmtp: 'smtp.',
AplIdentityProvider: 'oidc.',
AplCapabilitySet: 'otomi.',
AplAlertSet: 'alerts.',
Expand Down
6 changes: 0 additions & 6 deletions test/env/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,4 @@ otomi:
isHomeMonitored: true
isMultitenant: true
version: latest
smtp:
auth_password: somesecretvalue
auth_identity: no-reply@doma.in
from: no-reply@doma.in
hello: doma.in
smarthost: smtp-relay.gmail.com:587
version: 5
Loading