mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-05 11:36:56 +00:00
Merge pull request #311 from jodh-intel/env-remove-agent-version
kata-env: Remove static agent version
This commit is contained in:
commit
dfdad13e45
@ -21,7 +21,7 @@ import (
|
|||||||
//
|
//
|
||||||
// XXX: Increment for every change to the output format
|
// XXX: Increment for every change to the output format
|
||||||
// (meaning any change to the EnvInfo type).
|
// (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
|
// MetaInfo stores information on the format of the output itself
|
||||||
type MetaInfo struct {
|
type MetaInfo struct {
|
||||||
@ -98,8 +98,7 @@ type ShimInfo struct {
|
|||||||
|
|
||||||
// AgentInfo stores agent details
|
// AgentInfo stores agent details
|
||||||
type AgentInfo struct {
|
type AgentInfo struct {
|
||||||
Type string
|
Type string
|
||||||
Version string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// DistroInfo stores host operating system distribution details.
|
// DistroInfo stores host operating system distribution details.
|
||||||
@ -252,8 +251,7 @@ func getShimInfo(config oci.RuntimeConfig) (ShimInfo, error) {
|
|||||||
|
|
||||||
func getAgentInfo(config oci.RuntimeConfig) AgentInfo {
|
func getAgentInfo(config oci.RuntimeConfig) AgentInfo {
|
||||||
agent := AgentInfo{
|
agent := AgentInfo{
|
||||||
Type: string(config.AgentType),
|
Type: string(config.AgentType),
|
||||||
Version: unknown,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return agent
|
return agent
|
||||||
|
@ -148,8 +148,7 @@ func getExpectedShimDetails(config oci.RuntimeConfig) (ShimInfo, error) {
|
|||||||
|
|
||||||
func getExpectedAgentDetails(config oci.RuntimeConfig) (AgentInfo, error) {
|
func getExpectedAgentDetails(config oci.RuntimeConfig) (AgentInfo, error) {
|
||||||
return AgentInfo{
|
return AgentInfo{
|
||||||
Type: string(config.AgentType),
|
Type: string(config.AgentType),
|
||||||
Version: unknown,
|
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -697,8 +696,7 @@ func testEnvShowSettings(t *testing.T, tmpdir string, tmpfile *os.File) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
agent := AgentInfo{
|
agent := AgentInfo{
|
||||||
Type: "agent-type",
|
Type: "agent-type",
|
||||||
Version: "agent-version",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
expectedHostDetails, err := getExpectedHostDetails(tmpdir)
|
expectedHostDetails, err := getExpectedHostDetails(tmpdir)
|
||||||
|
Loading…
Reference in New Issue
Block a user