-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93cad8c
commit a50f25c
Showing
6 changed files
with
246 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package config | ||
|
||
type CustomResourceLinks map[string]*CustomResourceLink | ||
|
||
func NewCustomResourceLinks() CustomResourceLinks { | ||
return CustomResourceLinks{} | ||
} | ||
|
||
// CustomResourceLink tracks K9s CustomResourceLink configuration. | ||
type CustomResourceLink struct { | ||
// Target represents the target GVR to open when activating a custom resource link. | ||
Target string `yaml:"target"` | ||
// LabelSelector defines keys (=target label) and values (=json path) to extract from the current resource. | ||
LabelSelector map[string]string `yaml:"labelSelector,omitempty"` | ||
// FieldSelector defines keys (=target field) and values (=json path) to extract from the current resource. | ||
FieldSelector map[string]string `yaml:"fieldSelector,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters