Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
k8s.io/klog/v2 v2.130.1
kmodules.xyz/client-go v0.32.7
kmodules.xyz/go-containerregistry v0.0.14
kmodules.xyz/resource-metadata v0.39.0
kmodules.xyz/resource-metadata v0.40.0
kubeops.dev/scanner v0.0.19
sigs.k8s.io/yaml v1.4.0
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,8 @@ kmodules.xyz/client-go v0.32.7 h1:vBAbp8vs4coYRhY4wqm1Hw/eBEDiVU238AyMLSoRJ1c=
kmodules.xyz/client-go v0.32.7/go.mod h1:ZwLnc7UqEXUNSe43n/SnER6+7YAQCu38L2te6YefoHU=
kmodules.xyz/go-containerregistry v0.0.14 h1:8MgLFa74HymAJEyjH7fyQJn5u2Ok6qPPFQX8ARfcXp0=
kmodules.xyz/go-containerregistry v0.0.14/go.mod h1:xz0iGC3noyMi5NNAzXWTH6KqfiIgFWZAomw+U2zVOXs=
kmodules.xyz/resource-metadata v0.39.0 h1:/UPaZFTN7x0cKzR6YUZ8RaouY/YSIekGbHlZsjzlsDg=
kmodules.xyz/resource-metadata v0.39.0/go.mod h1:rwXNC2Byb0m0XJv9PxSxPJwMM6OdU+6uOidUCHu74zU=
kmodules.xyz/resource-metadata v0.40.0 h1:OjPj9yXwf0nE536GQleOzv2LrnZp3ubykq8pGCiee6U=
kmodules.xyz/resource-metadata v0.40.0/go.mod h1:jbB6cZBUFm4GGAn1q812/YSod4EwVOqzJH7DEpea4+Y=
kubeops.dev/scanner v0.0.19 h1:J8C94k4j3NY3Y8UGHcG4nCZtmpSqPneCmkuvGNUOv4s=
kubeops.dev/scanner v0.0.19/go.mod h1:FAKPsS+FhrOPwsbwXJOE1vLvIFWBcBcSXpaAztezvu4=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
Expand Down
3 changes: 3 additions & 0 deletions vendor/kmodules.xyz/resource-metadata/apis/shared/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ type RegistryProxies struct {
// r.appscode.com
//+optional
AppsCode string `json:"appscode"`
// cr.weaviate.io
//+optional
Weaviate string `json:"weaviate"`
}

type RegistryInfo struct {
Expand Down
11 changes: 6 additions & 5 deletions vendor/kmodules.xyz/resource-metadata/apis/shared/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ const (
)

var pool = sync.Pool{
New: func() interface{} {
New: func() any {
return new(bytes.Buffer)
},
}

func (r ResourceLocator) GraphQuery(oid kmapi.OID) (string, map[string]interface{}, error) {
if r.Query.Type == GraphQLQuery {
vars := map[string]interface{}{
func (r ResourceLocator) GraphQuery(oid kmapi.OID) (string, map[string]any, error) {
switch r.Query.Type {
case GraphQLQuery:
vars := map[string]any{
GraphQueryVarSource: string(oid),
GraphQueryVarTargetGroup: r.Ref.Group,
GraphQueryVarTargetKind: r.Ref.Kind,
Expand All @@ -61,7 +62,7 @@ func (r ResourceLocator) GraphQuery(oid kmapi.OID) (string, map[string]interface
}
}
}`, r.Query.ByLabel), vars, nil
} else if r.Query.Type == RESTQuery {
case RESTQuery:
if r.Query.Raw == "" || !strings.Contains(r.Query.Raw, "{{") {
return r.Query.Raw, nil, nil
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions vendor/kmodules.xyz/resource-metadata/apis/shared/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,33 @@ type ActionTemplate struct {
DisabledTemplate string `json:"disabledTemplate,omitempty"`
Editor *releasesapi.ChartSourceRef `json:"editor,omitempty"`
EnforceQuota bool `json:"enforceQuota"`
PartOf string `json:"partOf,omitempty"`
}

type ActionInfo struct {
Name string `json:"name,omitempty"`
Icon string `json:"icon,omitempty"`
Description string `json:"description,omitempty"`
}

/*
overview -> hugeicons:book-open-01
insights -> hugeicons:chart-line-data-01
user -> hugeicons:user-03
operations -> hugeicons:dashboard-circle-settings
overview-> hugeicons:book-open-02
version update -> qlementine-icons:version-control-16
restart -> hugeicons:redo
reconfigure -> hugeicons:settings-05
vertical+compute -> hugeicons:vertical-resize
expand+storage -> hugeicons:arrow-expand
horizontal -> hugeicons:horizontal-resize
tls configure-> hugeicons:security-check
monitoring-> hugeicons:presentation-line-chart-01
expose via gateway-> streamline-ultimate:server-share
backup-> carbon:data-backup
overview-> material-symbols-light:backup-table
configure backup -> material-symbols-light:backup-outline
instant backup-> carbon:ibm-cloud-backup-and-recovery
restore-> mdi:backup-restore
*/
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (v Feature) CustomResourceDefinition() *apiextensions.CustomResourceDefinit
return crds.MustCustomResourceDefinition(SchemeGroupVersion.WithResource(ResourceFeatures))
}

func (_ Feature) FormatLabels(featureSet string) labels.Selector {
func (Feature) FormatLabels(featureSet string) labels.Selector {
return labels.SelectorFromSet(map[string]string{
ui.LabelFeatureSet: featureSet,
})
Expand Down
Loading
Loading