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

Executing command jx gitops scheduler failed to update config_updater in plugin.yaml. #834

Open
shichanson opened this issue Mar 6, 2022 · 3 comments

Comments

@shichanson
Copy link

No description provided.

@shichanson
Copy link
Author

my in-repo.yaml

apiVersion: gitops.jenkins-x.io/v1alpha1
kind: Scheduler
metadata:
  name: in-repo
spec:
  approve:
    issue_required: false
    lgtm_acts_as_approve: true
    require_self_approval: true
  config_updater:
    config_file: lighthouse/config.yaml
    plugin_file: lighthouse/plugins.yaml
    map:
      lighthouse/scripts/*:
        name: ci-scripts
      lighthouse/config/kube-config/*:
        name: kube-config
        additional_namespaces:
          - kube-deploy
  merger:
    blocker_label: ""
    max_goroutines: 0
    merge_method: squash
    policy:
      from-branch-protection: true
      optional-contexts: { }
      required-contexts: { }
      required-if-present-contexts: { }
      skip-unknown-contexts: false
    pr_status_base_url: ""
    squash_label: ""
    target_url: http://lighthouse{{ .Requirements.ingress.namespaceSubDomain }}{{ .Requirements.ingress.domain }}/merge/status
  # lets look in the source repository for trigger files
  in_repo: true
  plugins:
    entries:
      - approve
      - assign
      - blunderbuss
      - help
      - hold
      - lgtm
      - lifecycle
      - override
      - size
      - trigger
      - wip
      - heart
      - cat
      - dog
      - pony
  external_plugins:
    Replace: true
    entries:
    - name: cd-indicators
      endpoint: "http://cd-indicators.jx.svc.cluster.local/lighthouse/events"
    - name: lighthouse-webui-plugin
      endpoint: "http://lighthouse-webui-plugin.jx.svc.cluster.local/lighthouse/events"
  queries:
    - excludedBranches: { }
      included_branches: { }
      labels:
        entries:
          - approved
      milestone: ""
      missingLabels:
        entries:
          - do-not-merge
          - do-not-merge/hold
          - do-not-merge/work-in-progress
          - needs-ok-to-test
          - needs-rebase
      review_approved_required: false
    - excludedBranches: { }
      included_branches: { }
      labels:
        entries:
          - updatebot
      milestone: ""
      missingLabels:
        entries:
          - do-not-merge
          - do-not-merge/hold
          - do-not-merge/work-in-progress
          - needs-ok-to-test
          - needs-rebase
      review_approved_required: false
  policy:
    protect_tested: true
  schedulerAgent:
    agent: tekton
  trigger:
    ignore_ok_to_test: false
    join_org_url: ""
    only_org_members: false
    trusted_org: todo
  welcome:
    - message_template: Welcome

@shichanson
Copy link
Author

shichanson commented Mar 6, 2022

apiVersion: v1
data:
  plugins.yaml: |
    approve:
    - lgtm_acts_as_approve: true
      repos:
      - devops/golang-jx3-demo
      require_self_approval: true
    cat: {}
    cherry_pick_unapproved: {}
    config_updater:
      gzip: false
      maps:
        env/prow/job.yaml:
          name: config
        env/prow/plugins.yaml:
          name: plugins
.........

No matter how I modify the config_updater field in in-repo.yaml, plugins.yaml still does not change anything. Don't know how should I solve this problem?
jx gitops version: 0.6.3

@msvticket
Copy link
Contributor

Exactly what file are you trying to update and exactly what do you expect to happen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants