mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-20 04:11:38 -05:00
bd63aa3c6b
sed -i '1i/*\nCopyright (c) Edgeless Systems GmbH\n\nSPDX-License-Identifier: AGPL-3.0-only\n*/\n' `grep -rL --include='*.go' 'DO NOT EDIT'` gofumpt -w .
38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
/*
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
package debugd
|
|
|
|
import "time"
|
|
|
|
const (
|
|
DebugdMetadataFlag = "constellation-debugd"
|
|
GRPCTimeout = 5 * time.Minute
|
|
SSHCheckInterval = 30 * time.Second
|
|
DiscoverDebugdInterval = 30 * time.Second
|
|
BootstrapperDownloadRetryBackoff = 1 * time.Minute
|
|
BootstrapperDeployFilename = "/opt/bootstrapper"
|
|
Chunksize = 1024
|
|
BootstrapperSystemdUnitName = "bootstrapper.service"
|
|
BootstrapperSystemdUnitContents = `[Unit]
|
|
Description=Constellation Bootstrapper
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
[Service]
|
|
Type=simple
|
|
RemainAfterExit=yes
|
|
Restart=on-failure
|
|
EnvironmentFile=/etc/constellation.env
|
|
ExecStartPre=-setenforce Permissive
|
|
ExecStartPre=/usr/bin/mkdir -p /opt/cni/bin/
|
|
# merge all CNI binaries in writable folder until containerd can use multiple CNI bins: https://github.com/containerd/containerd/issues/6600
|
|
ExecStartPre=/bin/sh -c "/usr/bin/cp /usr/libexec/cni/* /opt/cni/bin/"
|
|
ExecStart=/opt/bootstrapper
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
`
|
|
)
|