Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

[6.1.x] Configure pod subnet size through cluster configuration resource #2305

Merged
merged 3 commits into from
Nov 5, 2020

Conversation

bernardjkim
Copy link
Contributor

@bernardjkim bernardjkim commented Nov 5, 2020

Description

These changes allow the pod subnet size to be configured through the cluster configuration resource.

// config.yaml
kind: ClusterConfiguration
version: v1
spec:
  global:
    podSubnetSize: "26"
...

Installing the Gravity cluster with gravity install --config config.yaml will install the cluster with a pod subnet size of 26. The pod subnet size can also be updated after installation using gravity resource create config.yaml

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change has a user-facing impact

Linked tickets and other PRs

TODOs

  • Self-review the change
  • Perform manual testing
  • Address review feedback

Testing done

  • Verify pod subnet size is set when installing the cluster with --config config.yaml
  • Verify pod subnet size is updated when updating the cluster configuration resource

* Add pod subnet config to cluster configuration resource
lib/validate/net.go Outdated Show resolved Hide resolved
@bernardjkim bernardjkim merged commit ad87667 into version/6.1.x Nov 5, 2020
@bernardjkim bernardjkim deleted the bernard/6.1.x/subnet-size branch November 5, 2020 21:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants