Update external huawei cloud controller to 0.26.8 (#11172)

* Update external huawei cloud controller to 0.26.8

* Update huawei cloud controller templates

* Add security-group-id to config

* git fail
pull/11176/head
Daniel Strufe 2024-05-08 10:36:31 +02:00 committed by GitHub
parent d94f3ce965
commit 0b0faf8f72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 99 additions and 99 deletions

View File

@ -14,4 +14,4 @@
## The repo and tag of the external Huawei Cloud Controller image ## The repo and tag of the external Huawei Cloud Controller image
# external_huawei_cloud_controller_image_repo: "swr.ap-southeast-1.myhuaweicloud.com" # external_huawei_cloud_controller_image_repo: "swr.ap-southeast-1.myhuaweicloud.com"
# external_huawei_cloud_controller_image_tag: "v0.26.6" # external_huawei_cloud_controller_image_tag: "v0.26.8"

View File

@ -16,4 +16,4 @@ external_huaweicloud_cloud: "{{ lookup('env','OS_CLOUD') }}"
## arg2: "value2" ## arg2: "value2"
external_huawei_cloud_controller_extra_args: {} external_huawei_cloud_controller_extra_args: {}
external_huawei_cloud_controller_image_repo: "swr.ap-southeast-1.myhuaweicloud.com" external_huawei_cloud_controller_image_repo: "swr.ap-southeast-1.myhuaweicloud.com"
external_huawei_cloud_controller_image_tag: "v0.26.6" external_huawei_cloud_controller_image_tag: "v0.26.8"

View File

@ -21,3 +21,6 @@ subnet-id={{ external_huaweicloud_lbaas_subnet_id }}
{% if external_huaweicloud_lbaas_network_id is defined %} {% if external_huaweicloud_lbaas_network_id is defined %}
id={{ external_huaweicloud_lbaas_network_id }} id={{ external_huaweicloud_lbaas_network_id }}
{% endif %} {% endif %}
{% if external_huaweicloud_security_group_id is defined %}
security-group-id={{ external_huaweicloud_security_group_id }}
{% endif %}

View File

@ -47,6 +47,11 @@ spec:
- --cloud-config=$(CLOUD_CONFIG) - --cloud-config=$(CLOUD_CONFIG)
- --cloud-provider=huaweicloud - --cloud-provider=huaweicloud
- --use-service-account-credentials=true - --use-service-account-credentials=true
- --node-status-update-frequency=5s
- --node-monitor-period=5s
- --leader-elect-lease-duration=30s
- --leader-elect-renew-deadline=20s
- --leader-elect-retry-period=2s
{% for key, value in external_huawei_cloud_controller_extra_args.items() %} {% for key, value in external_huawei_cloud_controller_extra_args.items() %}
- "{{ '--' + key + '=' + value }}" - "{{ '--' + key + '=' + value }}"
{% endfor %} {% endfor %}

View File

@ -1,16 +1,12 @@
apiVersion: v1 kind: ClusterRoleBinding
items: apiVersion: rbac.authorization.k8s.io/v1
- apiVersion: rbac.authorization.k8s.io/v1 metadata:
kind: ClusterRoleBinding name: system:cloud-controller-manager
metadata: roleRef:
name: system:cloud-controller-manager apiGroup: rbac.authorization.k8s.io
roleRef: kind: ClusterRole
apiGroup: rbac.authorization.k8s.io name: system:cloud-controller-manager
kind: ClusterRole subjects:
name: system:cloud-controller-manager
subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: cloud-controller-manager name: cloud-controller-manager
namespace: kube-system namespace: kube-system
kind: List
metadata: {}

View File

@ -1,117 +1,113 @@
apiVersion: v1 apiVersion: rbac.authorization.k8s.io/v1
items: kind: ClusterRole
- apiVersion: rbac.authorization.k8s.io/v1 metadata:
kind: ClusterRole name: system:cloud-controller-manager
metadata: rules:
name: system:cloud-controller-manager
rules:
- resources: - resources:
- tokenreviews - tokenreviews
verbs: verbs:
- get - get
- list - list
- watch - watch
- create - create
- update - update
- patch - patch
apiGroups: apiGroups:
- authentication.k8s.io - authentication.k8s.io
- resources: - resources:
- configmaps - configmaps
- endpoints - endpoints
- pods - pods
- services - services
- secrets - secrets
- serviceaccounts - serviceaccounts
- serviceaccounts/token - serviceaccounts/token
verbs: verbs:
- get - get
- list - list
- watch - watch
- create - create
- update - update
- patch - patch
apiGroups: apiGroups:
- '' - ''
- resources: - resources:
- nodes - nodes
verbs: verbs:
- get - get
- list - list
- watch - watch
- delete - delete
- patch - patch
- update - update
apiGroups: apiGroups:
- '' - ''
- resources: - resources:
- services/status - services/status
- pods/status - pods/status
verbs: verbs:
- update - update
- patch - patch
apiGroups: apiGroups:
- '' - ''
- resources: - resources:
- nodes/status - nodes/status
verbs: verbs:
- patch - patch
- update - update
apiGroups: apiGroups:
- '' - ''
- resources: - resources:
- events - events
- endpoints - endpoints
verbs: verbs:
- create - create
- patch - patch
- update - update
apiGroups: apiGroups:
- '' - ''
- resources: - resources:
- leases - leases
verbs: verbs:
- get - get
- update - update
- create - create
- delete - delete
apiGroups: apiGroups:
- coordination.k8s.io - coordination.k8s.io
- resources: - resources:
- customresourcedefinitions - customresourcedefinitions
verbs: verbs:
- get - get
- update - update
- create - create
- delete - delete
apiGroups: apiGroups:
- apiextensions.k8s.io - apiextensions.k8s.io
- resources: - resources:
- ingresses - ingresses
verbs: verbs:
- get - get
- list - list
- watch - watch
- update - update
- create - create
- patch - patch
- delete - delete
apiGroups: apiGroups:
- networking.k8s.io - networking.k8s.io
- resources: - resources:
- ingresses/status - ingresses/status
verbs: verbs:
- update - update
- patch - patch
apiGroups: apiGroups:
- networking.k8s.io - networking.k8s.io
- resources: - resources:
- endpointslices - endpointslices
verbs: verbs:
- get - get
- list - list
- watch - watch
apiGroups: apiGroups:
- discovery.k8s.io - discovery.k8s.io
kind: List
metadata: {}