@@ -159,7 +159,7 @@ func (p *ClusterContextPresenter) RenderJSON(data *contextData) error {
159159
160160// printOtherLinks prints external resource links
161161func (p * ClusterContextPresenter ) printOtherLinks (data * contextData , opts ContextOptions ) {
162- var name string = "External resources"
162+ name : = "External resources"
163163 fmt .Fprintln (p .writer , delimiter + name )
164164
165165 var ohssQueryURL = fmt .Sprintf ("%[1]s/issues/?jql=project%%20%%3D%%22OpenShift%%20Hosted%%20SRE%%20Support%%22and%%20(%%22Cluster%%20ID%%22%%20~%%20%%20%%22%[2]s%%22OR%%22Cluster%%20ID%%22~%%22%[3]s%%22OR%%22description%%22~%%22%[2]s%%22OR%%22description%%22~%%22%[3]s%%22)" ,
@@ -235,7 +235,7 @@ func buildHCPSplunkURL(baseURL string, environment string, cluster *cmv1.Cluster
235235
236236// printHistoricalPDAlertSummary prints a summary of historical PagerDuty alerts
237237func (p * ClusterContextPresenter ) printHistoricalPDAlertSummary (incidentCounters map [string ][]* pagerduty.IncidentOccurrenceTracker , serviceIDs []string , sinceDays int ) {
238- var name string = "PagerDuty Historical Alerts"
238+ name : = "PagerDuty Historical Alerts"
239239 fmt .Fprintln (p .writer , delimiter + name )
240240
241241 for _ , serviceID := range serviceIDs {
@@ -266,7 +266,7 @@ func (p *ClusterContextPresenter) printHistoricalPDAlertSummary(incidentCounters
266266
267267// printJIRASupportExceptions prints JIRA support exception tickets
268268func (p * ClusterContextPresenter ) printJIRASupportExceptions (issues []jira.Issue ) {
269- var name string = "Support Exceptions"
269+ name : = "Support Exceptions"
270270 fmt .Fprintln (p .writer , delimiter + name )
271271
272272 for _ , i := range issues {
@@ -281,7 +281,7 @@ func (p *ClusterContextPresenter) printJIRASupportExceptions(issues []jira.Issue
281281
282282// printCloudTrailLogs prints potentially interesting CloudTrail events
283283func (p * ClusterContextPresenter ) printCloudTrailLogs (events []* types.Event ) {
284- var name string = "Potentially interesting CloudTrail events"
284+ name : = "Potentially interesting CloudTrail events"
285285 fmt .Fprintln (p .writer , delimiter + name )
286286
287287 if events == nil {
@@ -327,7 +327,7 @@ func (p *ClusterContextPresenter) printNetworkInfo(data *contextData) {
327327
328328// printDynatraceResources prints Dynatrace-related URLs and information
329329func (p * ClusterContextPresenter ) printDynatraceResources (data * contextData ) {
330- var name string = "Dynatrace Details"
330+ name : = "Dynatrace Details"
331331 fmt .Fprintln (p .writer , delimiter + name )
332332
333333 links := map [string ]string {
@@ -360,7 +360,7 @@ func (p *ClusterContextPresenter) printDynatraceResources(data *contextData) {
360360
361361// printUserBannedStatus prints user ban status and details
362362func (p * ClusterContextPresenter ) printUserBannedStatus (data * contextData ) {
363- var name string = "User Ban Details"
363+ name : = "User Ban Details"
364364 fmt .Fprintln (p .writer , "\n " + delimiter + name )
365365 if data .UserBanned {
366366 fmt .Fprintln (p .writer , "User is banned" )
0 commit comments