Code Monkey home page Code Monkey logo

Comments (2)

longhorn-io-github-bot avatar longhorn-io-github-bot commented on June 7, 2024

Pre Ready-For-Testing Checklist

  • Where is the reproduce steps/test steps documented?
    The reproduce steps/test steps are at: See base issue #7755

  • Is there a workaround for the issue? If so, where is it documented?
    The workaround is at:

  • Does the PR include the explanation for the fix or the feature?

from longhorn.

roger-ryao avatar roger-ryao commented on June 7, 2024

Verified on v1.6.1-rc1 20240314

The test steps
#7755 (comment)

Result Passed

  1. Deploy Longhorn(master-head, v1.6.1-rc1)

  2. Update default-replica-count to 4 by UI or by kubectl
    kubectl -n longhorn-system patch -p '{"value": "4"}' --type=merge lhs default-replica-count

  3. From API, the value: 4, definition.default: 3
    Screenshot_20240314_174836

  4. Apply below yaml to update default replica count to 4 by config map

    apiVersion: v1
    data:
      default-setting.yaml: |
        default-replica-count: 4
        priority-class: longhorn-critical
    kind: ConfigMap
    metadata:
      name: longhorn-default-setting
      namespace: longhorn-system
    
  5. Kubectl replied configmap/longhorn-default-setting configured, Can see both definition.default and value updated to 4

    > k apply -f update_default_replica.yaml
    configmap/longhorn-default-setting configured
    

    Screenshot_20240314_175053

  6. Apply below yaml to update default replica count to 5 by config map

    apiVersion: v1
    data:
      default-setting.yaml: |
        default-replica-count: 5
        priority-class: longhorn-critical
    kind: ConfigMap
    metadata:
      name: longhorn-default-setting
      namespace: longhorn-system
    
  7. Can see both definition.default and value updated to 5

from longhorn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.