Update teleport

This commit is contained in:
2025-05-13 22:48:36 +08:00
parent 7429da7f22
commit e2b5bb1376
25 changed files with 1367 additions and 125 deletions
@@ -8,8 +8,8 @@ adds operator permissions to ClusterRole:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-cluster
app.kubernetes.io/version: 17.2.7
helm.sh/chart: teleport-cluster-17.2.7
app.kubernetes.io/version: 17.4.9
helm.sh/chart: teleport-cluster-17.4.9
teleport.dev/majorVersion: "17"
name: RELEASE-NAME
rules:
@@ -24,7 +24,9 @@ configures access monitoring when its values are set:
workgroup: example_access_monitoring_workgroup
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-aws-cluster
@@ -101,7 +103,9 @@ keeps the session_recording type even when it's "off":
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: helm-lint
@@ -137,7 +141,9 @@ matches snapshot for acme-off.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-cluster-name
@@ -172,7 +178,9 @@ matches snapshot for acme-on.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-acme-cluster
@@ -207,7 +215,9 @@ matches snapshot for acme-uri-staging.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-acme-cluster
@@ -243,7 +253,9 @@ matches snapshot for auth-connector-name.yaml:
authentication:
connector_name: okta
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: helm-lint
@@ -312,7 +324,9 @@ matches snapshot for auth-locking-mode.yaml:
authentication:
local_auth: true
locking_mode: strict
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: helm-lint
@@ -377,13 +391,90 @@ matches snapshot for auth-passwordless.yaml:
output: stderr
severity: INFO
version: v3
matches snapshot for auth-secondfactors-sso.yaml:
1: |
|-
auth_service:
authentication:
local_auth: true
second_factors:
- sso
type: local
cluster_name: helm-lint
enabled: true
proxy_listener_mode: separate
kubernetes_service:
enabled: true
kube_cluster_name: helm-lint
listen_addr: 0.0.0.0:3026
public_addr: RELEASE-NAME-auth.NAMESPACE.svc.cluster.local:3026
proxy_service:
enabled: false
ssh_service:
enabled: false
teleport:
auth_server: 127.0.0.1:3025
log:
format:
extra_fields:
- timestamp
- level
- component
- caller
output: text
output: stderr
severity: INFO
version: v3
matches snapshot for auth-secondfactors-webauthn.yaml:
1: |
|-
auth_service:
authentication:
local_auth: true
second_factors:
- sso
- webauthn
type: local
webauthn:
attestation_allowed_cas:
- /etc/ssl/certs/ca-certificates.crt
attestation_denied_cas:
- /etc/ssl/certs/ca-certificates.crt
rp_id: helm-lint
cluster_name: helm-lint
enabled: true
proxy_listener_mode: separate
kubernetes_service:
enabled: true
kube_cluster_name: helm-lint
listen_addr: 0.0.0.0:3026
public_addr: RELEASE-NAME-auth.NAMESPACE.svc.cluster.local:3026
proxy_service:
enabled: false
ssh_service:
enabled: false
teleport:
auth_server: 127.0.0.1:3025
log:
format:
extra_fields:
- timestamp
- level
- component
- caller
output: text
output: stderr
severity: INFO
version: v3
matches snapshot for auth-type-legacy.yaml:
1: |
|-
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: github
webauthn:
rp_id: helm-lint
@@ -418,7 +509,9 @@ matches snapshot for auth-type.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: github
webauthn:
rp_id: helm-lint
@@ -531,7 +624,9 @@ matches snapshot for aws-dynamodb-autoscaling.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-aws-cluster
@@ -582,7 +677,9 @@ matches snapshot for aws-ha-acme.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-aws-cluster
@@ -628,7 +725,9 @@ matches snapshot for aws-ha-antiaffinity.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-aws-cluster
@@ -674,7 +773,9 @@ matches snapshot for aws-ha-log.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-aws-cluster
@@ -721,7 +822,9 @@ matches snapshot for aws-ha.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-aws-cluster
@@ -767,7 +870,9 @@ matches snapshot for aws.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-aws-cluster
@@ -813,7 +918,9 @@ matches snapshot for azure.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-azure-cluster
@@ -856,7 +963,9 @@ matches snapshot for azure.yaml without pool_max_conn:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-azure-cluster
@@ -899,7 +1008,9 @@ matches snapshot for existing-tls-secret-with-ca.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-cluster-name
@@ -934,7 +1045,9 @@ matches snapshot for existing-tls-secret.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-cluster-name
@@ -969,7 +1082,9 @@ matches snapshot for gcp-ha-acme.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-gcp-cluster
@@ -1014,7 +1129,9 @@ matches snapshot for gcp-ha-antiaffinity.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-gcp-cluster
@@ -1059,7 +1176,9 @@ matches snapshot for gcp-ha-log.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-gcp-cluster
@@ -1105,7 +1224,9 @@ matches snapshot for gcp.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-gcp-cluster
@@ -1150,7 +1271,9 @@ matches snapshot for initcontainers.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: helm-lint
@@ -1185,7 +1308,9 @@ matches snapshot for kube-cluster-name.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-aws-cluster
@@ -1220,7 +1345,9 @@ matches snapshot for log-basic.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-log-cluster
@@ -1255,7 +1382,9 @@ matches snapshot for log-extra.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-log-cluster
@@ -1290,7 +1419,9 @@ matches snapshot for log-legacy.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-log-cluster
@@ -1325,7 +1456,9 @@ matches snapshot for priority-class-name.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: helm-lint
@@ -1360,7 +1493,9 @@ matches snapshot for proxy-listener-mode-multiplex.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-proxy-listener-mode
@@ -1395,7 +1530,9 @@ matches snapshot for proxy-listener-mode-separate.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-proxy-listener-mode
@@ -1430,7 +1567,9 @@ matches snapshot for public-addresses.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: helm-lint
@@ -1465,7 +1604,9 @@ matches snapshot for separate-mongo-listener.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: helm-lint
@@ -1500,7 +1641,9 @@ matches snapshot for separate-postgres-listener.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: helm-lint
@@ -1535,7 +1678,9 @@ matches snapshot for service.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: helm-lint
@@ -1570,7 +1715,9 @@ matches snapshot for session-recording.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: helm-lint
@@ -1606,7 +1753,9 @@ matches snapshot for standalone-customsize.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-standalone-cluster
@@ -1643,7 +1792,9 @@ matches snapshot for standalone-existingpvc.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-standalone-cluster
@@ -1680,7 +1831,9 @@ matches snapshot for tolerations.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-aws-cluster
@@ -1724,7 +1877,9 @@ matches snapshot for version-override.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: test-cluster-name
@@ -1762,7 +1917,9 @@ matches snapshot for volumes.yaml:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: helm-lint
@@ -1791,6 +1948,39 @@ matches snapshot for volumes.yaml:
output: stderr
severity: INFO
version: v3
matches snapshot when both secondFactor and secondFactors are set.:
1: |
|-
auth_service:
authentication:
local_auth: true
second_factor: "off"
type: local
cluster_name: helm-lint
enabled: true
proxy_listener_mode: separate
kubernetes_service:
enabled: true
kube_cluster_name: helm-lint
listen_addr: 0.0.0.0:3026
public_addr: RELEASE-NAME-auth.NAMESPACE.svc.cluster.local:3026
proxy_service:
enabled: false
ssh_service:
enabled: false
teleport:
auth_server: 127.0.0.1:3025
log:
format:
extra_fields:
- timestamp
- level
- component
- caller
output: text
output: stderr
severity: INFO
version: v3
sets clusterDomain on Configmap:
1: |
apiVersion: v1
@@ -1812,7 +2002,9 @@ sets clusterDomain on Configmap:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: teleport.example.com
@@ -1848,8 +2040,8 @@ sets clusterDomain on Configmap:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-cluster
app.kubernetes.io/version: 17.2.7
helm.sh/chart: teleport-cluster-17.2.7
app.kubernetes.io/version: 17.4.9
helm.sh/chart: teleport-cluster-17.4.9
teleport.dev/majorVersion: "17"
name: RELEASE-NAME-auth
namespace: NAMESPACE
@@ -1859,7 +2051,9 @@ uses athena as primary backend when configured:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: teleport.example.com
@@ -1904,7 +2098,9 @@ uses athena, dynamo, and stdout when everything is on:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: teleport.example.com
@@ -1950,7 +2146,9 @@ uses dynamo as primary backend when configured:
auth_service:
authentication:
local_auth: true
second_factor: "on"
second_factors:
- otp
- webauthn
type: local
webauthn:
rp_id: teleport.example.com
@@ -8,7 +8,7 @@
- args:
- --diag-addr=0.0.0.0:3000
- --apply-on-startup=/etc/teleport/apply-on-startup.yaml
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
image: public.ecr.aws/gravitational/teleport-distroless:17.4.9
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -25,7 +25,7 @@
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
timeoutSeconds: 5
name: teleport
ports:
- containerPort: 3000
@@ -44,7 +44,8 @@
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
timeoutSeconds: 5
volumeMounts:
- mountPath: /etc/teleport
name: config
@@ -56,6 +57,23 @@
readOnly: true
serviceAccountName: RELEASE-NAME
terminationGracePeriodSeconds: 60
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/component: auth
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
- labelSelector:
matchLabels:
app.kubernetes.io/component: auth
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
volumes:
- name: auth-serviceaccount-token
projected:
@@ -141,7 +159,7 @@ should set nodeSelector when set in values:
- args:
- --diag-addr=0.0.0.0:3000
- --apply-on-startup=/etc/teleport/apply-on-startup.yaml
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
image: public.ecr.aws/gravitational/teleport-distroless:17.4.9
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -158,7 +176,7 @@ should set nodeSelector when set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
timeoutSeconds: 5
name: teleport
ports:
- containerPort: 3000
@@ -177,7 +195,8 @@ should set nodeSelector when set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
timeoutSeconds: 5
volumeMounts:
- mountPath: /etc/teleport
name: config
@@ -192,6 +211,23 @@ should set nodeSelector when set in values:
role: bastion
serviceAccountName: RELEASE-NAME
terminationGracePeriodSeconds: 60
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/component: auth
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
- labelSelector:
matchLabels:
app.kubernetes.io/component: auth
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
volumes:
- name: auth-serviceaccount-token
projected:
@@ -238,7 +274,7 @@ should set resources when set in values:
- args:
- --diag-addr=0.0.0.0:3000
- --apply-on-startup=/etc/teleport/apply-on-startup.yaml
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
image: public.ecr.aws/gravitational/teleport-distroless:17.4.9
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -255,7 +291,7 @@ should set resources when set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
timeoutSeconds: 5
name: teleport
ports:
- containerPort: 3000
@@ -274,7 +310,8 @@ should set resources when set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
timeoutSeconds: 5
resources:
limits:
cpu: 2
@@ -293,6 +330,23 @@ should set resources when set in values:
readOnly: true
serviceAccountName: RELEASE-NAME
terminationGracePeriodSeconds: 60
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/component: auth
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
- labelSelector:
matchLabels:
app.kubernetes.io/component: auth
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
volumes:
- name: auth-serviceaccount-token
projected:
@@ -324,7 +378,7 @@ should set securityContext when set in values:
- args:
- --diag-addr=0.0.0.0:3000
- --apply-on-startup=/etc/teleport/apply-on-startup.yaml
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
image: public.ecr.aws/gravitational/teleport-distroless:17.4.9
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -341,7 +395,7 @@ should set securityContext when set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
timeoutSeconds: 5
name: teleport
ports:
- containerPort: 3000
@@ -360,7 +414,8 @@ should set securityContext when set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
timeoutSeconds: 5
securityContext:
allowPrivilegeEscalation: false
privileged: false
@@ -379,6 +434,23 @@ should set securityContext when set in values:
readOnly: true
serviceAccountName: RELEASE-NAME
terminationGracePeriodSeconds: 60
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/component: auth
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
- labelSelector:
matchLabels:
app.kubernetes.io/component: auth
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
volumes:
- name: auth-serviceaccount-token
projected:
@@ -437,7 +509,7 @@ should use OSS image and not mount license when enterprise is not set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
timeoutSeconds: 5
name: teleport
ports:
- containerPort: 3000
@@ -456,7 +528,8 @@ should use OSS image and not mount license when enterprise is not set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
timeoutSeconds: 5
volumeMounts:
- mountPath: /etc/teleport
name: config
@@ -468,6 +541,23 @@ should use OSS image and not mount license when enterprise is not set in values:
readOnly: true
serviceAccountName: RELEASE-NAME
terminationGracePeriodSeconds: 60
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/component: auth
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
- labelSelector:
matchLabels:
app.kubernetes.io/component: auth
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
volumes:
- name: auth-serviceaccount-token
projected:
@@ -567,8 +567,8 @@ sets clusterDomain on Configmap:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-cluster
app.kubernetes.io/version: 17.2.7
helm.sh/chart: teleport-cluster-17.2.7
app.kubernetes.io/version: 17.4.9
helm.sh/chart: teleport-cluster-17.4.9
teleport.dev/majorVersion: "17"
name: RELEASE-NAME-proxy
namespace: NAMESPACE
@@ -11,8 +11,8 @@ sets clusterDomain on Deployment Pods:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-cluster
app.kubernetes.io/version: 17.2.7
helm.sh/chart: teleport-cluster-17.2.7
app.kubernetes.io/version: 17.4.9
helm.sh/chart: teleport-cluster-17.4.9
teleport.dev/majorVersion: "17"
name: RELEASE-NAME-proxy
namespace: NAMESPACE
@@ -26,7 +26,7 @@ sets clusterDomain on Deployment Pods:
template:
metadata:
annotations:
checksum/config: 788cc751f0c48b48415714a674bdb771ba9a079091aa0bbe737447df2f94ec58
checksum/config: da6155f69a526a5b92d4fa09d4b6658536bfab0d3e5435e2e898b77c1a30dbff
kubernetes.io/pod: test-annotation
kubernetes.io/pod-different: 4
labels:
@@ -34,8 +34,8 @@ sets clusterDomain on Deployment Pods:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-cluster
app.kubernetes.io/version: 17.2.7
helm.sh/chart: teleport-cluster-17.2.7
app.kubernetes.io/version: 17.4.9
helm.sh/chart: teleport-cluster-17.4.9
teleport.dev/majorVersion: "17"
spec:
affinity:
@@ -44,7 +44,7 @@ sets clusterDomain on Deployment Pods:
containers:
- args:
- --diag-addr=0.0.0.0:3000
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
image: public.ecr.aws/gravitational/teleport-distroless:17.4.9
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -61,7 +61,7 @@ sets clusterDomain on Deployment Pods:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
timeoutSeconds: 5
name: teleport
ports:
- containerPort: 3080
@@ -89,7 +89,8 @@ sets clusterDomain on Deployment Pods:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
timeoutSeconds: 5
volumeMounts:
- mountPath: /etc/teleport
name: config
@@ -105,10 +106,27 @@ sets clusterDomain on Deployment Pods:
- wait
- no-resolve
- RELEASE-NAME-auth-v16.NAMESPACE.svc.test.com
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
image: public.ecr.aws/gravitational/teleport-distroless:17.4.9
name: wait-auth-update
serviceAccountName: RELEASE-NAME-proxy
terminationGracePeriodSeconds: 60
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/component: proxy
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
- labelSelector:
matchLabels:
app.kubernetes.io/component: proxy
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
volumes:
- name: proxy-serviceaccount-token
projected:
@@ -137,7 +155,7 @@ should provision initContainer correctly when set in values:
- wait
- no-resolve
- RELEASE-NAME-auth-v16.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
image: public.ecr.aws/gravitational/teleport-distroless:17.4.9
name: wait-auth-update
resources:
limits:
@@ -201,7 +219,7 @@ should set nodeSelector when set in values:
containers:
- args:
- --diag-addr=0.0.0.0:3000
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
image: public.ecr.aws/gravitational/teleport-distroless:17.4.9
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -218,7 +236,7 @@ should set nodeSelector when set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
timeoutSeconds: 5
name: teleport
ports:
- containerPort: 3080
@@ -246,7 +264,8 @@ should set nodeSelector when set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
timeoutSeconds: 5
volumeMounts:
- mountPath: /etc/teleport
name: config
@@ -262,13 +281,30 @@ should set nodeSelector when set in values:
- wait
- no-resolve
- RELEASE-NAME-auth-v16.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
image: public.ecr.aws/gravitational/teleport-distroless:17.4.9
name: wait-auth-update
nodeSelector:
environment: security
role: bastion
serviceAccountName: RELEASE-NAME-proxy
terminationGracePeriodSeconds: 60
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/component: proxy
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
- labelSelector:
matchLabels:
app.kubernetes.io/component: proxy
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
volumes:
- name: proxy-serviceaccount-token
projected:
@@ -313,7 +349,7 @@ should set resources for wait-auth-update initContainer when set in values:
containers:
- args:
- --diag-addr=0.0.0.0:3000
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
image: public.ecr.aws/gravitational/teleport-distroless:17.4.9
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -330,7 +366,7 @@ should set resources for wait-auth-update initContainer when set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
timeoutSeconds: 5
name: teleport
ports:
- containerPort: 3080
@@ -358,7 +394,8 @@ should set resources for wait-auth-update initContainer when set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
timeoutSeconds: 5
resources:
limits:
cpu: 2
@@ -381,7 +418,7 @@ should set resources for wait-auth-update initContainer when set in values:
- wait
- no-resolve
- RELEASE-NAME-auth-v16.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
image: public.ecr.aws/gravitational/teleport-distroless:17.4.9
name: wait-auth-update
resources:
limits:
@@ -392,6 +429,23 @@ should set resources for wait-auth-update initContainer when set in values:
memory: 256Mi
serviceAccountName: RELEASE-NAME-proxy
terminationGracePeriodSeconds: 60
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/component: proxy
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
- labelSelector:
matchLabels:
app.kubernetes.io/component: proxy
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
volumes:
- name: proxy-serviceaccount-token
projected:
@@ -421,7 +475,7 @@ should set resources when set in values:
containers:
- args:
- --diag-addr=0.0.0.0:3000
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
image: public.ecr.aws/gravitational/teleport-distroless:17.4.9
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -438,7 +492,7 @@ should set resources when set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
timeoutSeconds: 5
name: teleport
ports:
- containerPort: 3080
@@ -466,7 +520,8 @@ should set resources when set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
timeoutSeconds: 5
resources:
limits:
cpu: 2
@@ -489,7 +544,7 @@ should set resources when set in values:
- wait
- no-resolve
- RELEASE-NAME-auth-v16.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
image: public.ecr.aws/gravitational/teleport-distroless:17.4.9
name: wait-auth-update
resources:
limits:
@@ -500,6 +555,23 @@ should set resources when set in values:
memory: 256Mi
serviceAccountName: RELEASE-NAME-proxy
terminationGracePeriodSeconds: 60
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/component: proxy
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
- labelSelector:
matchLabels:
app.kubernetes.io/component: proxy
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
volumes:
- name: proxy-serviceaccount-token
projected:
@@ -529,7 +601,7 @@ should set securityContext for initContainers when set in values:
containers:
- args:
- --diag-addr=0.0.0.0:3000
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
image: public.ecr.aws/gravitational/teleport-distroless:17.4.9
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -546,7 +618,7 @@ should set securityContext for initContainers when set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
timeoutSeconds: 5
name: teleport
ports:
- containerPort: 3080
@@ -574,7 +646,8 @@ should set securityContext for initContainers when set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
timeoutSeconds: 5
securityContext:
allowPrivilegeEscalation: false
privileged: false
@@ -597,7 +670,7 @@ should set securityContext for initContainers when set in values:
- wait
- no-resolve
- RELEASE-NAME-auth-v16.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
image: public.ecr.aws/gravitational/teleport-distroless:17.4.9
name: wait-auth-update
securityContext:
allowPrivilegeEscalation: false
@@ -608,6 +681,23 @@ should set securityContext for initContainers when set in values:
runAsUser: 99
serviceAccountName: RELEASE-NAME-proxy
terminationGracePeriodSeconds: 60
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/component: proxy
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
- labelSelector:
matchLabels:
app.kubernetes.io/component: proxy
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
volumes:
- name: proxy-serviceaccount-token
projected:
@@ -637,7 +727,7 @@ should set securityContext when set in values:
containers:
- args:
- --diag-addr=0.0.0.0:3000
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
image: public.ecr.aws/gravitational/teleport-distroless:17.4.9
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -654,7 +744,7 @@ should set securityContext when set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
timeoutSeconds: 5
name: teleport
ports:
- containerPort: 3080
@@ -682,7 +772,8 @@ should set securityContext when set in values:
port: diag
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
timeoutSeconds: 5
securityContext:
allowPrivilegeEscalation: false
privileged: false
@@ -705,7 +796,7 @@ should set securityContext when set in values:
- wait
- no-resolve
- RELEASE-NAME-auth-v16.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
image: public.ecr.aws/gravitational/teleport-distroless:17.4.9
name: wait-auth-update
securityContext:
allowPrivilegeEscalation: false
@@ -716,6 +807,23 @@ should set securityContext when set in values:
runAsUser: 99
serviceAccountName: RELEASE-NAME-proxy
terminationGracePeriodSeconds: 60
topologySpreadConstraints:
- labelSelector:
matchLabels:
app.kubernetes.io/component: proxy
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
- labelSelector:
matchLabels:
app.kubernetes.io/component: proxy
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
volumes:
- name: proxy-serviceaccount-token
projected:
+37 -1
View File
@@ -697,4 +697,40 @@ tests:
- matchSnapshot: {}
- matchRegex:
path: data.teleport\.yaml
pattern: 'svc.test.com:3026'
pattern: 'svc.test.com:3026'
- it: matches snapshot for auth-secondfactors-webauthn.yaml
values:
- ../.lint/auth-secondfactors-webauthn.yaml
asserts:
- hasDocuments:
count: 1
- isKind:
of: ConfigMap
- matchSnapshot:
path: data.teleport\.yaml
- it: matches snapshot for auth-secondfactors-sso.yaml
values:
- ../.lint/auth-secondfactors-sso.yaml
asserts:
- hasDocuments:
count: 1
- isKind:
of: ConfigMap
- matchSnapshot:
path: data.teleport\.yaml
- it: matches snapshot when both secondFactor and secondFactors are set.
set:
clusterName: helm-lint
authentication:
secondFactor: "off"
secondFactors: ["otp", "webauthn"]
asserts:
- hasDocuments:
count: 1
- isKind:
of: ConfigMap
- matchSnapshot:
path: data.teleport\.yaml
@@ -923,3 +923,101 @@ tests:
- equal:
path: spec.template.metadata.labels.baz
value: overridden
- it: sets readinessProbe values on Deployment Pods
template: auth/deployment.yaml
set:
clusterName: helm-lint
readinessProbe:
initialDelaySeconds: 9
periodSeconds: 10
failureThreshold: 11
successThreshold: 12
auth:
# we test an auth-specific override
readinessProbe:
initialDelaySeconds: 13
asserts:
- equal:
path: spec.template.spec.containers[0].readinessProbe.periodSeconds
value: 10
- equal:
path: spec.template.spec.containers[0].readinessProbe.failureThreshold
value: 11
- equal:
path: spec.template.spec.containers[0].readinessProbe.successThreshold
value: 12
- equal:
path: spec.template.spec.containers[0].readinessProbe.initialDelaySeconds
value: 13
- it: sets topology spread constraints by default
template: auth/deployment.yaml
set:
clusterName: helm-lint
asserts:
- equal:
path: spec.template.spec.topologySpreadConstraints
value:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app.kubernetes.io/component: auth
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app.kubernetes.io/component: auth
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
- it: removes topology spread constraints when disabled
template: auth/deployment.yaml
set:
clusterName: helm-lint
disableTopologySpreadConstraints: true
asserts:
- isEmpty:
path: spec.template.spec.topologySpreadConstraints
- it: removes topology spread constraints when running on antique kubernetes
template: auth/deployment.yaml
set:
clusterName: helm-lint
capabilities:
majorVersion: 1
minorVersion: 17
asserts:
- isEmpty:
path: spec.template.spec.topologySpreadConstraints
- it: uses custom topology spread constraints when set
template: auth/deployment.yaml
set:
clusterName: helm-lint
topologySpreadConstraints:
- maxSkew: 2
topologyKey: foobar
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: baz
# helm unit-test has a bug where capabilities are not reset between tests, we must set back to 1.18 after the 1.17 test.
capabilities:
majorVersion: 1
minorVersion: 18
asserts:
- equal:
path: spec.template.spec.topologySpreadConstraints
value:
- maxSkew: 2
topologyKey: foobar
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: baz
@@ -1041,4 +1041,102 @@ tests:
- matchSnapshot: {}
- matchRegex:
path: spec.template.spec.initContainers[0].command[3]
pattern: ".svc.test.com$"
pattern: ".svc.test.com$"
- it: sets readinessProbe values on Deployment Pods
template: proxy/deployment.yaml
set:
clusterName: helm-lint
readinessProbe:
initialDelaySeconds: 9
periodSeconds: 10
failureThreshold: 11
successThreshold: 12
proxy:
# we test an auth-specific override
readinessProbe:
initialDelaySeconds: 13
asserts:
- equal:
path: spec.template.spec.containers[0].readinessProbe.periodSeconds
value: 10
- equal:
path: spec.template.spec.containers[0].readinessProbe.failureThreshold
value: 11
- equal:
path: spec.template.spec.containers[0].readinessProbe.successThreshold
value: 12
- equal:
path: spec.template.spec.containers[0].readinessProbe.initialDelaySeconds
value: 13
- it: sets topology spread constraints by default
template: proxy/deployment.yaml
set:
clusterName: helm-lint
asserts:
- equal:
path: spec.template.spec.topologySpreadConstraints
value:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app.kubernetes.io/component: proxy
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app.kubernetes.io/component: proxy
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: teleport-cluster
- it: removes topology spread constraints when disabled
template: proxy/deployment.yaml
set:
clusterName: helm-lint
disableTopologySpreadConstraints: true
asserts:
- isEmpty:
path: spec.template.spec.topologySpreadConstraints
- it: removes topology spread constraints when running on antique kubernetes
template: proxy/deployment.yaml
set:
clusterName: helm-lint
capabilities:
majorVersion: 1
minorVersion: 17
asserts:
- isEmpty:
path: spec.template.spec.topologySpreadConstraints
- it: uses custom topology spread constraints when set
template: proxy/deployment.yaml
set:
clusterName: helm-lint
topologySpreadConstraints:
- maxSkew: 2
topologyKey: foobar
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: baz
# helm unit-test has a bug where capabilities are not reset between tests, we must set back to 1.18 after the 1.17 test.
capabilities:
majorVersion: 1
minorVersion: 18
asserts:
- equal:
path: spec.template.spec.topologySpreadConstraints
value:
- maxSkew: 2
topologyKey: foobar
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: baz