Skip to content

Commit

Permalink
daemon: Document the use for required API options
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Stringer <[email protected]>
  • Loading branch information
joestringer committed May 1, 2023
1 parent 9f2b72c commit 95fb5c3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions daemon/cmd/daemon_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1993,12 +1993,12 @@ func (d *Daemon) instantiateAPI(swaggerSpec *server.Spec) *restapi.CiliumAPIAPI
msg := "Required API option %s is disabled. This may prevent Cilium from operating correctly"
hint := "Consider enabling this API in " + server.AdminEnableFlag
for _, requiredAPI := range []string{
"GetConfig",
"GetHealthz",
"PutEndpointID",
"DeleteEndpointID",
"PostIPAM",
"DeleteIPAMIP",
"GetConfig", // CNI: Used to detect detect IPAM mode
"GetHealthz", // Kubelet: daemon health checks
"PutEndpointID", // CNI: Provision the network for a new Pod
"DeleteEndpointID", // CNI: Clean up networking for a deleted Pod
"PostIPAM", // CNI: Reserve IPs for new Pods
"DeleteIPAMIP", // CNI: Release IPs for deleted Pods
} {
if _, denied := swaggerSpec.DeniedAPIs[requiredAPI]; denied {
log.WithFields(logrus.Fields{
Expand Down

0 comments on commit 95fb5c3

Please sign in to comment.