Revision 9368f21c53b7aa96b8743a0b8b79a0ab44d963c6 authored by Jarno Rajahalme on 20 June 2024, 21:26:05 UTC, committed by Nathan Sweet on 21 June 2024, 15:57:37 UTC
AllowsIdentity is only used for testing, move it there. Add the missing InvertedPortMask field on the wildcard port lookup. Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
1 parent d97069c
components.go
// SPDX-License-Identifier: Apache-2.0
// Copyright Authors of Cilium
package components
import (
"os"
"strings"
)
const (
// CiliumAgentName is the name of cilium-agent (daemon) process name.
CiliumAgentName = "cilium-agent"
// CiliumDaemonTestName is the name of test binary for daemon package.
CiliumDaemonTestName = "cmd.test"
)
// IsCiliumAgent checks whether the current process is cilium-agent (daemon).
func IsCiliumAgent() bool {
binaryName := os.Args[0]
return strings.HasSuffix(binaryName, CiliumAgentName) ||
strings.HasSuffix(binaryName, CiliumDaemonTestName)
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...