Skip to content

Commit 83e6f13

Browse files
authored
Merge pull request #9147 from adrianmoisey/enable-nodurations
Enable noduration and nobools kube-api-linter rule for VPA
2 parents 58e0555 + 0e7e859 commit 83e6f13

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

vertical-pod-autoscaler/hack/tools/kube-api-linter/.golangci-kal.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ linters:
2121
#- "integers" # Ensure only int32 and int64 are used for integers.
2222
#- "jsontags" # Ensure every field has a json tag.
2323
#- "maxlength" # Ensure all strings and arrays have maximum lengths/maximum items.
24-
#- "nobools" # Bools do not evolve over time, should use enums instead.
25-
#- "nodurations" # Prevents usage of `Duration` types.
24+
- "nobools" # Bools do not evolve over time, should use enums instead.
25+
- "nodurations" # Prevents usage of `Duration` types.
2626
#- "nofloats" # Ensure floats are not used.
2727
#- "nomaps" # Ensure maps are not used.
2828
#- "nonullable" # Ensure that types and fields do not have the nullable marker.

vertical-pod-autoscaler/hack/verify-kubelint.sh renamed to vertical-pod-autoscaler/hack/verify-kube-api-linter.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# Copyright 2014 The Kubernetes Authors.
3+
# Copyright The Kubernetes Authors.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)