Skip to content

Commit

Permalink
Add network MTU variable into cluster-class (#151)
Browse files Browse the repository at this point in the history
Signed-off-by: michal.gubricky <michal.gubricky@dnation.cloud>
  • Loading branch information
michal-gubricky authored Jul 30, 2024
1 parent 789e5de commit 287ec47
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions providers/openstack/scs/cluster-class/templates/cluster-class.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,13 @@ Iss uer URL )# where ( Issuer URL ) is the value of --oidc-issuer-url. The value
description: "Prefix prepended to group claims to prevent clashes
wit h existing names (such as system: groups). For example, the value oidc: will
cre ate group names like oidc:engineering and oidc:infra."
- name: network_mtu
required: false
schema:
openAPIV3Schema:
type: integer
example: 1500
description: "NetworkMTU sets the maximum transmission unit (MTU) value to address fragmentation for the private network ID."
patches:
- name: k8s_version
description: "Sets the openstack node image for workers and the controlplane to the cluster-api image with the version mentioned in spec.topology.version."
Expand Down Expand Up @@ -567,6 +574,20 @@ cre ate group names like oidc:engineering and oidc:infra."
path: "/spec/template/spec/externalNetwork/id"
valueFrom:
variable: external_id
- name: network_mtu
description: "Sets the network MTU when variable network_mtu exist in cluster resource."
enabledIf: {{ `"{{ if .network_mtu }}true{{end}}"` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
matchResources:
infrastructureCluster: true
jsonPatches:
- op: add
path: "/spec/template/spec/networkMTU"
valueFrom:
variable: network_mtu
- name: openstack_security_groups
description: "Sets the list of the openstack security groups for the worker and the controlplane instances."
enabledIf: {{ `"{{ if .openstack_security_groups }}true{{end}}"` }}
Expand Down

0 comments on commit 287ec47

Please sign in to comment.