ks-devops icon indicating copy to clipboard operation
ks-devops copied to clipboard

Support to set Helm parameters of an Application

Open LinuxSuRen opened this issue 3 years ago • 4 comments

LinuxSuRen avatar Jun 28 '22 05:06 LinuxSuRen

/area console /kind feature

LinuxSuRen avatar Jun 28 '22 05:06 LinuxSuRen

@chenz24: GitHub didn't allow me to assign the following users: bunnymiao.

Note that only kubesphere members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. For more information please see the contributor guide

In response to this:

/assign @bunnymiao

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

ks-ci-bot avatar Jul 12 '22 02:07 ks-ci-bot

Basically, this issue requests to allow users to set the parameters like the following helm part.

spec:
  argoApp:
    spec:
      source:
        repoURL: 'https://github.com/devops-ws/learn-kustomization'
        path: helm-raw/nginx
        targetRevision: HEAD
        helm:
          valueFiles:
            - helm-raw/nginx/values.yaml # related to the git repository directory
          parameters:
            - name: image.tag
              value: latest
            - name: service.type
              value: NodePort
          releaseName: nginx
          ignoreMissingValueFiles: true
          skipCrds: true

By the way, we need to provide an option to choose which Configuration Tool that they want to use. The possible values are: kustomize, helm and none.

In this case, users need to choose helm before setting those parameters.

See the description of above fields from

https://github.com/kubesphere/ks-devops/blob/59547bbae728f21875e2229db15753a0d91af2a6/pkg/api/gitops/v1alpha1/application.go#L271

LinuxSuRen avatar Jul 13 '22 09:07 LinuxSuRen

/assign

EliChen95 avatar Jul 15 '22 02:07 EliChen95