mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-22 15:00:38 -04:00
cloud: hide kubernetes iptables usage behind linux build tag (#3088)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
d76c9ac82d
commit
4f1768e660
4 changed files with 108 additions and 68 deletions
18
internal/cloud/azure/iptables_cross.go
Normal file
18
internal/cloud/azure/iptables_cross.go
Normal 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")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue