Skip to content

Commit

Permalink
Fix e2e
Browse files Browse the repository at this point in the history
Signed-off-by: zhujian <[email protected]>
  • Loading branch information
zhujian7 committed Apr 1, 2024
1 parent bf6d47d commit f0d88fb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/deploy/addon/helloworld-helm/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace: open-cluster-management

resources:
- resources/addon_deployment_config.yaml
- resources/cluster_role.yaml
- resources/cluster_role_binding.yaml
- resources/service_account.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: addon.open-cluster-management.io/v1alpha1
kind: AddOnDeploymentConfig
metadata:
name: helloworldhelm-config
spec:
agentInstallNamespace: open-cluster-management-agent-addon
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ spec:
supportedConfigs:
- group: addon.open-cluster-management.io
resource: addondeploymentconfigs
defaultConfig:
name: helloworldhelm-config
namespace: open-cluster-management
- resource: configmaps
2 changes: 1 addition & 1 deletion pkg/utils/addon_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func AgentInstallNamespaceFromDeploymentConfigFunc(
return "", fmt.Errorf("failed to get deployment config for addon %s: %v", addon.Name, err)
}
if config == nil {
return "", fmt.Errorf("failed to get deployment config for addon %s: %v", addon.Name, err)
return "", fmt.Errorf("failed to get deployment config for addon %s", addon.Name)
}

return config.Spec.AgentInstallNamespace, nil
Expand Down

0 comments on commit f0d88fb

Please sign in to comment.