diff --git a/Makefile b/Makefile index 0c01fea183..1194f09df2 100644 --- a/Makefile +++ b/Makefile @@ -13,10 +13,10 @@ DOCKER_LOGIN_ENABLED ?= true NAME = Talos ARTIFACTS := _out -TOOLS ?= ghcr.io/siderolabs/tools:v1.2.0-alpha.0-4-g0d669dd -PKGS ?= v1.2.0-alpha.0-23-gdcc0311 -EXTRAS ?= v1.2.0-alpha.0-1-g17a319f -GO_VERSION ?= 1.18 +TOOLS ?= ghcr.io/siderolabs/tools:v1.2.0-alpha.0-6-gcd35510 +PKGS ?= v1.2.0-alpha.0-25-g6feece4 +EXTRAS ?= v1.2.0-alpha.0-2-gda35a63 +GO_VERSION ?= 1.19 GOIMPORTS_VERSION ?= v0.1.11 GOFUMPT_VERSION ?= v0.3.0 GOLANGCILINT_VERSION ?= v1.47.2 diff --git a/go.work.sum b/go.work.sum index da9d273784..1c4c3dc6b1 100644 --- a/go.work.sum +++ b/go.work.sum @@ -30,10 +30,9 @@ golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= google.golang.org/genproto v0.0.0-20220718134204-073382fd740c h1:xDUAhRezFnKF6wopxkOfdWYvz2XCiRQzndyDdpwFgbc= google.golang.org/genproto v0.0.0-20220718134204-073382fd740c/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= -google.golang.org/grpc v1.48.0 h1:rQOsyJ/8+ufEDJd/Gdsz7HG220Mh9HAhFHRGnIjda0w= -google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= k8s.io/api v0.24.2 h1:g518dPU/L7VRLxWfcadQn2OnsiGWVOadTLpdnqgY2OI= k8s.io/api v0.24.2/go.mod h1:AHqbSkTm6YrQ0ObxjO3Pmp/ubFF/KuM7jU+3khoBsOg= k8s.io/apimachinery v0.24.2 h1:5QlH9SL2C8KMcrNJPor+LbXVTaZRReml7svPEh4OKDM= @@ -55,7 +54,3 @@ k8s.io/kubectl v0.24.2/go.mod h1:+HIFJc0bA6Tzu5O/YcuUt45APAxnNL8LeMuXwoiGsPg= k8s.io/kubelet v0.24.2 h1:VAvULig8RiylCtyxudgHV7nhKsLnNIrdVBCRD4bXQ3Y= k8s.io/kubelet v0.24.2/go.mod h1:Xm9DkWQjwOs+uGOUIIGIPMvvmenvj0lDVOErvIKOOt0= k8s.io/metrics v0.24.2/go.mod h1:5NWURxZ6Lz5gj8TFU83+vdWIVASx7W8lwPpHYCqopMo= -kernel.org/pub/linux/libs/security/libcap/cap v1.2.65 h1:gIDtZoGnKeoIZ7XaKRmljMib4JV/TsjUhSzAeShNl6U= -kernel.org/pub/linux/libs/security/libcap/cap v1.2.65/go.mod h1:Fp9fDSuNh1vVDA7sozXklfQ+LxXMpB5/H4hDR8eu+0s= -kernel.org/pub/linux/libs/security/libcap/psx v1.2.65 h1:v2G3aCgEMr8qh4GpOGMukkv92EE7jtY+Uh9mB7cAACk= -kernel.org/pub/linux/libs/security/libcap/psx v1.2.65/go.mod h1:+l6Ee2F59XiJ2I6WR5ObpC1utCQJZ/VLsEbQCD8RG24= diff --git a/hack/docgen/main.go b/hack/docgen/main.go index cdd377a6c8..be43b03938 100644 --- a/hack/docgen/main.go +++ b/hack/docgen/main.go @@ -250,13 +250,18 @@ func collectStructs(node ast.Node) ([]*structType, map[string]aliasType) { func parseComment(comment []byte) *Text { text := &Text{} if err := yaml.Unmarshal(comment, text); err != nil { + lines := strings.Split(string(comment), "\n") + for i := range lines { + lines[i] = strings.TrimLeft(lines[i], "\t") + } + // not yaml, fallback - text.Description = string(comment) + text.Description = strings.Join(lines, "\n") // take only the first line from the Description for the comment - text.Comment = strings.Split(text.Description, "\n")[0] + text.Comment = lines[0] // try to parse everything except for the first line as yaml - if err = yaml.Unmarshal([]byte(strings.Join(strings.Split(text.Description, "\n")[1:], "\n")), text); err == nil { + if err = yaml.Unmarshal([]byte(strings.Join(lines[1:], "\n")), text); err == nil { // if parsed, remove it from the description text.Description = text.Comment } diff --git a/hack/release.toml b/hack/release.toml index fe3d5cd5df..d66620996a 100644 --- a/hack/release.toml +++ b/hack/release.toml @@ -91,9 +91,9 @@ vlan=eth1.5:eth1 ip=172.20.0.2::172.20.0.1:255.255.255.0::eth1.5::::: [notes.updates] title = "Component Updates" description="""\ -* Linux: 5.15.57 +* Linux: 5.15.58 -Talos is built with Go 1.18.4. +Talos is built with Go 1.19. """ [notes.talos-config-kernel-param-variable-substitution] diff --git a/pkg/machinery/config/types/v1alpha1/bundle/bundle.go b/pkg/machinery/config/types/v1alpha1/bundle/bundle.go index 7b15ed0e89..0f42b30502 100644 --- a/pkg/machinery/config/types/v1alpha1/bundle/bundle.go +++ b/pkg/machinery/config/types/v1alpha1/bundle/bundle.go @@ -20,6 +20,7 @@ import ( ) // NewConfigBundle returns a new bundle. +// //nolint:gocyclo,cyclop func NewConfigBundle(opts ...Option) (*ConfigBundle, error) { options := DefaultOptions() diff --git a/pkg/machinery/config/types/v1alpha1/v1alpha1_provider.go b/pkg/machinery/config/types/v1alpha1/v1alpha1_provider.go index 8f8d8aed6f..aa04b96216 100644 --- a/pkg/machinery/config/types/v1alpha1/v1alpha1_provider.go +++ b/pkg/machinery/config/types/v1alpha1/v1alpha1_provider.go @@ -1032,6 +1032,7 @@ func (i *InstallConfig) Disk() (string, error) { } // DiskMatchers implements the config.Provider interface. +// //nolint:gocyclo func (i *InstallConfig) DiskMatchers() []disk.Matcher { if i.InstallDiskSelector != nil { diff --git a/pkg/machinery/config/types/v1alpha1/v1alpha1_types.go b/pkg/machinery/config/types/v1alpha1/v1alpha1_types.go index 9c96cfb6c5..2290e871f3 100644 --- a/pkg/machinery/config/types/v1alpha1/v1alpha1_types.go +++ b/pkg/machinery/config/types/v1alpha1/v1alpha1_types.go @@ -613,8 +613,8 @@ metadata: // Config defines the v1alpha1 configuration file. // -// examples: -// - value: configExample +// examples: +// - value: configExample type Config struct { // description: | // Indicates the schema used to decode the contents. @@ -650,8 +650,8 @@ type Config struct { // MachineConfig represents the machine-specific config values. // -// examples: -// - value: machineConfigExample +// examples: +// - value: machineConfigExample type MachineConfig struct { // description: | // Defines the role of the machine within the cluster. @@ -842,8 +842,8 @@ type MachineSeccompProfile struct { // ClusterConfig represents the cluster-wide config values. // -// examples: -// - value: clusterConfigExample +// examples: +// - value: clusterConfigExample type ClusterConfig struct { // description: | // Globally unique identifier for this cluster (base64 encoded random 32 bytes). @@ -1297,6 +1297,7 @@ func (m *InstallDiskSizeMatcher) Matcher(d *disk.Disk) bool { } // InstallDiskSizeMatchData contains data for comparison - Op and Size. +// //docgen:nodoc type InstallDiskSizeMatchData struct { Op string diff --git a/pkg/machinery/config/types/v1alpha1/v1alpha1_types_doc.go b/pkg/machinery/config/types/v1alpha1/v1alpha1_types_doc.go index 8f5ce5de9c..b873c47a64 100644 --- a/pkg/machinery/config/types/v1alpha1/v1alpha1_types_doc.go +++ b/pkg/machinery/config/types/v1alpha1/v1alpha1_types_doc.go @@ -2922,7 +2922,7 @@ func (_ KernelModuleConfig) Doc() *encoder.Doc { // GetConfigurationDoc returns documentation for the file ./v1alpha1_types_doc.go. func GetConfigurationDoc() *encoder.FileDoc { return &encoder.FileDoc{ - Name: "Configuration", + Name: "Configuration", Description: "Package v1alpha1 configuration file contains all the options available for configuring a machine.\n\nTo generate a set of basic configuration files, run:\n\n talosctl gen config --version v1alpha1 \n\nThis will generate a machine config for each node type, and a talosconfig for the CLI.\n", Structs: []*encoder.Doc{ &ConfigDoc, diff --git a/pkg/machinery/config/types/v1alpha1/v1alpha1_validation.go b/pkg/machinery/config/types/v1alpha1/v1alpha1_validation.go index 705e1d0943..a91ae5714f 100644 --- a/pkg/machinery/config/types/v1alpha1/v1alpha1_validation.go +++ b/pkg/machinery/config/types/v1alpha1/v1alpha1_validation.go @@ -65,6 +65,7 @@ var ( type NetworkDeviceCheck func(*Device, map[string]string) ([]string, error) // Validate implements the config.Provider interface. +// //nolint:gocyclo,cyclop func (c *Config) Validate(mode config.RuntimeMode, options ...config.ValidationOption) ([]string, error) { var ( @@ -460,6 +461,7 @@ func ValidateNetworkDevices(d *Device, pairedInterfaces map[string]string, check } // CheckDeviceInterface ensures that the interface has been specified. +// //nolint:gocyclo func CheckDeviceInterface(d *Device, _ map[string]string) ([]string, error) { var result *multierror.Error diff --git a/pkg/machinery/constants/constants.go b/pkg/machinery/constants/constants.go index e5005ec28c..6a84ced5c0 100644 --- a/pkg/machinery/constants/constants.go +++ b/pkg/machinery/constants/constants.go @@ -13,7 +13,7 @@ import ( const ( // DefaultKernelVersion is the default Linux kernel version. - DefaultKernelVersion = "5.15.57-talos" + DefaultKernelVersion = "5.15.58-talos" // KernelParamConfig is the kernel parameter name for specifying the URL. // to the config. @@ -697,7 +697,7 @@ const ( DBusClientSocketPath = "/run/dbus/system_bus_socket" // GoVersion is the version of Go compiler this release was built with. - GoVersion = "go1.18.4" + GoVersion = "go1.19" // KubernetesTalosAPIServiceName is the name of the Kubernetes service to access Talos API. KubernetesTalosAPIServiceName = "talos" diff --git a/pkg/machinery/extensions/config.go b/pkg/machinery/extensions/config.go index 7bb26f3ef5..f891aba506 100644 --- a/pkg/machinery/extensions/config.go +++ b/pkg/machinery/extensions/config.go @@ -19,6 +19,7 @@ type Config struct { } // Layer defines overlay mount layer. +// //gotagsrewrite:gen type Layer struct { Image string `yaml:"image" protobuf:"1"` diff --git a/pkg/machinery/extensions/metadata.go b/pkg/machinery/extensions/metadata.go index 6bd648461d..8fa30da6fe 100644 --- a/pkg/machinery/extensions/metadata.go +++ b/pkg/machinery/extensions/metadata.go @@ -11,6 +11,7 @@ type Manifest struct { } // Metadata describes base extension metadata. +// //gotagsrewrite:gen type Metadata struct { Name string `yaml:"name" protobuf:"1"` diff --git a/pkg/machinery/extensions/services/restartkind_enumer.go b/pkg/machinery/extensions/services/restartkind_enumer.go index f4022812d7..5ccb0b17fb 100644 --- a/pkg/machinery/extensions/services/restartkind_enumer.go +++ b/pkg/machinery/extensions/services/restartkind_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=RestartKind -linecomment -text"; DO NOT EDIT. -// package services import ( diff --git a/pkg/machinery/gendata/data/extras b/pkg/machinery/gendata/data/extras index 2d51cecb0f..37a9fc8db1 100644 --- a/pkg/machinery/gendata/data/extras +++ b/pkg/machinery/gendata/data/extras @@ -1 +1 @@ -v1.2.0-alpha.0-1-g17a319f \ No newline at end of file +v1.2.0-alpha.0-2-gda35a63 \ No newline at end of file diff --git a/pkg/machinery/gendata/data/pkgs b/pkg/machinery/gendata/data/pkgs index 597f744d19..a9c5d9322c 100644 --- a/pkg/machinery/gendata/data/pkgs +++ b/pkg/machinery/gendata/data/pkgs @@ -1 +1 @@ -v1.2.0-alpha.0-23-gdcc0311 \ No newline at end of file +v1.2.0-alpha.0-25-g6feece4 \ No newline at end of file diff --git a/pkg/machinery/nethelpers/addressflag_enumer.go b/pkg/machinery/nethelpers/addressflag_enumer.go index 1e4d11e2d6..74f6ab8704 100644 --- a/pkg/machinery/nethelpers/addressflag_enumer.go +++ b/pkg/machinery/nethelpers/addressflag_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=AddressFlag -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/adselect_enumer.go b/pkg/machinery/nethelpers/adselect_enumer.go index ff00b7bc51..0145ec89ef 100644 --- a/pkg/machinery/nethelpers/adselect_enumer.go +++ b/pkg/machinery/nethelpers/adselect_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=ADSelect -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/arpalltargets_enumer.go b/pkg/machinery/nethelpers/arpalltargets_enumer.go index 26b4704556..6dfdec70ce 100644 --- a/pkg/machinery/nethelpers/arpalltargets_enumer.go +++ b/pkg/machinery/nethelpers/arpalltargets_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=ARPAllTargets -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/arpvalidate_enumer.go b/pkg/machinery/nethelpers/arpvalidate_enumer.go index 245910c6ea..9b50bda6ed 100644 --- a/pkg/machinery/nethelpers/arpvalidate_enumer.go +++ b/pkg/machinery/nethelpers/arpvalidate_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=ARPValidate -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/bondmode_enumer.go b/pkg/machinery/nethelpers/bondmode_enumer.go index f646458908..3d5f493fd7 100644 --- a/pkg/machinery/nethelpers/bondmode_enumer.go +++ b/pkg/machinery/nethelpers/bondmode_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=BondMode -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/bondxmithashpolicy_enumer.go b/pkg/machinery/nethelpers/bondxmithashpolicy_enumer.go index db050e1efc..12e179d31d 100644 --- a/pkg/machinery/nethelpers/bondxmithashpolicy_enumer.go +++ b/pkg/machinery/nethelpers/bondxmithashpolicy_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=BondXmitHashPolicy -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/device.go b/pkg/machinery/nethelpers/device.go index aabce630fa..f9b62e431a 100644 --- a/pkg/machinery/nethelpers/device.go +++ b/pkg/machinery/nethelpers/device.go @@ -20,6 +20,7 @@ type DeviceInfo struct { } // GetDeviceInfo get additional device information by reading /sys/ directory. +// //nolint:gocyclo func GetDeviceInfo(deviceName string) (*DeviceInfo, error) { path := filepath.Join("/sys/class/net/", deviceName, "/device/") diff --git a/pkg/machinery/nethelpers/duplex_enumer.go b/pkg/machinery/nethelpers/duplex_enumer.go index f393e2b779..78327a25f8 100644 --- a/pkg/machinery/nethelpers/duplex_enumer.go +++ b/pkg/machinery/nethelpers/duplex_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=Duplex -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/failovermac_enumer.go b/pkg/machinery/nethelpers/failovermac_enumer.go index 102cd5d10d..a450905f50 100644 --- a/pkg/machinery/nethelpers/failovermac_enumer.go +++ b/pkg/machinery/nethelpers/failovermac_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=FailOverMAC -linecomment"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/family_enumer.go b/pkg/machinery/nethelpers/family_enumer.go index e8c1e0f590..4cd0bf9705 100644 --- a/pkg/machinery/nethelpers/family_enumer.go +++ b/pkg/machinery/nethelpers/family_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=Family -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/lacprate_enumer.go b/pkg/machinery/nethelpers/lacprate_enumer.go index b716e5e00f..782f04ab2d 100644 --- a/pkg/machinery/nethelpers/lacprate_enumer.go +++ b/pkg/machinery/nethelpers/lacprate_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=LACPRate -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/linkflag_enumer.go b/pkg/machinery/nethelpers/linkflag_enumer.go index bf725017d4..b8190e72ad 100644 --- a/pkg/machinery/nethelpers/linkflag_enumer.go +++ b/pkg/machinery/nethelpers/linkflag_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=LinkFlag -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/linktype_enumer.go b/pkg/machinery/nethelpers/linktype_enumer.go index b824d96f00..15075a44d3 100644 --- a/pkg/machinery/nethelpers/linktype_enumer.go +++ b/pkg/machinery/nethelpers/linktype_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=LinkType -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/operationalstate_enumer.go b/pkg/machinery/nethelpers/operationalstate_enumer.go index 6943030db3..b919872c3c 100644 --- a/pkg/machinery/nethelpers/operationalstate_enumer.go +++ b/pkg/machinery/nethelpers/operationalstate_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=OperationalState -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/port_enumer.go b/pkg/machinery/nethelpers/port_enumer.go index 71032d8a14..093fe987d5 100644 --- a/pkg/machinery/nethelpers/port_enumer.go +++ b/pkg/machinery/nethelpers/port_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=Port -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/primaryreselect_enumer.go b/pkg/machinery/nethelpers/primaryreselect_enumer.go index 5d8dfeb9d6..f60ed016b6 100644 --- a/pkg/machinery/nethelpers/primaryreselect_enumer.go +++ b/pkg/machinery/nethelpers/primaryreselect_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=PrimaryReselect -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/routeflag_enumer.go b/pkg/machinery/nethelpers/routeflag_enumer.go index 1d3b5d8f2c..89cfcf6c9f 100644 --- a/pkg/machinery/nethelpers/routeflag_enumer.go +++ b/pkg/machinery/nethelpers/routeflag_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=RouteFlag -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/routeprotocol_enumer.go b/pkg/machinery/nethelpers/routeprotocol_enumer.go index 871a03b41e..b920cdd511 100644 --- a/pkg/machinery/nethelpers/routeprotocol_enumer.go +++ b/pkg/machinery/nethelpers/routeprotocol_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=RouteProtocol -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/routetype_enumer.go b/pkg/machinery/nethelpers/routetype_enumer.go index 5c68ae90ee..27b8a8c748 100644 --- a/pkg/machinery/nethelpers/routetype_enumer.go +++ b/pkg/machinery/nethelpers/routetype_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=RouteType -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/routingtable_enumer.go b/pkg/machinery/nethelpers/routingtable_enumer.go index 728034d737..b241226c6e 100644 --- a/pkg/machinery/nethelpers/routingtable_enumer.go +++ b/pkg/machinery/nethelpers/routingtable_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=RoutingTable -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/scope_enumer.go b/pkg/machinery/nethelpers/scope_enumer.go index 8de2ecfe07..492634aaa2 100644 --- a/pkg/machinery/nethelpers/scope_enumer.go +++ b/pkg/machinery/nethelpers/scope_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=Scope -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/status_enumer.go b/pkg/machinery/nethelpers/status_enumer.go index 1e8e359092..878f10aa12 100644 --- a/pkg/machinery/nethelpers/status_enumer.go +++ b/pkg/machinery/nethelpers/status_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=Status -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/nethelpers/vlanprotocol_enumer.go b/pkg/machinery/nethelpers/vlanprotocol_enumer.go index bd0f7fc4fb..dd326a9aff 100644 --- a/pkg/machinery/nethelpers/vlanprotocol_enumer.go +++ b/pkg/machinery/nethelpers/vlanprotocol_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=VLANProtocol -linecomment -text"; DO NOT EDIT. -// package nethelpers import ( diff --git a/pkg/machinery/resources/cluster/affiliate.go b/pkg/machinery/resources/cluster/affiliate.go index ae2d7b1ed8..516ed0ece8 100644 --- a/pkg/machinery/resources/cluster/affiliate.go +++ b/pkg/machinery/resources/cluster/affiliate.go @@ -66,6 +66,7 @@ func (r AffiliateRD) ResourceDefinition(resource.Metadata, AffiliateSpec) meta.R } // AffiliateSpec describes Affiliate state. +// //gotagsrewrite:gen type AffiliateSpec struct { NodeID string `yaml:"nodeId" protobuf:"1"` diff --git a/pkg/machinery/resources/cluster/config.go b/pkg/machinery/resources/cluster/config.go index c18805c935..054273cef6 100644 --- a/pkg/machinery/resources/cluster/config.go +++ b/pkg/machinery/resources/cluster/config.go @@ -22,6 +22,7 @@ const ConfigID = resource.ID("cluster") type Config = typed.Resource[ConfigSpec, ConfigRD] // ConfigSpec describes KubeSpan configuration. +// //gotagsrewrite:gen type ConfigSpec struct { DiscoveryEnabled bool `yaml:"discoveryEnabled" protobuf:"1"` diff --git a/pkg/machinery/resources/cluster/identity.go b/pkg/machinery/resources/cluster/identity.go index e398d09cd8..4a1a1faac5 100644 --- a/pkg/machinery/resources/cluster/identity.go +++ b/pkg/machinery/resources/cluster/identity.go @@ -23,6 +23,7 @@ type Identity = typed.Resource[IdentitySpec, IdentityRD] // // Note: IdentitySpec is persisted on disk in the STATE partition, // so YAML serialization should be kept backwards compatible. +// //gotagsrewrite:gen type IdentitySpec struct { // NodeID is a random value which is persisted across reboots, diff --git a/pkg/machinery/resources/cluster/member.go b/pkg/machinery/resources/cluster/member.go index e89475b038..58e7b40e26 100644 --- a/pkg/machinery/resources/cluster/member.go +++ b/pkg/machinery/resources/cluster/member.go @@ -22,6 +22,7 @@ const MemberType = resource.Type("Members.cluster.talos.dev") type Member = typed.Resource[MemberSpec, MemberRD] // MemberSpec describes Member state. +// //gotagsrewrite:gen type MemberSpec struct { NodeID string `yaml:"nodeId" protobuf:"1"` diff --git a/pkg/machinery/resources/cri/seccomp_profile.go b/pkg/machinery/resources/cri/seccomp_profile.go index a6f0a4d4f0..aad87e6941 100644 --- a/pkg/machinery/resources/cri/seccomp_profile.go +++ b/pkg/machinery/resources/cri/seccomp_profile.go @@ -20,6 +20,7 @@ const SeccompProfileType = resource.Type("SeccompProfiles.cri.talos.dev") type SeccompProfile = typed.Resource[SeccompProfileSpec, SeccompProfileRD] // SeccompProfileSpec represents the SeccompProfile. +// //gotagsrewrite:gen type SeccompProfileSpec struct { Name string `yaml:"name" protobuf:"1"` diff --git a/pkg/machinery/resources/etcd/pki_status.go b/pkg/machinery/resources/etcd/pki_status.go index 08ffad0e34..46c8992c1b 100644 --- a/pkg/machinery/resources/etcd/pki_status.go +++ b/pkg/machinery/resources/etcd/pki_status.go @@ -20,6 +20,7 @@ const PKIID = resource.ID("etcd") type PKIStatus = typed.Resource[PKIStatusSpec, PKIStatusRD] // PKIStatusSpec describes status of rendered secrets. +// //gotagsrewrite:gen type PKIStatusSpec struct { Ready bool `yaml:"ready" protobuf:"1"` diff --git a/pkg/machinery/resources/files/etcfile_spec.go b/pkg/machinery/resources/files/etcfile_spec.go index 4403285f43..a21b79aea9 100644 --- a/pkg/machinery/resources/files/etcfile_spec.go +++ b/pkg/machinery/resources/files/etcfile_spec.go @@ -21,6 +21,7 @@ const EtcFileSpecType = resource.Type("EtcFileSpecs.files.talos.dev") type EtcFileSpec = typed.Resource[EtcFileSpecSpec, EtcFileSpecMD] // EtcFileSpecSpec describes status of rendered secrets. +// //gotagsrewrite:gen type EtcFileSpecSpec struct { Contents []byte `yaml:"contents" protobuf:"1"` diff --git a/pkg/machinery/resources/files/etcfile_status.go b/pkg/machinery/resources/files/etcfile_status.go index 2d0ee0a649..dd17789877 100644 --- a/pkg/machinery/resources/files/etcfile_status.go +++ b/pkg/machinery/resources/files/etcfile_status.go @@ -17,6 +17,7 @@ const EtcFileStatusType = resource.Type("EtcFileStatuses.files.talos.dev") type EtcFileStatus = typed.Resource[EtcFileStatusSpec, EtcFileStatusMD] // EtcFileStatusSpec describes status of rendered secrets. +// //gotagsrewrite:gen type EtcFileStatusSpec struct { SpecVersion string `yaml:"specVersion" protobuf:"1"` diff --git a/pkg/machinery/resources/hardware/memorymodule.go b/pkg/machinery/resources/hardware/memorymodule.go index 1afed03798..c90208b2fa 100644 --- a/pkg/machinery/resources/hardware/memorymodule.go +++ b/pkg/machinery/resources/hardware/memorymodule.go @@ -17,6 +17,7 @@ const MemoryModuleType = resource.Type("MemoryModules.hardware.talos.dev") type MemoryModule = typed.Resource[MemoryModuleSpec, MemoryModuleRD] // MemoryModuleSpec represents a single Memory. +// //gotagsrewrite:gen type MemoryModuleSpec struct { Size uint32 `yaml:"sizeMiB,omitempty" protobuf:"1"` diff --git a/pkg/machinery/resources/hardware/processor.go b/pkg/machinery/resources/hardware/processor.go index 09fb08d4f4..3c455abbb3 100644 --- a/pkg/machinery/resources/hardware/processor.go +++ b/pkg/machinery/resources/hardware/processor.go @@ -17,6 +17,7 @@ const ProcessorType = resource.Type("Processors.hardware.talos.dev") type Processor = typed.Resource[ProcessorSpec, ProcessorRD] // ProcessorSpec represents a single processor. +// //gotagsrewrite:gen type ProcessorSpec struct { Socket string `yaml:"socket,omitempty" protobuf:"1"` diff --git a/pkg/machinery/resources/hardware/system_information.go b/pkg/machinery/resources/hardware/system_information.go index a5c04a82b3..cb14a258ee 100644 --- a/pkg/machinery/resources/hardware/system_information.go +++ b/pkg/machinery/resources/hardware/system_information.go @@ -17,6 +17,7 @@ const SystemInformationType = resource.Type("SystemInformations.hardware.talos.d type SystemInformation = typed.Resource[SystemInformationSpec, SystemInformationRD] // SystemInformationSpec represents the system information obtained from smbios. +// //gotagsrewrite:gen type SystemInformationSpec struct { Manufacturer string `yaml:"manufacturer,omitempty" protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/admissioncontrol_config.go b/pkg/machinery/resources/k8s/admissioncontrol_config.go index c08e8b7560..685697a7ae 100644 --- a/pkg/machinery/resources/k8s/admissioncontrol_config.go +++ b/pkg/machinery/resources/k8s/admissioncontrol_config.go @@ -26,6 +26,7 @@ const AdmissionControlConfigID = resource.ID("admission-control") type AdmissionControlConfig = typed.Resource[AdmissionControlConfigSpec, AdmissionControlConfigRD] // AdmissionControlConfigSpec is configuration for kube-apiserver. +// //gotagsrewrite:gen type AdmissionControlConfigSpec struct { Config []AdmissionPluginSpec `yaml:"config" protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/apiserver_config.go b/pkg/machinery/resources/k8s/apiserver_config.go index 7d1f774d10..3a2c6ada04 100644 --- a/pkg/machinery/resources/k8s/apiserver_config.go +++ b/pkg/machinery/resources/k8s/apiserver_config.go @@ -23,6 +23,7 @@ const APIServerConfigID = resource.ID(APIServerID) type APIServerConfig = typed.Resource[APIServerConfigSpec, APIServerConfigRD] // ExtraVolume is a configuration of extra volume. +// //gotagsrewrite:gen type ExtraVolume struct { Name string `yaml:"name" protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/config_status.go b/pkg/machinery/resources/k8s/config_status.go index 6950afc474..61bb98103f 100644 --- a/pkg/machinery/resources/k8s/config_status.go +++ b/pkg/machinery/resources/k8s/config_status.go @@ -23,6 +23,7 @@ const ConfigStatusStaticPodID = resource.ID("static-pods") type ConfigStatus = typed.Resource[ConfigStatusSpec, ConfigStatusRD] // ConfigStatusSpec describes status of rendered secrets. +// //gotagsrewrite:gen type ConfigStatusSpec struct { Ready bool `yaml:"ready" protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/controllermanager_config.go b/pkg/machinery/resources/k8s/controllermanager_config.go index 404078f890..ce2e2e2675 100644 --- a/pkg/machinery/resources/k8s/controllermanager_config.go +++ b/pkg/machinery/resources/k8s/controllermanager_config.go @@ -23,6 +23,7 @@ const ControllerManagerConfigID = resource.ID(ControllerManagerID) type ControllerManagerConfig = typed.Resource[ControllerManagerConfigSpec, ControllerManagerConfigRD] // ControllerManagerConfigSpec is configuration for kube-controller-manager. +// //gotagsrewrite:gen type ControllerManagerConfigSpec struct { Enabled bool `yaml:"enabled" protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/endpoint.go b/pkg/machinery/resources/k8s/endpoint.go index 6887e08041..ba1cce47b1 100644 --- a/pkg/machinery/resources/k8s/endpoint.go +++ b/pkg/machinery/resources/k8s/endpoint.go @@ -28,6 +28,7 @@ const ControlPlaneDiscoveredEndpointsID = resource.ID("discovery") type Endpoint = typed.Resource[EndpointSpec, EndpointRD] // EndpointSpec describes status of rendered secrets. +// //gotagsrewrite:gen type EndpointSpec struct { Addresses []netaddr.IP `yaml:"addresses" protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/extramanifests_config.go b/pkg/machinery/resources/k8s/extramanifests_config.go index 4dd047d5d6..da29268e21 100644 --- a/pkg/machinery/resources/k8s/extramanifests_config.go +++ b/pkg/machinery/resources/k8s/extramanifests_config.go @@ -23,6 +23,7 @@ const ExtraManifestsConfigID = resource.ID("extra-manifests") type ExtraManifestsConfig = typed.Resource[ExtraManifestsConfigSpec, ExtraManifestsConfigRD] // ExtraManifestsConfigSpec is configuration for extra bootstrap manifests. +// //gotagsrewrite:gen type ExtraManifestsConfigSpec struct { ExtraManifests []ExtraManifest `yaml:"extraManifests" protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/kubelet_config.go b/pkg/machinery/resources/k8s/kubelet_config.go index 858361ef0d..bb22e80194 100644 --- a/pkg/machinery/resources/k8s/kubelet_config.go +++ b/pkg/machinery/resources/k8s/kubelet_config.go @@ -23,6 +23,7 @@ const KubeletID = resource.ID("kubelet") type KubeletConfig = typed.Resource[KubeletConfigSpec, KubeletConfigRD] // KubeletConfigSpec holds the source of kubelet configuration. +// //gotagsrewrite:gen type KubeletConfigSpec struct { Image string `yaml:"image" protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/kubelet_spec.go b/pkg/machinery/resources/k8s/kubelet_spec.go index b8bbdefabe..bf11509808 100644 --- a/pkg/machinery/resources/k8s/kubelet_spec.go +++ b/pkg/machinery/resources/k8s/kubelet_spec.go @@ -18,6 +18,7 @@ const KubeletSpecType = resource.Type("KubeletSpecs.kubernetes.talos.dev") type KubeletSpec = typed.Resource[KubeletSpecSpec, KubeletSpecRD] // KubeletSpecSpec holds the source of kubelet configuration. +// //gotagsrewrite:gen type KubeletSpecSpec struct { Image string `yaml:"image" protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/manifest.go b/pkg/machinery/resources/k8s/manifest.go index 3639b50d6a..18e2492950 100644 --- a/pkg/machinery/resources/k8s/manifest.go +++ b/pkg/machinery/resources/k8s/manifest.go @@ -17,6 +17,7 @@ const ManifestType = resource.Type("Manifests.kubernetes.talos.dev") type Manifest = typed.Resource[ManifestSpec, ManifestRD] // ManifestSpec holds the Kubernetes resources spec. +// //gotagsrewrite:gen type ManifestSpec struct { Items []map[string]interface{} `protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/manifest_status.go b/pkg/machinery/resources/k8s/manifest_status.go index e2c4495e4d..4be3b2b227 100644 --- a/pkg/machinery/resources/k8s/manifest_status.go +++ b/pkg/machinery/resources/k8s/manifest_status.go @@ -20,6 +20,7 @@ const ManifestStatusID = resource.ID("manifests") type ManifestStatus = typed.Resource[ManifestStatusSpec, ManifestStatusRD] // ManifestStatusSpec describes manifest application status. +// //gotagsrewrite:gen type ManifestStatusSpec struct { ManifestsApplied []string `yaml:"manifestsApplied" protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/manifests_config.go b/pkg/machinery/resources/k8s/manifests_config.go index 49ae63e1b4..27892bc6f7 100644 --- a/pkg/machinery/resources/k8s/manifests_config.go +++ b/pkg/machinery/resources/k8s/manifests_config.go @@ -23,6 +23,7 @@ const BootstrapManifestsConfigID = resource.ID("manifests") type BootstrapManifestsConfig = typed.Resource[BootstrapManifestsConfigSpec, BootstrapManifestsConfigRD] // BootstrapManifestsConfigSpec is configuration for bootstrap manifests. +// //gotagsrewrite:gen type BootstrapManifestsConfigSpec struct { Server string `yaml:"string" protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/nodeip.go b/pkg/machinery/resources/k8s/nodeip.go index c77b868667..f4125c8b38 100644 --- a/pkg/machinery/resources/k8s/nodeip.go +++ b/pkg/machinery/resources/k8s/nodeip.go @@ -18,6 +18,7 @@ const NodeIPType = resource.Type("NodeIPs.kubernetes.talos.dev") type NodeIP = typed.Resource[NodeIPSpec, NodeIPRD] // NodeIPSpec holds the Node IP specification. +// //gotagsrewrite:gen type NodeIPSpec struct { Addresses []netaddr.IP `yaml:"addresses" protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/nodeip_config.go b/pkg/machinery/resources/k8s/nodeip_config.go index c91f7282ed..2a7c2fc65e 100644 --- a/pkg/machinery/resources/k8s/nodeip_config.go +++ b/pkg/machinery/resources/k8s/nodeip_config.go @@ -17,6 +17,7 @@ const NodeIPConfigType = resource.Type("NodeIPConfigs.kubernetes.talos.dev") type NodeIPConfig = typed.Resource[NodeIPConfigSpec, NodeIPConfigRD] // NodeIPConfigSpec holds the Node IP specification. +// //gotagsrewrite:gen type NodeIPConfigSpec struct { ValidSubnets []string `yaml:"validSubnets,omitempty" protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/nodename.go b/pkg/machinery/resources/k8s/nodename.go index 597d1b9651..74afd414b3 100644 --- a/pkg/machinery/resources/k8s/nodename.go +++ b/pkg/machinery/resources/k8s/nodename.go @@ -20,6 +20,7 @@ const NodenameID = resource.ID("nodename") type Nodename = typed.Resource[NodenameSpec, NodenameRD] // NodenameSpec describes Kubernetes nodename. +// //gotagsrewrite:gen type NodenameSpec struct { Nodename string `yaml:"nodename" protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/scheduler_config.go b/pkg/machinery/resources/k8s/scheduler_config.go index 43c36923b2..0e01dc0189 100644 --- a/pkg/machinery/resources/k8s/scheduler_config.go +++ b/pkg/machinery/resources/k8s/scheduler_config.go @@ -23,6 +23,7 @@ const SchedulerConfigID = resource.ID(SchedulerID) type SchedulerConfig = typed.Resource[SchedulerConfigSpec, SchedulerConfigRD] // SchedulerConfigSpec is configuration for kube-scheduler. +// //gotagsrewrite:gen type SchedulerConfigSpec struct { Enabled bool `yaml:"enabled" protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/secrets_status.go b/pkg/machinery/resources/k8s/secrets_status.go index 9a97665d9b..94825a202c 100644 --- a/pkg/machinery/resources/k8s/secrets_status.go +++ b/pkg/machinery/resources/k8s/secrets_status.go @@ -23,6 +23,7 @@ const StaticPodSecretsStaticPodID = resource.ID("static-pods") type SecretsStatus = typed.Resource[SecretsStatusSpec, SecretsStatusRD] // SecretsStatusSpec describes status of rendered secrets. +// //gotagsrewrite:gen type SecretsStatusSpec struct { Ready bool `yaml:"ready" protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/static_pod.go b/pkg/machinery/resources/k8s/static_pod.go index bbc9ef9b77..fcea24712a 100644 --- a/pkg/machinery/resources/k8s/static_pod.go +++ b/pkg/machinery/resources/k8s/static_pod.go @@ -17,6 +17,7 @@ const StaticPodType = resource.Type("StaticPods.kubernetes.talos.dev") type StaticPod = typed.Resource[StaticPodSpec, StaticPodRD] // StaticPodSpec describes static pod spec, it contains marshaled *v1.Pod spec. +// //gotagsrewrite:gen type StaticPodSpec struct { Pod map[string]interface{} `protobuf:"1"` diff --git a/pkg/machinery/resources/k8s/static_pod_status.go b/pkg/machinery/resources/k8s/static_pod_status.go index e00d8e587c..605de45745 100644 --- a/pkg/machinery/resources/k8s/static_pod_status.go +++ b/pkg/machinery/resources/k8s/static_pod_status.go @@ -17,6 +17,7 @@ const StaticPodStatusType = resource.Type("StaticPodStatuses.kubernetes.talos.de type StaticPodStatus = typed.Resource[StaticPodStatusSpec, StaticPodStatusRD] // StaticPodStatusSpec describes kubelet static pod status. +// //gotagsrewrite:gen type StaticPodStatusSpec struct { PodStatus map[string]interface{} `protobuf:"1"` diff --git a/pkg/machinery/resources/kubeaccess/config.go b/pkg/machinery/resources/kubeaccess/config.go index 3c63fde2ca..54b9e34bdc 100644 --- a/pkg/machinery/resources/kubeaccess/config.go +++ b/pkg/machinery/resources/kubeaccess/config.go @@ -22,6 +22,7 @@ const ConfigID = resource.ID("config") type Config = typed.Resource[ConfigSpec, ConfigRD] // ConfigSpec describes KubeSpan configuration.. +// //gotagsrewrite:gen type ConfigSpec struct { Enabled bool `yaml:"enabled" protobuf:"1"` diff --git a/pkg/machinery/resources/kubespan/config.go b/pkg/machinery/resources/kubespan/config.go index 1c768110ad..f618bd549c 100644 --- a/pkg/machinery/resources/kubespan/config.go +++ b/pkg/machinery/resources/kubespan/config.go @@ -25,6 +25,7 @@ const ConfigID = resource.ID("kubespan") type Config = typed.Resource[ConfigSpec, ConfigRD] // ConfigSpec describes KubeSpan configuration.. +// //gotagsrewrite:gen type ConfigSpec struct { Enabled bool `yaml:"enabled" protobuf:"1"` diff --git a/pkg/machinery/resources/kubespan/endpoint.go b/pkg/machinery/resources/kubespan/endpoint.go index 979332bb00..88d9f0142d 100644 --- a/pkg/machinery/resources/kubespan/endpoint.go +++ b/pkg/machinery/resources/kubespan/endpoint.go @@ -20,6 +20,7 @@ const EndpointType = resource.Type("KubeSpanEndpoints.kubespan.talos.dev") type Endpoint = typed.Resource[EndpointSpec, EndpointRD] // EndpointSpec describes Endpoint state. +// //gotagsrewrite:gen type EndpointSpec struct { AffiliateID string `yaml:"affiliateID" protobuf:"1"` diff --git a/pkg/machinery/resources/kubespan/identity.go b/pkg/machinery/resources/kubespan/identity.go index 34f315051a..b063b99ec9 100644 --- a/pkg/machinery/resources/kubespan/identity.go +++ b/pkg/machinery/resources/kubespan/identity.go @@ -24,6 +24,7 @@ type Identity = typed.Resource[IdentitySpec, IdentityRD] // // Note: IdentitySpec is persisted on disk in the STATE partition, // so YAML serialization should be kept backwards compatible. +// //gotagsrewrite:gen type IdentitySpec struct { // Address of the node on the Wireguard network. diff --git a/pkg/machinery/resources/kubespan/peer_spec.go b/pkg/machinery/resources/kubespan/peer_spec.go index 7cab139c95..541214f033 100644 --- a/pkg/machinery/resources/kubespan/peer_spec.go +++ b/pkg/machinery/resources/kubespan/peer_spec.go @@ -20,6 +20,7 @@ const PeerSpecType = resource.Type("KubeSpanPeerSpecs.kubespan.talos.dev") type PeerSpec = typed.Resource[PeerSpecSpec, PeerSpecRD] // PeerSpecSpec describes PeerSpec state. +// //gotagsrewrite:gen type PeerSpecSpec struct { Address netaddr.IP `yaml:"address" protobuf:"1"` diff --git a/pkg/machinery/resources/kubespan/peer_status.go b/pkg/machinery/resources/kubespan/peer_status.go index fcc170f076..33862ff121 100644 --- a/pkg/machinery/resources/kubespan/peer_status.go +++ b/pkg/machinery/resources/kubespan/peer_status.go @@ -22,6 +22,7 @@ const PeerStatusType = resource.Type("KubeSpanPeerStatuses.kubespan.talos.dev") type PeerStatus = typed.Resource[PeerStatusSpec, PeerStatusRD] // PeerStatusSpec describes PeerStatus state. +// //gotagsrewrite:gen type PeerStatusSpec struct { // Active endpoint as seen by the Wireguard. diff --git a/pkg/machinery/resources/network/address_spec.go b/pkg/machinery/resources/network/address_spec.go index 40036e29ca..2cf535274a 100644 --- a/pkg/machinery/resources/network/address_spec.go +++ b/pkg/machinery/resources/network/address_spec.go @@ -23,6 +23,7 @@ const AddressSpecType = resource.Type("AddressSpecs.net.talos.dev") type AddressSpec = typed.Resource[AddressSpecSpec, AddressSpecRD] // AddressSpecSpec describes status of rendered secrets. +// //gotagsrewrite:gen type AddressSpecSpec struct { Address netaddr.IPPrefix `yaml:"address" protobuf:"1"` diff --git a/pkg/machinery/resources/network/address_status.go b/pkg/machinery/resources/network/address_status.go index 72e0cf579d..e71119dcea 100644 --- a/pkg/machinery/resources/network/address_status.go +++ b/pkg/machinery/resources/network/address_status.go @@ -20,6 +20,7 @@ const AddressStatusType = resource.Type("AddressStatuses.net.talos.dev") type AddressStatus = typed.Resource[AddressStatusSpec, AddressStatusRD] // AddressStatusSpec describes status of rendered secrets. +// //gotagsrewrite:gen type AddressStatusSpec struct { Address netaddr.IPPrefix `yaml:"address" protobuf:"1"` diff --git a/pkg/machinery/resources/network/configlayer_enumer.go b/pkg/machinery/resources/network/configlayer_enumer.go index 3736cf7674..07a168f66a 100644 --- a/pkg/machinery/resources/network/configlayer_enumer.go +++ b/pkg/machinery/resources/network/configlayer_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=ConfigLayer -linecomment -text"; DO NOT EDIT. -// package network import ( diff --git a/pkg/machinery/resources/network/device_config_spec.go b/pkg/machinery/resources/network/device_config_spec.go index 8b4bfe2a80..f8e21da1a5 100644 --- a/pkg/machinery/resources/network/device_config_spec.go +++ b/pkg/machinery/resources/network/device_config_spec.go @@ -20,6 +20,7 @@ const DeviceConfigSpecType = resource.Type("DeviceConfigSpecs.net.talos.dev") type DeviceConfigSpec = typed.Resource[DeviceConfigSpecSpec, DeviceConfigSpecRD] // DeviceConfigSpecSpec contains the spec of a device config. +// //gotagsrewrite:gen type DeviceConfigSpecSpec struct { Device config.Device `protobuf:"1"` diff --git a/pkg/machinery/resources/network/hardrware_addr.go b/pkg/machinery/resources/network/hardrware_addr.go index 179a002bee..d54e95d5d2 100644 --- a/pkg/machinery/resources/network/hardrware_addr.go +++ b/pkg/machinery/resources/network/hardrware_addr.go @@ -22,6 +22,7 @@ const FirstHardwareAddr = resource.ID("first") type HardwareAddr = typed.Resource[HardwareAddrSpec, HardwareAddrRD] // HardwareAddrSpec describes spec for the link. +// //gotagsrewrite:gen type HardwareAddrSpec struct { // Name defines link name diff --git a/pkg/machinery/resources/network/hostname_spec.go b/pkg/machinery/resources/network/hostname_spec.go index 7236664399..b2dd7c2989 100644 --- a/pkg/machinery/resources/network/hostname_spec.go +++ b/pkg/machinery/resources/network/hostname_spec.go @@ -23,6 +23,7 @@ type HostnameSpec = typed.Resource[HostnameSpecSpec, HostnameSpecRD] const HostnameID resource.ID = "hostname" // HostnameSpecSpec describes node nostname. +// //gotagsrewrite:gen type HostnameSpecSpec struct { Hostname string `yaml:"hostname" protobuf:"1"` diff --git a/pkg/machinery/resources/network/hostname_status.go b/pkg/machinery/resources/network/hostname_status.go index cce1dfc7c7..0f7f258500 100644 --- a/pkg/machinery/resources/network/hostname_status.go +++ b/pkg/machinery/resources/network/hostname_status.go @@ -17,6 +17,7 @@ const HostnameStatusType = resource.Type("HostnameStatuses.net.talos.dev") type HostnameStatus = typed.Resource[HostnameStatusSpec, HostnameStatusRD] // HostnameStatusSpec describes node nostname. +// //gotagsrewrite:gen type HostnameStatusSpec struct { Hostname string `yaml:"hostname" protobuf:"1"` diff --git a/pkg/machinery/resources/network/link.go b/pkg/machinery/resources/network/link.go index 02bb2dc5bf..c6c557e330 100644 --- a/pkg/machinery/resources/network/link.go +++ b/pkg/machinery/resources/network/link.go @@ -14,6 +14,7 @@ import ( ) // VLANSpec describes VLAN settings if Kind == "vlan". +// //gotagsrewrite:gen type VLANSpec struct { // VID is the vlan ID. @@ -24,6 +25,7 @@ type VLANSpec struct { } // BondMasterSpec describes bond settings if Kind == "bond". +// //gotagsrewrite:gen type BondMasterSpec struct { Mode nethelpers.BondMode `yaml:"mode" protobuf:"1"` diff --git a/pkg/machinery/resources/network/link_refresh.go b/pkg/machinery/resources/network/link_refresh.go index e5478bed59..0cd5a3ae48 100644 --- a/pkg/machinery/resources/network/link_refresh.go +++ b/pkg/machinery/resources/network/link_refresh.go @@ -23,6 +23,7 @@ const LinkRefreshType = resource.Type("LinkRefreshes.net.talos.dev") type LinkRefresh = typed.Resource[LinkRefreshSpec, LinkRefreshRD] // LinkRefreshSpec describes status of rendered secrets. +// //gotagsrewrite:gen type LinkRefreshSpec struct { Generation int `yaml:"generation" protobuf:"1"` diff --git a/pkg/machinery/resources/network/link_spec.go b/pkg/machinery/resources/network/link_spec.go index e5431463fa..1d6fb170b1 100644 --- a/pkg/machinery/resources/network/link_spec.go +++ b/pkg/machinery/resources/network/link_spec.go @@ -19,6 +19,7 @@ const LinkSpecType = resource.Type("LinkSpecs.net.talos.dev") type LinkSpec = typed.Resource[LinkSpecSpec, LinkSpecRD] // LinkSpecSpec describes spec for the link. +// //gotagsrewrite:gen type LinkSpecSpec struct { // Name defines link name @@ -59,6 +60,7 @@ type LinkSpecSpec struct { } // BondSlave contains a bond's master name and slave index. +// //gotagsrewrite:gen type BondSlave struct { // MasterName indicates master link for enslaved bonded interfaces. @@ -69,6 +71,7 @@ type BondSlave struct { } // BridgeSlave contains a bond's master name and slave index. +// //gotagsrewrite:gen type BridgeSlave struct { // MasterName indicates master link for enslaved bridged interfaces. diff --git a/pkg/machinery/resources/network/link_status.go b/pkg/machinery/resources/network/link_status.go index 0df3ba7685..5428f70b75 100644 --- a/pkg/machinery/resources/network/link_status.go +++ b/pkg/machinery/resources/network/link_status.go @@ -19,6 +19,7 @@ const LinkStatusType = resource.Type("LinkStatuses.net.talos.dev") type LinkStatus = typed.Resource[LinkStatusSpec, LinkStatusRD] // LinkStatusSpec describes status of rendered secrets. +// //gotagsrewrite:gen type LinkStatusSpec struct { // Fields coming from rtnetlink API. diff --git a/pkg/machinery/resources/network/node_address.go b/pkg/machinery/resources/network/node_address.go index da1a88f519..226f5121f9 100644 --- a/pkg/machinery/resources/network/node_address.go +++ b/pkg/machinery/resources/network/node_address.go @@ -38,6 +38,7 @@ const ( ) // NodeAddressSpec describes a set of node addresses. +// //gotagsrewrite:gen type NodeAddressSpec struct { Addresses []netaddr.IPPrefix `yaml:"addresses" protobuf:"1"` diff --git a/pkg/machinery/resources/network/node_address_filter.go b/pkg/machinery/resources/network/node_address_filter.go index ca93d4b817..1ad7fcf22a 100644 --- a/pkg/machinery/resources/network/node_address_filter.go +++ b/pkg/machinery/resources/network/node_address_filter.go @@ -18,6 +18,7 @@ const NodeAddressFilterType = resource.Type("NodeAddressFilters.net.talos.dev") type NodeAddressFilter = typed.Resource[NodeAddressFilterSpec, NodeAddressFilterRD] // NodeAddressFilterSpec describes a filter for NodeAddresses. +// //gotagsrewrite:gen type NodeAddressFilterSpec struct { // Address is skipped if it doesn't match any of the includeSubnets (if includeSubnets is not empty). diff --git a/pkg/machinery/resources/network/operator_enumer.go b/pkg/machinery/resources/network/operator_enumer.go index f814750470..513f94c2ce 100644 --- a/pkg/machinery/resources/network/operator_enumer.go +++ b/pkg/machinery/resources/network/operator_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=Operator -linecomment -text"; DO NOT EDIT. -// package network import ( diff --git a/pkg/machinery/resources/network/operator_spec.go b/pkg/machinery/resources/network/operator_spec.go index ee0f56a213..7930391e40 100644 --- a/pkg/machinery/resources/network/operator_spec.go +++ b/pkg/machinery/resources/network/operator_spec.go @@ -18,6 +18,7 @@ const OperatorSpecType = resource.Type("OperatorSpecs.net.talos.dev") type OperatorSpec = typed.Resource[OperatorSpecSpec, OperatorSpecRD] // OperatorSpecSpec describes DNS resolvers. +// //gotagsrewrite:gen type OperatorSpecSpec struct { Operator Operator `yaml:"operator" protobuf:"1"` @@ -32,12 +33,14 @@ type OperatorSpecSpec struct { } // DHCP4OperatorSpec describes DHCP4 operator options. +// //gotagsrewrite:gen type DHCP4OperatorSpec struct { RouteMetric uint32 `yaml:"routeMetric" protobuf:"1"` } // DHCP6OperatorSpec describes DHCP6 operator options. +// //gotagsrewrite:gen type DHCP6OperatorSpec struct { DUID string `yaml:"DUID,omitempty" protobuf:"1"` @@ -45,6 +48,7 @@ type DHCP6OperatorSpec struct { } // VIPOperatorSpec describes virtual IP operator options. +// //gotagsrewrite:gen type VIPOperatorSpec struct { IP netaddr.IP `yaml:"ip" protobuf:"1"` @@ -55,6 +59,7 @@ type VIPOperatorSpec struct { } // VIPEquinixMetalSpec describes virtual (elastic) IP settings for Equinix Metal. +// //gotagsrewrite:gen type VIPEquinixMetalSpec struct { ProjectID string `yaml:"projectID" protobuf:"1"` @@ -63,6 +68,7 @@ type VIPEquinixMetalSpec struct { } // VIPHCloudSpec describes virtual (elastic) IP settings for Hetzner Cloud. +// //gotagsrewrite:gen type VIPHCloudSpec struct { DeviceID int `yaml:"deviceID" protobuf:"1"` diff --git a/pkg/machinery/resources/network/resolver_spec.go b/pkg/machinery/resources/network/resolver_spec.go index a635f85ad2..e5f55ba458 100644 --- a/pkg/machinery/resources/network/resolver_spec.go +++ b/pkg/machinery/resources/network/resolver_spec.go @@ -21,6 +21,7 @@ type ResolverSpec = typed.Resource[ResolverSpecSpec, ResolverSpecRD] const ResolverID resource.ID = "resolvers" // ResolverSpecSpec describes DNS resolvers. +// //gotagsrewrite:gen type ResolverSpecSpec struct { DNSServers []netaddr.IP `yaml:"dnsServers" protobuf:"1"` diff --git a/pkg/machinery/resources/network/resolver_status.go b/pkg/machinery/resources/network/resolver_status.go index 4d77f87d1d..c0f236a14a 100644 --- a/pkg/machinery/resources/network/resolver_status.go +++ b/pkg/machinery/resources/network/resolver_status.go @@ -18,6 +18,7 @@ const ResolverStatusType = resource.Type("ResolverStatuses.net.talos.dev") type ResolverStatus = typed.Resource[ResolverStatusSpec, ResolverStatusRD] // ResolverStatusSpec describes DNS resolvers. +// //gotagsrewrite:gen type ResolverStatusSpec struct { DNSServers []netaddr.IP `yaml:"dnsServers" protobuf:"1"` diff --git a/pkg/machinery/resources/network/route_spec.go b/pkg/machinery/resources/network/route_spec.go index d44de81855..64dd4c8da3 100644 --- a/pkg/machinery/resources/network/route_spec.go +++ b/pkg/machinery/resources/network/route_spec.go @@ -20,6 +20,7 @@ const RouteSpecType = resource.Type("RouteSpecs.net.talos.dev") type RouteSpec = typed.Resource[RouteSpecSpec, RouteSpecRD] // RouteSpecSpec describes the route. +// //gotagsrewrite:gen type RouteSpecSpec struct { Family nethelpers.Family `yaml:"family" protobuf:"1"` diff --git a/pkg/machinery/resources/network/route_status.go b/pkg/machinery/resources/network/route_status.go index 8724470b4d..0a498294db 100644 --- a/pkg/machinery/resources/network/route_status.go +++ b/pkg/machinery/resources/network/route_status.go @@ -20,6 +20,7 @@ const RouteStatusType = resource.Type("RouteStatuses.net.talos.dev") type RouteStatus = typed.Resource[RouteStatusSpec, RouteStatusRD] // RouteStatusSpec describes status of rendered secrets. +// //gotagsrewrite:gen type RouteStatusSpec struct { Family nethelpers.Family `yaml:"family" protobuf:"1"` diff --git a/pkg/machinery/resources/network/status.go b/pkg/machinery/resources/network/status.go index 21d4422047..4f4e282918 100644 --- a/pkg/machinery/resources/network/status.go +++ b/pkg/machinery/resources/network/status.go @@ -17,6 +17,7 @@ const StatusType = resource.Type("NetworkStatuses.net.talos.dev") type Status = typed.Resource[StatusSpec, StatusRD] // StatusSpec describes network state. +// //gotagsrewrite:gen type StatusSpec struct { AddressReady bool `yaml:"addressReady" protobuf:"1"` diff --git a/pkg/machinery/resources/network/timeserver_spec.go b/pkg/machinery/resources/network/timeserver_spec.go index ecbccdfddc..2d6548f326 100644 --- a/pkg/machinery/resources/network/timeserver_spec.go +++ b/pkg/machinery/resources/network/timeserver_spec.go @@ -20,6 +20,7 @@ type TimeServerSpec = typed.Resource[TimeServerSpecSpec, TimeServerSpecRD] const TimeServerID resource.ID = "timeservers" // TimeServerSpecSpec describes NTP servers. +// //gotagsrewrite:gen type TimeServerSpecSpec struct { NTPServers []string `yaml:"timeServers" protobuf:"1"` diff --git a/pkg/machinery/resources/network/timeserver_status.go b/pkg/machinery/resources/network/timeserver_status.go index 98033346f8..4d62888c40 100644 --- a/pkg/machinery/resources/network/timeserver_status.go +++ b/pkg/machinery/resources/network/timeserver_status.go @@ -17,6 +17,7 @@ const TimeServerStatusType = resource.Type("TimeServerStatuses.net.talos.dev") type TimeServerStatus = typed.Resource[TimeServerStatusSpec, TimeServerStatusRD] // TimeServerStatusSpec describes NTP servers. +// //gotagsrewrite:gen type TimeServerStatusSpec struct { NTPServers []string `yaml:"timeServers" protobuf:"1"` diff --git a/pkg/machinery/resources/perf/cpu.go b/pkg/machinery/resources/perf/cpu.go index 2ed396fcf7..a8115261e1 100644 --- a/pkg/machinery/resources/perf/cpu.go +++ b/pkg/machinery/resources/perf/cpu.go @@ -23,6 +23,7 @@ const CPUID = resource.ID("latest") type CPU = typed.Resource[CPUSpec, CPURD] // CPUSpec represents the last CPU stats snapshot. +// //gotagsrewrite:gen type CPUSpec struct { CPU []CPUStat `yaml:"cpu" protobuf:"1"` @@ -36,6 +37,7 @@ type CPUSpec struct { } // CPUStat represents a single cpu stat. +// //gotagsrewrite:gen type CPUStat struct { User float64 `yaml:"user" protobuf:"1"` diff --git a/pkg/machinery/resources/perf/mem.go b/pkg/machinery/resources/perf/mem.go index 6b1e6f06b6..2a6a15bad9 100644 --- a/pkg/machinery/resources/perf/mem.go +++ b/pkg/machinery/resources/perf/mem.go @@ -20,6 +20,7 @@ const MemoryID = resource.ID("latest") type Memory = typed.Resource[MemorySpec, MemoryRD] // MemorySpec represents the last Memory stats snapshot. +// //gotagsrewrite:gen type MemorySpec struct { MemTotal uint64 `yaml:"total" protobuf:"1"` diff --git a/pkg/machinery/resources/runtime/kernel_module_spec.go b/pkg/machinery/resources/runtime/kernel_module_spec.go index 89b64c3921..5def31c293 100644 --- a/pkg/machinery/resources/runtime/kernel_module_spec.go +++ b/pkg/machinery/resources/runtime/kernel_module_spec.go @@ -17,6 +17,7 @@ const KernelModuleSpecType = resource.Type("KernelModuleSpecs.runtime.talos.dev" type KernelModuleSpec = typed.Resource[KernelModuleSpecSpec, KernelModuleSpecRD] // KernelModuleSpecSpec describes Linux kernel module to load. +// //gotagsrewrite:gen type KernelModuleSpecSpec struct { Name string `yaml:"string" protobuf:"1"` diff --git a/pkg/machinery/resources/runtime/kernel_params_spec.go b/pkg/machinery/resources/runtime/kernel_params_spec.go index 89b648a1bb..dd24ad1565 100644 --- a/pkg/machinery/resources/runtime/kernel_params_spec.go +++ b/pkg/machinery/resources/runtime/kernel_params_spec.go @@ -30,6 +30,7 @@ type KernelParam interface { type KernelParamSpec = typed.Resource[KernelParamSpecSpec, KernelParamSpecRD] // KernelParamSpecSpec describes status of the defined sysctls. +// //gotagsrewrite:gen type KernelParamSpecSpec struct { Value string `yaml:"value" protobuf:"1"` diff --git a/pkg/machinery/resources/runtime/kernel_params_status.go b/pkg/machinery/resources/runtime/kernel_params_status.go index 1b44f2e4fd..24024efb8a 100644 --- a/pkg/machinery/resources/runtime/kernel_params_status.go +++ b/pkg/machinery/resources/runtime/kernel_params_status.go @@ -17,6 +17,7 @@ const KernelParamStatusType = resource.Type("KernelParamStatuses.runtime.talos.d type KernelParamStatus = typed.Resource[KernelParamStatusSpec, KernelParamStatusRD] // KernelParamStatusSpec describes status of the defined sysctls. +// //gotagsrewrite:gen type KernelParamStatusSpec struct { Current string `yaml:"current" protobuf:"1"` diff --git a/pkg/machinery/resources/runtime/machine_status.go b/pkg/machinery/resources/runtime/machine_status.go index 4e403a06d9..38a22712ea 100644 --- a/pkg/machinery/resources/runtime/machine_status.go +++ b/pkg/machinery/resources/runtime/machine_status.go @@ -20,6 +20,7 @@ const MachineStatusID = resource.ID("machine") type MachineStatus = typed.Resource[MachineStatusSpec, MachineStatusRD] // MachineStatusSpec describes status of the defined sysctls. +// //gotagsrewrite:gen type MachineStatusSpec struct { Stage MachineStage `yaml:"stage" protobuf:"1"` @@ -27,6 +28,7 @@ type MachineStatusSpec struct { } // MachineStatusStatus describes machine current status at the stage. +// //gotagsrewrite:gen type MachineStatusStatus struct { Ready bool `yaml:"ready" protobuf:"1"` @@ -34,6 +36,7 @@ type MachineStatusStatus struct { } // UnmetCondition is a failure which prevents machine from being ready at the stage. +// //gotagsrewrite:gen type UnmetCondition struct { Name string `yaml:"name" protobuf:"1"` diff --git a/pkg/machinery/resources/runtime/machinestage_enumer.go b/pkg/machinery/resources/runtime/machinestage_enumer.go index 096def180a..27641b9aac 100644 --- a/pkg/machinery/resources/runtime/machinestage_enumer.go +++ b/pkg/machinery/resources/runtime/machinestage_enumer.go @@ -1,6 +1,5 @@ // Code generated by "enumer -type=MachineStage -linecomment -text"; DO NOT EDIT. -// package runtime import ( diff --git a/pkg/machinery/resources/runtime/mount_status.go b/pkg/machinery/resources/runtime/mount_status.go index a96f681129..f0302f6172 100644 --- a/pkg/machinery/resources/runtime/mount_status.go +++ b/pkg/machinery/resources/runtime/mount_status.go @@ -17,6 +17,7 @@ const MountStatusType = resource.Type("MountStatuses.runtime.talos.dev") type MountStatus = typed.Resource[MountStatusSpec, MountStatusRD] // MountStatusSpec describes status of the defined sysctls. +// //gotagsrewrite:gen type MountStatusSpec struct { Source string `yaml:"source" protobuf:"1"` diff --git a/pkg/machinery/resources/secrets/api.go b/pkg/machinery/resources/secrets/api.go index 4b4789cf61..4f8478c99f 100644 --- a/pkg/machinery/resources/secrets/api.go +++ b/pkg/machinery/resources/secrets/api.go @@ -28,6 +28,7 @@ const APIID = resource.ID("api") type API = typed.Resource[APICertsSpec, APIRD] // APICertsSpec describes etcd certs secrets. +// //gotagsrewrite:gen type APICertsSpec struct { CA *x509.PEMEncodedCertificateAndKey `yaml:"ca" protobuf:"1"` // only cert is passed, without key diff --git a/pkg/machinery/resources/secrets/cert_sans.go b/pkg/machinery/resources/secrets/cert_sans.go index 10253c85a4..cbb4f9f280 100644 --- a/pkg/machinery/resources/secrets/cert_sans.go +++ b/pkg/machinery/resources/secrets/cert_sans.go @@ -29,6 +29,7 @@ const CertSANKubernetesID = resource.ID("k8s") type CertSAN = typed.Resource[CertSANSpec, CertSANRD] // CertSANSpec describes fields of the cert SANs. +// //gotagsrewrite:gen type CertSANSpec struct { IPs []netaddr.IP `yaml:"ips" protobuf:"1"` diff --git a/pkg/machinery/resources/secrets/etcd.go b/pkg/machinery/resources/secrets/etcd.go index 7d3a9e7037..7b4cddeaa5 100644 --- a/pkg/machinery/resources/secrets/etcd.go +++ b/pkg/machinery/resources/secrets/etcd.go @@ -21,6 +21,7 @@ const EtcdID = resource.ID("etcd") type Etcd = typed.Resource[EtcdCertsSpec, EtcdRD] // EtcdCertsSpec describes etcd certs secrets. +// //gotagsrewrite:gen type EtcdCertsSpec struct { Etcd *x509.PEMEncodedCertificateAndKey `yaml:"etcd" protobuf:"1"` diff --git a/pkg/machinery/resources/secrets/etcd_root.go b/pkg/machinery/resources/secrets/etcd_root.go index 61fe5fa2a6..28c3ab27bb 100644 --- a/pkg/machinery/resources/secrets/etcd_root.go +++ b/pkg/machinery/resources/secrets/etcd_root.go @@ -21,6 +21,7 @@ const EtcdRootID = resource.ID("etcd") type EtcdRoot = typed.Resource[EtcdRootSpec, EtcdRootRD] // EtcdRootSpec describes etcd CA secrets. +// //gotagsrewrite:gen type EtcdRootSpec struct { EtcdCA *x509.PEMEncodedCertificateAndKey `yaml:"etcdCA" protobuf:"1"` diff --git a/pkg/machinery/resources/secrets/kubelet.go b/pkg/machinery/resources/secrets/kubelet.go index 02bf286a9e..4d477d548f 100644 --- a/pkg/machinery/resources/secrets/kubelet.go +++ b/pkg/machinery/resources/secrets/kubelet.go @@ -23,6 +23,7 @@ const KubeletID = resource.ID("kubelet") type Kubelet = typed.Resource[KubeletSpec, KubeletRD] // KubeletSpec describes root Kubernetes secrets. +// //gotagsrewrite:gen type KubeletSpec struct { Endpoint *url.URL `yaml:"endpoint" protobuf:"1"` diff --git a/pkg/machinery/resources/secrets/kubernetes.go b/pkg/machinery/resources/secrets/kubernetes.go index d6e5780b1b..6c53f69a05 100644 --- a/pkg/machinery/resources/secrets/kubernetes.go +++ b/pkg/machinery/resources/secrets/kubernetes.go @@ -21,6 +21,7 @@ const KubernetesID = resource.ID("k8s-certs") type Kubernetes = typed.Resource[KubernetesCertsSpec, KubernetesRD] // KubernetesCertsSpec describes generated Kubernetes certificates. +// //gotagsrewrite:gen type KubernetesCertsSpec struct { APIServer *x509.PEMEncodedCertificateAndKey `yaml:"apiServer" protobuf:"1"` diff --git a/pkg/machinery/resources/secrets/kubernetes_root.go b/pkg/machinery/resources/secrets/kubernetes_root.go index d1b0e687bb..8244a9cf73 100644 --- a/pkg/machinery/resources/secrets/kubernetes_root.go +++ b/pkg/machinery/resources/secrets/kubernetes_root.go @@ -24,6 +24,7 @@ const KubernetesRootID = resource.ID("k8s") type KubernetesRoot = typed.Resource[KubernetesRootSpec, KubernetesRootRD] // KubernetesRootSpec describes root Kubernetes secrets. +// //gotagsrewrite:gen type KubernetesRootSpec struct { Name string `yaml:"name" protobuf:"1"` diff --git a/pkg/machinery/resources/secrets/os_root.go b/pkg/machinery/resources/secrets/os_root.go index 55822665b7..83174d327d 100644 --- a/pkg/machinery/resources/secrets/os_root.go +++ b/pkg/machinery/resources/secrets/os_root.go @@ -22,6 +22,7 @@ const OSRootID = resource.ID("os") type OSRoot = typed.Resource[OSRootSpec, OSRootRD] // OSRootSpec describes operating system CA. +// //gotagsrewrite:gen type OSRootSpec struct { CA *x509.PEMEncodedCertificateAndKey `yaml:"ca" protobuf:"1"` diff --git a/pkg/machinery/resources/time/status.go b/pkg/machinery/resources/time/status.go index e6064a229f..e77c319d08 100644 --- a/pkg/machinery/resources/time/status.go +++ b/pkg/machinery/resources/time/status.go @@ -25,6 +25,7 @@ const StatusID = resource.ID("node") type Status = typed.Resource[StatusSpec, StatusRD] // StatusSpec describes time sync state. +// //gotagsrewrite:gen type StatusSpec struct { // Synced indicates whether time is in sync. diff --git a/pkg/machinery/resources/v1alpha1/service.go b/pkg/machinery/resources/v1alpha1/service.go index ca51b7b31b..fa5b2ade1f 100644 --- a/pkg/machinery/resources/v1alpha1/service.go +++ b/pkg/machinery/resources/v1alpha1/service.go @@ -20,6 +20,7 @@ const ServiceType = resource.Type("Services.v1alpha1.talos.dev") type Service = typed.Resource[ServiceSpec, ServiceRD] // ServiceSpec describe service state. +// //gotagsrewrite:gen type ServiceSpec struct { Running bool `yaml:"running" protobuf:"1"`