mirror of
https://github.com/siderolabs/talos.git
synced 2026-05-05 12:26:21 +02:00
refactor: move pkg/resources to machinery
Fixes #4420 No functional changes, just moving packages around. Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
This commit is contained in:
parent
0102a64a5f
commit
753a82188f
@ -188,8 +188,8 @@ COPY --from=generate-build /api/storage/*.pb.go /pkg/machinery/api/storage/
|
||||
COPY --from=generate-build /api/resource/*.pb.go /pkg/machinery/api/resource/
|
||||
COPY --from=generate-build /api/resource/secrets/*.pb.go /pkg/machinery/api/resource/secrets/
|
||||
COPY --from=generate-build /api/inspect/*.pb.go /pkg/machinery/api/inspect/
|
||||
COPY --from=go-generate /src/pkg/resources/kubespan/ /pkg/resources/kubespan/
|
||||
COPY --from=go-generate /src/pkg/resources/network/ /pkg/resources/network/
|
||||
COPY --from=go-generate /src/pkg/machinery/resources/kubespan/ /pkg/machinery/resources/kubespan/
|
||||
COPY --from=go-generate /src/pkg/machinery/resources/network/ /pkg/machinery/resources/network/
|
||||
COPY --from=go-generate /src/pkg/machinery/config/types/v1alpha1/ /pkg/machinery/config/types/v1alpha1/
|
||||
COPY --from=go-generate /src/pkg/machinery/nethelpers/ /pkg/machinery/nethelpers/
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ import (
|
||||
"github.com/talos-systems/talos/pkg/cli"
|
||||
"github.com/talos-systems/talos/pkg/machinery/api/machine"
|
||||
"github.com/talos-systems/talos/pkg/machinery/client"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
)
|
||||
|
||||
var editCmdFlags struct {
|
||||
|
||||
@ -22,7 +22,7 @@ import (
|
||||
"github.com/talos-systems/talos/pkg/machinery/api/machine"
|
||||
"github.com/talos-systems/talos/pkg/machinery/client"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/configpatcher"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
)
|
||||
|
||||
var patchCmdFlags struct {
|
||||
|
||||
@ -25,7 +25,7 @@ import (
|
||||
|
||||
"github.com/talos-systems/talos/pkg/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/client"
|
||||
clusterresource "github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
clusterresource "github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
)
|
||||
|
||||
var supportCmdFlags struct {
|
||||
|
||||
@ -16,7 +16,7 @@ import (
|
||||
"github.com/cosi-project/runtime/pkg/state"
|
||||
"github.com/talos-systems/crypto/tls"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/secrets"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/secrets"
|
||||
)
|
||||
|
||||
// TLSConfig provides client & server TLS configs for apid.
|
||||
|
||||
@ -74,8 +74,8 @@ import (
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/generate"
|
||||
machinetype "github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
timeresource "github.com/talos-systems/talos/pkg/machinery/resources/time"
|
||||
"github.com/talos-systems/talos/pkg/machinery/role"
|
||||
timeresource "github.com/talos-systems/talos/pkg/resources/time"
|
||||
"github.com/talos-systems/talos/pkg/version"
|
||||
)
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ import (
|
||||
"github.com/jxskiss/base62"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
)
|
||||
|
||||
// IdentitySpec adapter provides identity generation.
|
||||
|
||||
@ -11,7 +11,7 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
clusteradapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/cluster"
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
)
|
||||
|
||||
func TestIdentityGenerate(t *testing.T) {
|
||||
|
||||
@ -14,7 +14,7 @@ import (
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
"k8s.io/apimachinery/pkg/util/yaml"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
)
|
||||
|
||||
// Manifest adapter provides conversion from procfs.
|
||||
|
||||
@ -12,7 +12,7 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
k8sadapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
)
|
||||
|
||||
func TestManifestSetYAML(t *testing.T) {
|
||||
|
||||
@ -9,7 +9,7 @@ import (
|
||||
|
||||
v1 "k8s.io/api/core/v1"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
)
|
||||
|
||||
// StaticPod adapter provides conversion from *v1.Pod.
|
||||
|
||||
@ -9,7 +9,7 @@ import (
|
||||
|
||||
v1 "k8s.io/api/core/v1"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
)
|
||||
|
||||
// StaticPodStatus adapter provides conversion from *v1.PodStatus.
|
||||
|
||||
@ -12,8 +12,8 @@ import (
|
||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||
"inet.af/netaddr"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// IdentitySpec adapter provides identity generation.
|
||||
|
||||
@ -12,7 +12,7 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
kubespanadapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
)
|
||||
|
||||
func TestIdentityGenerateKey(t *testing.T) {
|
||||
|
||||
@ -10,7 +10,7 @@ import (
|
||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||
"inet.af/netaddr"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
)
|
||||
|
||||
// PeerStatusSpec adapter provides Wiregard integration and state management.
|
||||
|
||||
@ -12,7 +12,7 @@ import (
|
||||
"inet.af/netaddr"
|
||||
|
||||
kubespanadapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
)
|
||||
|
||||
func TestPeerStatus_PickNewEndpoint(t *testing.T) {
|
||||
|
||||
@ -9,7 +9,7 @@ import (
|
||||
"golang.org/x/sys/unix"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// BondMasterSpec adapter provides encoding/decoding to netlink structures.
|
||||
|
||||
@ -11,7 +11,7 @@ import (
|
||||
|
||||
networkadapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
func TestBondMasterSpec(t *testing.T) {
|
||||
|
||||
@ -11,7 +11,7 @@ import (
|
||||
"golang.org/x/sys/unix"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// VLANSpec adapter provides encoding/decoding to netlink structures.
|
||||
|
||||
@ -11,7 +11,7 @@ import (
|
||||
|
||||
networkadapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
func TestVLANSpec(t *testing.T) {
|
||||
|
||||
@ -10,7 +10,7 @@ import (
|
||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||
"inet.af/netaddr"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// WireguardSpec adapter provides encoding/decoding to netlink structures.
|
||||
|
||||
@ -15,7 +15,7 @@ import (
|
||||
"inet.af/netaddr"
|
||||
|
||||
networkadapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/network"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
func TestWireguardSpecDecode(t *testing.T) {
|
||||
|
||||
@ -7,7 +7,7 @@ package perf
|
||||
import (
|
||||
"github.com/prometheus/procfs"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/perf"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/perf"
|
||||
)
|
||||
|
||||
// CPU adapter provides conversion from procfs.
|
||||
|
||||
@ -8,7 +8,7 @@ import (
|
||||
"github.com/AlekSi/pointer"
|
||||
"github.com/prometheus/procfs"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/perf"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/perf"
|
||||
)
|
||||
|
||||
// Memory adapter provides conversion from procfs.
|
||||
|
||||
@ -12,7 +12,7 @@ import (
|
||||
"github.com/cosi-project/runtime/pkg/resource"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
)
|
||||
|
||||
// AffiliateMergeController merges raw Affiliates from the RawNamespaceName into final representation in the NamespaceName.
|
||||
|
||||
@ -15,7 +15,7 @@ import (
|
||||
|
||||
clusterctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
)
|
||||
|
||||
type AffiliateMergeSuite struct {
|
||||
|
||||
@ -20,7 +20,7 @@ import (
|
||||
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
)
|
||||
|
||||
type ClusterSuite struct {
|
||||
|
||||
@ -17,8 +17,8 @@ import (
|
||||
"github.com/cosi-project/runtime/pkg/state"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
)
|
||||
|
||||
// ConfigController watches v1alpha1.Config, updates discovery config.
|
||||
|
||||
@ -15,8 +15,8 @@ import (
|
||||
|
||||
clusterctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
)
|
||||
|
||||
type ConfigSuite struct {
|
||||
|
||||
@ -23,9 +23,9 @@ import (
|
||||
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
|
||||
"github.com/talos-systems/talos/pkg/machinery/proto"
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/version"
|
||||
)
|
||||
|
||||
|
||||
@ -28,9 +28,9 @@ import (
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/machinery/proto"
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
)
|
||||
|
||||
type DiscoveryServiceSuite struct {
|
||||
|
||||
@ -16,8 +16,8 @@ import (
|
||||
"inet.af/netaddr"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
)
|
||||
|
||||
// EndpointController looks up control plane endpoints.
|
||||
|
||||
@ -16,8 +16,8 @@ import (
|
||||
|
||||
clusterctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
)
|
||||
|
||||
type EndpointSuite struct {
|
||||
|
||||
@ -18,9 +18,9 @@ import (
|
||||
"github.com/talos-systems/talos/pkg/conditions"
|
||||
"github.com/talos-systems/talos/pkg/kubernetes"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
)
|
||||
|
||||
// KubernetesPullController pulls list of Affiliate resource from the Kubernetes registry.
|
||||
|
||||
@ -18,8 +18,8 @@ import (
|
||||
"github.com/talos-systems/talos/pkg/conditions"
|
||||
"github.com/talos-systems/talos/pkg/kubernetes"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
)
|
||||
|
||||
// KubernetesPushController pushes Affiliate resource to the Kubernetes registry.
|
||||
|
||||
@ -16,11 +16,11 @@ import (
|
||||
"inet.af/netaddr"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/version"
|
||||
)
|
||||
|
||||
|
||||
@ -18,11 +18,11 @@ import (
|
||||
kubespanadapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/kubespan"
|
||||
clusterctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type LocalAffiliateSuite struct {
|
||||
|
||||
@ -13,7 +13,7 @@ import (
|
||||
"go.uber.org/zap"
|
||||
"inet.af/netaddr"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
)
|
||||
|
||||
// MemberController converts Affiliates which have Nodename set into Members.
|
||||
|
||||
@ -15,7 +15,7 @@ import (
|
||||
|
||||
clusterctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
)
|
||||
|
||||
type MemberSuite struct {
|
||||
|
||||
@ -19,9 +19,9 @@ import (
|
||||
"github.com/talos-systems/talos/internal/app/machined/pkg/controllers"
|
||||
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
runtimeres "github.com/talos-systems/talos/pkg/resources/runtime"
|
||||
"github.com/talos-systems/talos/pkg/resources/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
runtimeres "github.com/talos-systems/talos/pkg/machinery/resources/runtime"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/v1alpha1"
|
||||
)
|
||||
|
||||
// NodeIdentityController manages runtime.Identity caching identity in the STATE.
|
||||
|
||||
@ -18,9 +18,9 @@ import (
|
||||
clusterctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/cluster"
|
||||
v1alpha1runtime "github.com/talos-systems/talos/internal/app/machined/pkg/runtime"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
runtimeres "github.com/talos-systems/talos/pkg/resources/runtime"
|
||||
"github.com/talos-systems/talos/pkg/resources/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
runtimeres "github.com/talos-systems/talos/pkg/machinery/resources/runtime"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/v1alpha1"
|
||||
)
|
||||
|
||||
type NodeIdentitySuite struct {
|
||||
|
||||
@ -15,9 +15,9 @@ import (
|
||||
"go.uber.org/zap"
|
||||
"inet.af/netaddr"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// K8sAddressFilterController creates NodeAddressFilters based on machine configuration.
|
||||
|
||||
@ -25,9 +25,9 @@ import (
|
||||
configctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/config"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type K8sAddressFilterSuite struct {
|
||||
|
||||
@ -21,7 +21,7 @@ import (
|
||||
talosconfig "github.com/talos-systems/talos/pkg/machinery/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
)
|
||||
|
||||
// K8sControlPlaneController manages config.K8sControlPlane based on configuration.
|
||||
|
||||
@ -28,8 +28,8 @@ import (
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
)
|
||||
|
||||
type K8sControlPlaneSuite struct {
|
||||
|
||||
@ -15,7 +15,7 @@ import (
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
)
|
||||
|
||||
// MachineTypeController manages config.MachineType based on configuration.
|
||||
|
||||
@ -16,7 +16,7 @@ import (
|
||||
"go.uber.org/zap"
|
||||
"golang.org/x/sys/unix"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/files"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/files"
|
||||
)
|
||||
|
||||
// EtcFileController watches EtcFileSpecs, creates/updates files.
|
||||
|
||||
@ -24,7 +24,7 @@ import (
|
||||
|
||||
filesctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/files"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/resources/files"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/files"
|
||||
)
|
||||
|
||||
type EtcFileSuite struct {
|
||||
|
||||
@ -24,9 +24,9 @@ import (
|
||||
k8sadapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/k8s"
|
||||
"github.com/talos-systems/talos/pkg/argsbuilder"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/v1alpha1"
|
||||
)
|
||||
|
||||
// ControlPlaneStaticPodController manages k8s.StaticPod based on control plane configuration.
|
||||
|
||||
@ -28,9 +28,9 @@ import (
|
||||
k8sctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/k8s"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/v1alpha1"
|
||||
)
|
||||
|
||||
type ControlPlaneStaticPodSuite struct {
|
||||
|
||||
@ -24,8 +24,8 @@ import (
|
||||
"github.com/talos-systems/talos/pkg/kubernetes"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
)
|
||||
|
||||
// EndpointController looks up control plane endpoints.
|
||||
|
||||
@ -21,9 +21,9 @@ import (
|
||||
"go.uber.org/zap"
|
||||
|
||||
k8sadapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// ExtraManifestController renders manifests based on templates and config/secrets.
|
||||
|
||||
@ -26,10 +26,10 @@ import (
|
||||
k8sadapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/k8s"
|
||||
k8sctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/k8s"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/resources/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/v1alpha1"
|
||||
)
|
||||
|
||||
type ExtraManifestSuite struct {
|
||||
|
||||
@ -24,9 +24,9 @@ import (
|
||||
k8sadapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/k8s"
|
||||
"github.com/talos-systems/talos/pkg/kubernetes/kubelet"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/secrets"
|
||||
"github.com/talos-systems/talos/pkg/resources/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/secrets"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/v1alpha1"
|
||||
)
|
||||
|
||||
// KubeletStaticPodController renders static pod definitions and manages k8s.StaticPodStatus.
|
||||
|
||||
@ -19,9 +19,9 @@ import (
|
||||
"go.uber.org/zap"
|
||||
|
||||
k8sadapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/secrets"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/secrets"
|
||||
)
|
||||
|
||||
// ManifestController renders manifests based on templates and config/secrets.
|
||||
|
||||
@ -33,9 +33,9 @@ import (
|
||||
"github.com/talos-systems/talos/internal/pkg/etcd"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/secrets"
|
||||
"github.com/talos-systems/talos/pkg/resources/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/secrets"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/v1alpha1"
|
||||
)
|
||||
|
||||
// ManifestApplyController applies manifests via control plane endpoint.
|
||||
|
||||
@ -26,9 +26,9 @@ import (
|
||||
k8sctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/k8s"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/secrets"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/secrets"
|
||||
)
|
||||
|
||||
type ManifestSuite struct {
|
||||
|
||||
@ -14,9 +14,9 @@ import (
|
||||
"github.com/cosi-project/runtime/pkg/state"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// NodenameController renders manifests based on templates and config/secrets.
|
||||
|
||||
@ -25,9 +25,9 @@ import (
|
||||
k8sctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/k8s"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type NodenameSuite struct {
|
||||
|
||||
@ -21,8 +21,8 @@ import (
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/resources/secrets"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/k8s"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/secrets"
|
||||
)
|
||||
|
||||
// RenderSecretsStaticPodController manages k8s.SecretsReady and renders secrets from secrets.Kubernetes.
|
||||
|
||||
@ -14,8 +14,8 @@ import (
|
||||
"github.com/cosi-project/runtime/pkg/state"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
)
|
||||
|
||||
// ConfigController watches v1alpha1.Config, updates KubeSpan config.
|
||||
|
||||
@ -13,8 +13,8 @@ import (
|
||||
|
||||
kubespanctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
)
|
||||
|
||||
type ConfigSuite struct {
|
||||
|
||||
@ -12,8 +12,8 @@ import (
|
||||
"github.com/cosi-project/runtime/pkg/resource"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
)
|
||||
|
||||
// EndpointController watches KubeSpanPeerStatuses, Affiliates and harvests additional endpoints for the peers.
|
||||
|
||||
@ -14,8 +14,8 @@ import (
|
||||
|
||||
kubespanctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
)
|
||||
|
||||
type EndpointSuite struct {
|
||||
|
||||
@ -19,11 +19,11 @@ import (
|
||||
kubespanadapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/kubespan"
|
||||
"github.com/talos-systems/talos/internal/app/machined/pkg/controllers"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
runtimeres "github.com/talos-systems/talos/pkg/resources/runtime"
|
||||
"github.com/talos-systems/talos/pkg/resources/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
runtimeres "github.com/talos-systems/talos/pkg/machinery/resources/runtime"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/v1alpha1"
|
||||
)
|
||||
|
||||
// IdentityController watches KubeSpan configuration, updates KubeSpan Identity.
|
||||
|
||||
@ -18,11 +18,11 @@ import (
|
||||
kubespanctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
runtimeres "github.com/talos-systems/talos/pkg/resources/runtime"
|
||||
"github.com/talos-systems/talos/pkg/resources/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
runtimeres "github.com/talos-systems/talos/pkg/machinery/resources/runtime"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/v1alpha1"
|
||||
)
|
||||
|
||||
type IdentitySuite struct {
|
||||
|
||||
@ -22,7 +22,7 @@ import (
|
||||
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
)
|
||||
|
||||
type KubeSpanSuite struct {
|
||||
|
||||
@ -23,9 +23,9 @@ import (
|
||||
kubespanadapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// DefaultPeerReconcileInterval is interval between peer status reconciliation on timer.
|
||||
|
||||
@ -21,9 +21,9 @@ import (
|
||||
kubespanctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type ManagerSuite struct {
|
||||
|
||||
@ -15,9 +15,9 @@ import (
|
||||
"go.uber.org/zap"
|
||||
"inet.af/netaddr"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
)
|
||||
|
||||
// PeerSpecController watches cluster.Affiliates updates PeerSpec.
|
||||
|
||||
@ -17,11 +17,11 @@ import (
|
||||
kubespanctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/kubespan"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1/machine"
|
||||
"github.com/talos-systems/talos/pkg/machinery/constants"
|
||||
"github.com/talos-systems/talos/pkg/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/kubespan"
|
||||
runtimeres "github.com/talos-systems/talos/pkg/resources/runtime"
|
||||
"github.com/talos-systems/talos/pkg/resources/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/cluster"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/kubespan"
|
||||
runtimeres "github.com/talos-systems/talos/pkg/machinery/resources/runtime"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/v1alpha1"
|
||||
)
|
||||
|
||||
type PeerSpecSuite struct {
|
||||
|
||||
@ -20,8 +20,8 @@ import (
|
||||
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime"
|
||||
talosconfig "github.com/talos-systems/talos/pkg/machinery/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// AddressConfigController manages network.AddressSpec based on machine configuration, kernel cmdline and some built-in defaults.
|
||||
|
||||
@ -29,8 +29,8 @@ import (
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type AddressConfigSuite struct {
|
||||
|
||||
@ -14,7 +14,7 @@ import (
|
||||
"github.com/cosi-project/runtime/pkg/state"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// AddressMergeController merges network.AddressSpec in network.ConfigNamespace and produces final network.AddressSpec in network.Namespace.
|
||||
|
||||
@ -26,7 +26,7 @@ import (
|
||||
netctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/network"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type AddressMergeSuite struct {
|
||||
|
||||
@ -21,7 +21,7 @@ import (
|
||||
|
||||
"github.com/talos-systems/talos/internal/app/machined/pkg/controllers/network/watch"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// AddressSpecController applies network.AddressSpec to the actual interfaces.
|
||||
|
||||
@ -29,7 +29,7 @@ import (
|
||||
netctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/network"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type AddressSpecSuite struct {
|
||||
|
||||
@ -17,7 +17,7 @@ import (
|
||||
|
||||
"github.com/talos-systems/talos/internal/app/machined/pkg/controllers/network/watch"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// AddressStatusController manages secrets.Etcd based on configuration.
|
||||
|
||||
@ -23,7 +23,7 @@ import (
|
||||
|
||||
netctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/network"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type AddressStatusSuite struct {
|
||||
|
||||
@ -18,9 +18,9 @@ import (
|
||||
"go.uber.org/zap"
|
||||
|
||||
talosconfig "github.com/talos-systems/talos/pkg/machinery/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/files"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/files"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// EtcFileController creates /etc/hostname and /etc/resolv.conf files based on finalized network configuration.
|
||||
|
||||
@ -26,9 +26,9 @@ import (
|
||||
netctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/network"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/files"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/files"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type EtcFileConfigSuite struct {
|
||||
|
||||
@ -12,7 +12,7 @@ import (
|
||||
"github.com/cosi-project/runtime/pkg/resource"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// HardwareAddrController manages secrets.Etcd based on configuration.
|
||||
|
||||
@ -25,7 +25,7 @@ import (
|
||||
netctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/network"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type HardwareAddrSuite struct {
|
||||
|
||||
@ -17,8 +17,8 @@ import (
|
||||
"go.uber.org/zap"
|
||||
|
||||
talosconfig "github.com/talos-systems/talos/pkg/machinery/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// HostnameConfigController manages network.HostnameSpec based on machine configuration, kernel cmdline.
|
||||
|
||||
@ -28,8 +28,8 @@ import (
|
||||
netctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/network"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type HostnameConfigSuite struct {
|
||||
|
||||
@ -14,7 +14,7 @@ import (
|
||||
"github.com/cosi-project/runtime/pkg/state"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// HostnameMergeController merges network.HostnameSpec in network.ConfigNamespace and produces final network.HostnameSpec in network.Namespace.
|
||||
|
||||
@ -23,7 +23,7 @@ import (
|
||||
|
||||
netctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/network"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type HostnameMergeSuite struct {
|
||||
|
||||
@ -15,7 +15,7 @@ import (
|
||||
"golang.org/x/sys/unix"
|
||||
|
||||
v1alpha1runtime "github.com/talos-systems/talos/internal/app/machined/pkg/runtime"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// HostnameSpecController applies network.HostnameSpec to the actual interfaces.
|
||||
|
||||
@ -22,7 +22,7 @@ import (
|
||||
netctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/network"
|
||||
v1alpha1runtime "github.com/talos-systems/talos/internal/app/machined/pkg/runtime"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type HostnameSpecSuite struct {
|
||||
|
||||
@ -20,8 +20,8 @@ import (
|
||||
networkadapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/network"
|
||||
talosconfig "github.com/talos-systems/talos/pkg/machinery/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// LinkConfigController manages network.LinkSpec based on machine configuration, kernel cmdline.
|
||||
|
||||
@ -28,8 +28,8 @@ import (
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/config/types/v1alpha1"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/config"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type LinkConfigSuite struct {
|
||||
|
||||
@ -15,7 +15,7 @@ import (
|
||||
"github.com/cosi-project/runtime/pkg/state"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// LinkMergeController merges network.LinkSpec in network.ConfigNamespace and produces final network.LinkSpec in network.Namespace.
|
||||
|
||||
@ -24,7 +24,7 @@ import (
|
||||
|
||||
netctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/network"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type LinkMergeSuite struct {
|
||||
|
||||
@ -20,7 +20,7 @@ import (
|
||||
networkadapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/network"
|
||||
"github.com/talos-systems/talos/internal/app/machined/pkg/controllers/network/watch"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// LinkSpecController applies network.LinkSpec to the actual interfaces.
|
||||
|
||||
@ -28,7 +28,7 @@ import (
|
||||
netctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/network"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type LinkSpecSuite struct {
|
||||
|
||||
@ -22,7 +22,7 @@ import (
|
||||
networkadapter "github.com/talos-systems/talos/internal/app/machined/pkg/adapters/network"
|
||||
"github.com/talos-systems/talos/internal/app/machined/pkg/controllers/network/watch"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// LinkStatusController manages secrets.Etcd based on configuration.
|
||||
|
||||
@ -28,7 +28,7 @@ import (
|
||||
netctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/network"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type LinkStatusSuite struct {
|
||||
|
||||
@ -15,7 +15,7 @@ import (
|
||||
"inet.af/netaddr"
|
||||
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// NodeAddressController manages secrets.Etcd based on configuration.
|
||||
|
||||
@ -28,7 +28,7 @@ import (
|
||||
netctrl "github.com/talos-systems/talos/internal/app/machined/pkg/controllers/network"
|
||||
"github.com/talos-systems/talos/pkg/logging"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
type NodeAddressSuite struct {
|
||||
|
||||
@ -20,7 +20,7 @@ import (
|
||||
|
||||
"github.com/talos-systems/talos/internal/app/machined/pkg/runtime"
|
||||
"github.com/talos-systems/talos/pkg/machinery/nethelpers"
|
||||
"github.com/talos-systems/talos/pkg/resources/network"
|
||||
"github.com/talos-systems/talos/pkg/machinery/resources/network"
|
||||
)
|
||||
|
||||
// DHCP4 implements the DHCPv4 network operator.
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user