mirror of
https://github.com/siderolabs/talos.git
synced 2025-10-27 06:21:11 +01:00
Add a new resource, `SiderolinkStatus`, which combines the following info: - The Siderolink API endpoint without the query parameters or fragments (potentially sensitive info due to the join token) - The status of the Siderolink connection This resource is not set as sensitive, so it can be retrieved by the users with `os:operator` role (e.g., using `talosctl dashboard` through Omni). Make use of this resource in the dashboard to display the status of the Siderolink connection. Additionally, rework the status columns in the dashboard to: - Display a Linux terminal compatible "tick" or a "cross" prefix for statuses in addition to the red/green color coding. - Move and combine some statuses to save rows and make them more even. Closes siderolabs/talos#8643. Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>
26 lines
785 B
Go
26 lines
785 B
Go
// 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/.
|
|
|
|
// Code generated by "deep-copy -type ConfigSpec -type StatusSpec -type TunnelSpec -header-file ../../../../hack/boilerplate.txt -o deep_copy.generated.go ."; DO NOT EDIT.
|
|
|
|
package siderolink
|
|
|
|
// DeepCopy generates a deep copy of ConfigSpec.
|
|
func (o ConfigSpec) DeepCopy() ConfigSpec {
|
|
var cp ConfigSpec = o
|
|
return cp
|
|
}
|
|
|
|
// DeepCopy generates a deep copy of StatusSpec.
|
|
func (o StatusSpec) DeepCopy() StatusSpec {
|
|
var cp StatusSpec = o
|
|
return cp
|
|
}
|
|
|
|
// DeepCopy generates a deep copy of TunnelSpec.
|
|
func (o TunnelSpec) DeepCopy() TunnelSpec {
|
|
var cp TunnelSpec = o
|
|
return cp
|
|
}
|