func GetClientVersion(hardcode bool) string {
	// For the client version number we use the defined major and minor and revision numbers of the module version.
	// For example, module version of 0.1.23 would create a client version would be 16.1.23.

	// Get the version of the keeper secrets manager core
	result := versionMajor + ".2.0"

	// Allow the default version to be hard coded. If not build the client version from the module version.
	if !hardcode {
		if versionParts := strings.Split(version, "."); len(versionParts) > 2 {
			versionMinor := strings.TrimSpace(versionParts[1])
			parts := strings.FieldsFunc(versionParts[2], func(r rune) bool { return '0' > r || r > '9' })
			versionRevision := strings.TrimSpace(parts[0])
			if versionMajor != "" && versionMinor != "" && versionRevision != "" {
				result = fmt.Sprintf("%s.%s.%s", versionMajor, versionMinor, versionRevision)
			} else {
				klog.Error("Unable to determine the client version - using default: " + result)
			}
		}
	}
	return result
}
// getClientVersion returns the version of the client
getClientVersion returns the version of the client
// getClientVersion returns the version of the client
func GetClientVersion(hardcode bool) string {
	result := versionMajor + ".2.0"
	if !hardcode {
		if versionParts := strings.Split(version, "."); len(versionParts) > 2 {
			versionMinor := strings.TrimSpace(versionParts[1])
			parts := strings.FieldsFunc(versionParts[2], func(r rune) bool { return '0' > r || r > '9' })
			versionRevision := strings.TrimSpace(parts[0])
			if versionMajor != "" && versionMinor != "" && versionRevision != "" {
				result = fmt.Sprintf("%s.%s.%s", versionMajor, versionMinor, versionRevision)
			} else {
				klog.Error("Unable to determine the client version - using default: " + result)
			}
		}
	}
	return result
}
func GetClientVersion ( hardcode bool ) string { result := versionMajor + " " if ! hardcode { if versionParts := strings . Split ( version , " " ) ; len ( versionParts ) > 2 { versionMinor := strings . TrimSpace ( versionParts [ 1 ] ) parts := strings . FieldsFunc ( versionParts [ 2 ] , func ( r rune ) bool { return '0' > r || r > '9' } ) versionRevision := strings . TrimSpace ( parts [ 0 ] ) if versionMajor != " " && versionMinor != " " && versionRevision != " " { result = fmt . Sprintf ( " " , versionMajor , versionMinor , versionRevision ) } else { klog . Error ( " " + result ) } } } return result }
getClientVersion returns the version of the client
getClientVersion returns the version of the client
// For the client version number we use the defined major and minor and revision numbers of the module version. // For example, module version of 0.1.23 would create a client version would be 16.1.23. // Get the version of the keeper secrets manager core // Allow the default version to be hard coded. If not build the client version from the module version.