Merge pull request #311 from jodh-intel/env-remove-agent-version

kata-env: Remove static agent version
This commit is contained in:
Peng Tao 2018-05-15 21:22:36 +08:00 committed by GitHub
commit dfdad13e45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 9 deletions

View File

@ -21,7 +21,7 @@ import (
//
// XXX: Increment for every change to the output format
// (meaning any change to the EnvInfo type).
const formatVersion = "1.0.11"
const formatVersion = "1.0.12"
// MetaInfo stores information on the format of the output itself
type MetaInfo struct {
@ -99,7 +99,6 @@ type ShimInfo struct {
// AgentInfo stores agent details
type AgentInfo struct {
Type string
Version string
}
// DistroInfo stores host operating system distribution details.
@ -253,7 +252,6 @@ func getShimInfo(config oci.RuntimeConfig) (ShimInfo, error) {
func getAgentInfo(config oci.RuntimeConfig) AgentInfo {
agent := AgentInfo{
Type: string(config.AgentType),
Version: unknown,
}
return agent

View File

@ -149,7 +149,6 @@ func getExpectedShimDetails(config oci.RuntimeConfig) (ShimInfo, error) {
func getExpectedAgentDetails(config oci.RuntimeConfig) (AgentInfo, error) {
return AgentInfo{
Type: string(config.AgentType),
Version: unknown,
}, nil
}
@ -698,7 +697,6 @@ func testEnvShowSettings(t *testing.T, tmpdir string, tmpfile *os.File) error {
agent := AgentInfo{
Type: "agent-type",
Version: "agent-version",
}
expectedHostDetails, err := getExpectedHostDetails(tmpdir)