We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f07260 commit fb34a02Copy full SHA for fb34a02
pkg/cshash/hash.go
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16
17
-// Package hash contains important functions of hash.
+// Package cshash contains important functions of hash.
18
package cshash
19
20
import (
@@ -92,6 +92,9 @@ func GetHash(path string) (ReleaseHash, error) {
92
releaseHash.ClusterAddonDir = hash
93
case nodeImageDirName:
94
releaseHash.NodeImageDir = hash
95
+ default:
96
+ // Should not happen
97
+ return ReleaseHash{}, fmt.Errorf("unknown name type %s", entryPath)
98
}
99
} else if !entry.IsDir() && entry.Name() == clusterAddonValuesFileName {
100
file, _ := os.Open(filepath.Clean(entryPath))
0 commit comments