Skip to content

Conversation

@akhilesh78
Copy link

As per source code, annotation should be having a value of 'true' or 'false' and not enabled. The existing examples are incorrect.

service.beta.kubernetes.io/cloudstack-load-balancer-proxy-protocol: 'true'

As per source code, annotation should be having a value of 'true' or 'false' and not enabled. The existing examples are incorrect. 

service.beta.kubernetes.io/cloudstack-load-balancer-proxy-protocol: 'true'
As per source code, annotation should be having a value of 'true' or 'false' and not enabled. The existing examples are incorrect. 

service.beta.kubernetes.io/cloudstack-load-balancer-proxy-protocol: 'true'
Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code lgtm

Not tested it yet

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes incorrect annotation values in Kubernetes service configurations for the CloudStack load balancer proxy protocol. The annotation service.beta.kubernetes.io/cloudstack-load-balancer-proxy-protocol was using the value enabled, which is not recognized by the CloudStack provider code. According to the source code (specifically getBoolFromServiceAnnotation in cloudstack_loadbalancer.go), this annotation only accepts 'true' or 'false' as valid boolean string values.

  • Corrects annotation value from enabled to 'true' in both configuration files
  • Ensures the annotation will be properly parsed by the getBoolFromServiceAnnotation function

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
traefik-ingress-controller.yml Fixed proxy protocol annotation value from enabled to 'true'
nginx-ingress-controller-patch.yml Fixed proxy protocol annotation value from enabled to 'true'

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants