Skip to content

Commit

Permalink
Issue #3915 - Bug: namespace-scoped agent could not deploy operator w…
Browse files Browse the repository at this point in the history
…ith 'Namespace' set to a different namespace in the yaml file

Signed-off-by: Le Zhang <[email protected]>
  • Loading branch information
LiilyZhang committed Oct 6, 2023
1 parent a85861c commit 25fe8e5
Show file tree
Hide file tree
Showing 3 changed files with 269 additions and 17 deletions.
2 changes: 1 addition & 1 deletion externalpolicy/builtin_properties.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func NodeBuiltInPropMap(nodeType string) map[string]string {
return map[string]string{PROP_NODE_CPU: "2.23.4", PROP_NODE_MEMORY: "2.23.4", PROP_NODE_ARCH: "2.23.4", PROP_NODE_HARDWAREID: "2.24.5", PROP_NODE_PRIVILEGED: "2.24.10",
PROP_NODE_OS: "2.30.0", PROP_NODE_CONTAINERIZED: "2.30.0"}
} else if nodeType == "cluster" {
return map[string]string{PROP_NODE_K8S_VERSION: "2.26.4", PROP_NODE_CPU: "2.23.4", PROP_NODE_MEMORY: "2.23.4", PROP_NODE_ARCH: "2.23.4", PROP_NODE_PRIVILEGED: "2.24.10"}
return map[string]string{PROP_NODE_K8S_NAMESPACE_SCOPED: "2.31.0", PROP_NODE_K8S_NAMESPACE: "2.31.0", PROP_NODE_K8S_VERSION: "2.26.4", PROP_NODE_CPU: "2.23.4", PROP_NODE_MEMORY: "2.23.4", PROP_NODE_ARCH: "2.23.4", PROP_NODE_PRIVILEGED: "2.24.10"}
}

return map[string]string{}
Expand Down
Loading

0 comments on commit 25fe8e5

Please sign in to comment.