Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format comment format #250

Merged
merged 1 commit into from
Jan 19, 2023
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/api/v1/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func NamespacedResourcesPolicyListHandler(finder PolicyReportFinder) http.Handle
}
}

// NamespacedResourcesPolicyListHandler REST API
// NamespacedResourcesRuleListHandler REST API
func NamespacedResourcesRuleListHandler(finder PolicyReportFinder) http.HandlerFunc {
return func(w http.ResponseWriter, req *http.Request) {
list, err := finder.FetchNamespacedRules(buildFilter(req))
Expand Down
2 changes: 1 addition & 1 deletion pkg/kubernetes/policy_report_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (k *k8sPolicyReportClient) configureClusterPolicyReport() cache.SharedIndex
return cpolrInformer
}

// NewPolicyReportAdapter new Adapter for Policy Report Kubernetes API
// NewPolicyReportClient new Client for Policy Report Kubernetes API
func NewPolicyReportClient(client versioned.Interface, mapper Mapper, reportFilter *report.Filter, publisher report.EventPublisher) report.PolicyReportClient {
fatcory := externalversions.NewSharedInformerFactory(client, time.Hour)
v1alpha2 := fatcory.Wgpolicyk8s().V1alpha2()
Expand Down