-
Notifications
You must be signed in to change notification settings - Fork 13
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
[k8s_0.29] Update k8s.io API to version 0.29 #2
base: master
Are you sure you want to change the base?
Conversation
not ready for review yet, work in progress |
It's ready for review now |
@luksa, it would be great if you could review and approve, so that other people can take use of this PR, thanks! |
"The type of resource object that is used for locking during "+ | ||
"leader election. Supported options are `configmaps` (default) and `endpoints`.") | ||
"leader election. Supported option is `leases`.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ConfigMaps
was replaced by Leases
@@ -99,7 +101,7 @@ func main() { | |||
var kubeInformerFactory kubeinformers.SharedInformerFactory | |||
if config.localOnly { | |||
if config.namespace == "" { | |||
bytes, err := ioutil.ReadFile("/var/run/secrets/kubernetes.io/serviceaccount/namespace") | |||
bytes, err := os.ReadFile("/var/run/secrets/kubernetes.io/serviceaccount/namespace") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ioutil.ReadFile
was replaced with os.ReadFile
"os" | ||
|
||
"statefulset-scaledown-controller/pkg/controller" | ||
"statefulset-scaledown-controller/pkg/signals" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using local controller/signals packages instead of github.com/jboss-openshift
Updating the statefulset scaledown controller code to use newer k8s.io API, version 0.29
Changes:
pkg/controller
andpkg/signals
(instead ofgithub.com/jboss-openshift/statefulset-scaledown-controller
)Testing:
make build
make image
go build ./...
go test ./...