Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self-defind project can't load helm chart using secret #850

Open
cyxinda opened this issue Jun 27, 2023 · 0 comments
Open

Self-defind project can't load helm chart using secret #850

cyxinda opened this issue Jun 27, 2023 · 0 comments
Labels
kind/bug Something isn't working

Comments

@cyxinda
Copy link

cyxinda commented Jun 27, 2023

Describe the bug
If I use self-defind project instead of the project Default/default,It will fail to create applicaion of helm chart. It can't load helm chart normally from helm repository.

To Reproduce

Steps to reproduce the behavior:

  1. I create a project as follow:
    1111

  2. I create a target and a envronments using the project above:
    2222
    3333

  3. I distribute the [helm repository config] to the target above:
    444

  4. I can find the serect distributed above in the namesapce of canary-1.

[root@xy-5-server14 velaux]# kubectl -n canary-1 get secret harbor-helm-tests -oyaml
apiVersion: v1
data:
  input-properties: eyJwYXNzd29yZCI6IiIsInVybCI6Imh0dHBzOi8vcmVnaXN0cnkua25vd2RlZS5jb20vY2hhcnRyZXBvL3Rlc3RzIiwidXNlcm5hbWUiOiIifQ==
  password: ""
  url: aHR0cHM6Ly9yZWdpc3RyeS5rbm93ZGVlLmNvbS9jaGFydHJlcG8vdGVzdHM=
  username: ""
kind: Secret
metadata:
  annotations:
    app.oam.dev/publishVersion: config-20230627203937124
    app.oam.dev/shared-by: canary/distribute-harbor-helm-tests
    config.oam.dev/alias: harbor-test
    config.oam.dev/description: ""
    config.oam.dev/distribution-spec: '{"Configs":[{"name":"harbor-helm-tests","namespace":"vela-system"}],"Targets":[{"clusterName":"local","namespace":"canary-1"}]}'
    config.oam.dev/sensitive: "false"
    config.oam.dev/template-namespace: vela-system
    oam.dev/kubevela-version: v1.8.2
  creationTimestamp: "2023-06-27T12:39:37Z"
  labels:
    app.oam.dev/app-revision-hash: 85bbd503b16f42fe
    app.oam.dev/appRevision: distribute-harbor-helm-tests-v1
    app.oam.dev/cluster: local
    app.oam.dev/component: distribute-harbor-helm-tests
    app.oam.dev/name: distribute-harbor-helm-tests
    app.oam.dev/namespace: canary
    app.oam.dev/resourceType: WORKLOAD
    app.oam.dev/revision: ""
    app.oam.dev/source-of-truth: from-inner-system
    config.oam.dev/catalog: config-distribution
    config.oam.dev/multi-cluster: "true"
    config.oam.dev/scope: project
    config.oam.dev/sub-type: helm
    config.oam.dev/type: helm-repository
    oam.dev/render-hash: 5cd05b815b942c71
    workload.oam.dev/type: ref-objects
  name: harbor-helm-tests
  namespace: canary-1
  resourceVersion: "137748379"
  uid: 79129162-4608-4d42-89f2-c58021d2f67f
type: Opaque
  1. I create an application using project above ,It fail.
    5-1
    5-2
    5-3

  2. I check it again by the same steps using the project Default(default),It works.
    6

So I think the cause of the problem is my-definded project.
7. Even if you use the Default Project to create the target and environments, if you only distribute [harbor-repository-config] to the target and not to the Default/local target, you cannot create an application.The same error happened again.I don't understand why the secret distributed can't been used.

Expected behavior
It can load helm chart normally on the page of velaux .

KubeVela Version

[root@xy-5-server14 velaux]# kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.10", GitCommit:"5c1d2d4295f9b4eb12bfbf6429fdf989f2ca8a02", GitTreeState:"clean", BuildDate:"2023-01-18T19:15:31Z", GoVersion:"go1.19.5", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.10", GitCommit:"5c1d2d4295f9b4eb12bfbf6429fdf989f2ca8a02", GitTreeState:"clean", BuildDate:"2023-01-18T19:08:10Z", GoVersion:"go1.19.5", Compiler:"gc", Platform:"linux/amd64"}
[root@xy-5-server14 velaux]# vela version'
> 
> ^C
[root@xy-5-server14 velaux]# vela version
CLI Version: 1.8.2
Core Version: 1.8.2
GitRevision: git-360f69be
GolangVersion: go1.19.9
@cyxinda cyxinda added the kind/bug Something isn't working label Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant