mirror of
				https://github.com/kubernetes-sigs/external-dns.git
				synced 2025-10-31 18:50:59 +01:00 
			
		
		
		
	add golangci-lint update
This commit is contained in:
		
							parent
							
								
									93e7fcdb64
								
							
						
					
					
						commit
						de20b13879
					
				
							
								
								
									
										2
									
								
								.github/workflows/lint.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/lint.yaml
									
									
									
									
										vendored
									
									
								
							| @ -31,5 +31,5 @@ jobs: | ||||
| 
 | ||||
|     - name: Lint | ||||
|       run: | | ||||
|         curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1 | ||||
|         curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.53.2 | ||||
|         make lint | ||||
|  | ||||
| @ -19,7 +19,6 @@ linters: | ||||
|   # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint | ||||
|   disable-all: true | ||||
|   enable: | ||||
|     - depguard | ||||
|     - dogsled | ||||
|     - gofmt | ||||
|     - goimports | ||||
|  | ||||
| @ -38,7 +38,7 @@ import ( | ||||
| ) | ||||
| 
 | ||||
| func init() { | ||||
| 	rand.Seed(time.Now().UnixNano()) | ||||
| 	rand.New(rand.NewSource(time.Now().UnixNano())) | ||||
| } | ||||
| 
 | ||||
| const ( | ||||
|  | ||||
| @ -46,7 +46,7 @@ const ( | ||||
| ) | ||||
| 
 | ||||
| func init() { | ||||
| 	rand.Seed(time.Now().UnixNano()) | ||||
| 	rand.New(rand.NewSource(time.Now().UnixNano())) | ||||
| } | ||||
| 
 | ||||
| // RDNSClient is an interface to work with Rancher DNS(RDNS) records in etcdv3 backend. | ||||
|  | ||||
| @ -34,7 +34,7 @@ type mockAPIService struct { | ||||
| } | ||||
| 
 | ||||
| func NewMockService(privateZones []*privatedns.PrivateZone, privateZoneRecords map[string][]*privatedns.PrivateZoneRecord, dnspodDomains []*dnspod.DomainListItem, dnspodRecords map[string][]*dnspod.RecordListItem) *mockAPIService { | ||||
| 	rand.Seed(time.Now().Unix()) | ||||
| 	rand.New(rand.NewSource(time.Now().Unix())) | ||||
| 	return &mockAPIService{ | ||||
| 		privateZones:       privateZones, | ||||
| 		privateZoneRecords: privateZoneRecords, | ||||
|  | ||||
| @ -41,7 +41,7 @@ const ( | ||||
| ) | ||||
| 
 | ||||
| func init() { | ||||
| 	rand.Seed(time.Now().UnixNano()) | ||||
| 	rand.New(rand.NewSource(time.Now().UnixNano())) | ||||
| } | ||||
| 
 | ||||
| // NewFakeSource creates a new fakeSource with the given config. | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user