cloud: hide kubernetes iptables usage behind linux build tag (#3088)

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2024-05-13 13:22:22 +02:00 committed by GitHub
parent d76c9ac82d
commit 4f1768e660
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 108 additions and 68 deletions

View file

@ -0,0 +1,18 @@
//go:build !linux
/*
Copyright (c) Edgeless Systems GmbH
SPDX-License-Identifier: AGPL-3.0-only
*/
package azure
import (
"context"
"log/slog"
)
func (c *Cloud) PrepareControlPlaneNode(_ context.Context, _ *slog.Logger) error {
panic("azure.*Cloud.PrepareControlPlaneNode is only supported on Linux")
}