Fix: apiVersion Cilium template#12966
Conversation
…lium Signed-off-by: uchiha-vivek <vs160125@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: uchiha-vivek The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @uchiha-vivek. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
I have taken the above link as reference
Their official docs apiVersion: cilium.io/v2
kind: CiliumBGPClusterConfig
metadata:
name: cilium-bgp
spec:
nodeSelector:
matchLabels:
rack: rack0
bgpInstances:
- name: "instance-65000"
localASN: 65000
localPort: 179
peers:
- name: "peer-65000-tor1"
peerASN: 65000
peerAddress: fd00:10:0:0::1
peerConfigRef:
name: "cilium-peer"
- name: "peer-65000-tor2"
peerASN: 65000
peerAddress: fd00:11:0:0::1
peerConfigRef:
name: "cilium-peer"We can check the api version clearly |
|
You can consider to migrate to #12952. |
Yes sir |
All the previous changes for the pull request (kubernetes-sigs#12952) has been included within kubernetes-sigs#12966.
@tico88612 Sir |
|
/retitle Fix: apiVersion Cilium template |
| {% endif %} | ||
| spec: | ||
| {{ cilium_bgp_advertisement.spec | to_yaml | indent(4) }} | ||
| {{ cilium_bgp_advertisement.spec | to_yaml | indent(2) }} |
There was a problem hiding this comment.
Wondering why this part needs to be changed?
There was a problem hiding this comment.
Honestly indent(2) and indent(4) both works. It's not a significant change. I was just following Jinja Template Documentation
@tico88612 Sir i can safely revert it back.
There was a problem hiding this comment.
If you want to change it, please make your commit messages clearer, and the same goes for everything else.
|
Superseded by #13095 /close |
|
@tico88612: Closed this PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What type of PR is this?
What this PR does / why we need it:
uses stable
cilium.io/v2API for Cilium BGP v2 templatesCilium BGP v2 APIs (
CiliumBGPClusterConfig,CiliumBGPPeerConfig,CiliumBGPNodeConfigOverride,CiliumBGPAdvertisement) graduated to the stablecilium.io/v2API in Cilium v1.16+.Using the alpha API results in deprecation warnings on newer Cilium versions.
Testes the updated
cilium-bgp-cluster-config.yml.j2template locally using Ansible and validated the manifest with yaml.safe_loadWhich issue(s) this PR fixes:
Fixes #12819
Special notes for your reviewer:
This is something to similar to issue #12843 and I have raised one pr for that specific fix #12952
Does this PR introduce a user-facing change?: