talos/.conform.yaml

54 lines
1.2 KiB
YAML
Raw Normal View History

2018-03-12 07:39:06 +03:00
policies:
- type: commit
spec:
dco: true
gpg:
required: true
identity:
gitHubOrganization: siderolabs
spellcheck:
locale: US
maximumOfOneCommit: true
header:
length: 89
imperative: true
case: lower
invalidLastCharacters: .
body:
required: true
conventional:
types:
- chore
- docs
- perf
- refactor
- style
- test
- release
scopes:
- apid
- machined
- networkd
- talosctl
- trustd
- talosctl
- kernel
- security
- ^v1.6
- type: license
spec:
skipPaths:
- .git/
includeSuffixes:
- .go
excludeSuffixes:
- .pb.go
feat: implement LinkStatusController This is the first PR of many which implement new COSI network configuration. This controller provides low-level status of the network interfaces (links) not touching on the addresses of the interface. The information gathered resembles output of `ip link show` command. Examples: ``` $ talosctl -n 172.20.0.2 get links NODE NAMESPACE TYPE ID VERSION TYPE KIND HW ADDR OPER STATE LINK STATE 172.20.0.2 net LinkStatus bond0 1 ether bond fe:c4:d6:4c:04:05 down false 172.20.0.2 net LinkStatus cni0 5 ether bridge 22:cc:25:7e:64:19 up true 172.20.0.2 net LinkStatus dummy0 1 ether dummy 0e:f6:f3:ef:53:29 down false 172.20.0.2 net LinkStatus eth0 4 ether ae:1b:9c:19:6b:47 up true 172.20.0.2 net LinkStatus flannel.1 2 ether vxlan be:c5:4f:eb:da:5c unknown true 172.20.0.2 net LinkStatus ip6tnl0 1 tunnel6 ip6tnl 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 down false 172.20.0.2 net LinkStatus lo 4 loopback 00:00:00:00:00:00 unknown true 172.20.0.2 net LinkStatus sit0 1 sit sit 00:00:00:00 down false 172.20.0.2 net LinkStatus teql0 1 void down false 172.20.0.2 net LinkStatus tunl0 1 ipip ipip 00:00:00:00 down false 172.20.0.2 net LinkStatus veth1c1422df 2 ether veth 6a:2d:68:be:8e:8f up true 172.20.0.2 net LinkStatus veth2ce7ce8d 1 ether veth 52:fc:98:82:f7:29 up true ``` ``` $ talosctl -n 172.20.0.2 get links eth0 -o yaml node: 172.20.0.2 metadata: namespace: net type: LinkStatuses.net.talos.dev id: eth0 version: 4 owner: network.LinkStatusController phase: running spec: index: 4 type: ether linkIndex: 0 flags: UP,BROADCAST,RUNNING,MULTICAST,LOWER_UP hardwareAddr: ae:1b:9c:19:6b:47 broadcastAddr: ff:ff:ff:ff:ff:ff mtu: 1500 queueDisc: pfifo_fast operationalState: up kind: "" slaveKind: "" linkState: true speedMbit: 4294967295 port: Other duplex: Unknown ``` Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2021-05-05 22:50:54 +03:00
- _string.go
- _enumer.go
- _string_linux.go
- zz_generated.deepcopy.go
header: |
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.