Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getHelmVersion (0.05 sec)

  1. cmd/update.go

    // More info: https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/#store-pod-fields
    // Check if this is Helm package installation and report helm chart version
    func getHelmVersion(helmInfoFilePath string) string {
    	// Read the file exists.
    	helmInfoFile, err := Open(helmInfoFilePath)
    	if err != nil {
    		// Log errors and return "" as MinIO can be deployed
    		// without Helm charts as well.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  2. cmd/update_test.go

    		filename       string
    		expectedResult string
    	}{
    		{"", ""},
    		{"/tmp/non-existing-file", ""},
    		{filename, "minio-0.1.3"},
    	}
    
    	for _, testCase := range testCases {
    		result := getHelmVersion(testCase.filename)
    
    		if testCase.expectedResult != result {
    			t.Fatalf("result: expected: %v, got: %v", testCase.expectedResult, result)
    		}
    	}
    }
    
    func TestDownloadReleaseData(t *testing.T) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 10.4K bytes
    - Viewed (0)
Back to top