Skip to content

Commit c38f503

Browse files
committed
chore: add parameter and pod to report
1 parent 10f3afd commit c38f503

2 files changed

Lines changed: 25 additions & 4 deletions

File tree

pkg/cmd/report/report.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@ func (o *reportClusterOptions) handleManifests(ctx context.Context) error {
506506
types.OpsGVR(),
507507
types.PVCGVR(),
508508
types.ComponentGVR(),
509+
types.ParameterGVR(),
510+
types.ComponentParameterGVR(),
511+
types.PodGVR(),
509512
// TODO: add new configuration API
510513
}
511514
globalGvrs = []schema.GroupVersionResource{

pkg/types/types.go

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ const (
131131
KindDeployment = "Deployment"
132132
KindConfigMap = "ConfigMap"
133133
KindCronJob = "CronJob"
134-
KindParametersDef = "ParametersDefinition"
135-
KindParameterConfigRender = "ParameterConfigRender"
136134
)
137135

138136
// K8S rbac API group
@@ -178,8 +176,18 @@ const (
178176
ResourceBackupRepos = "backuprepos"
179177
ResourceBackupSchedules = "backupschedules"
180178
ResourceBackupTemplates = "backuppolicytemplates"
181-
ParametersAPIGroup = "parameters.kubeblocks.io"
182-
ParametersAPIVersion = "v1alpha1"
179+
)
180+
181+
// Parameters API group
182+
const (
183+
ParametersAPIGroup = "parameters.kubeblocks.io"
184+
ParametersAPIVersion = "v1alpha1"
185+
186+
KindParametersDef = "ParametersDefinition"
187+
KindParameterConfigRender = "ParameterConfigRender"
188+
189+
ResourceParameters = "parameters"
190+
ResourceComponentParameters = "componentparameters"
183191
)
184192

185193
// Extensions API group
@@ -498,3 +506,13 @@ func CronJobGVR() schema.GroupVersionResource {
498506
func TraceGVR() schema.GroupVersionResource {
499507
return schema.GroupVersionResource{Group: TraceAPIGroup, Version: TraceAPIVersion, Resource: ResourceTrace}
500508
}
509+
510+
// Parameters API group
511+
512+
func ParameterGVR() schema.GroupVersionResource {
513+
return schema.GroupVersionResource{Group: ParametersAPIGroup, Version: ParametersAPIVersion, Resource: ResourceParameters}
514+
}
515+
516+
func ComponentParameterGVR() schema.GroupVersionResource {
517+
return schema.GroupVersionResource{Group: ParametersAPIGroup, Version: ParametersAPIVersion, Resource: ResourceComponentParameters}
518+
}

0 commit comments

Comments
 (0)