Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

scmProvider Github filter combination (repositoryMatch + labelMatch) not generating apps #605

Closed
dllegru opened this issue Oct 4, 2022 · 1 comment

Comments

@dllegru
Copy link

dllegru commented Oct 4, 2022

We have a repository with a label created.

We are using scmProvider with filters repositoryMatch + labelMatch, 0 applications are being generated.

Reading the Filters documentation I understand this combination should be possible.

  • scmProvider used
    - scmProvider:
        github:
          # The GitHub organization to scan.
          organization: my-org
          # If true, scan every branch of every repository. If false, scan only the default branch. Defaults to false.
          allBranches: true
        filters:
          - repositoryMatch: platform-daniel-tests
            labelMatch: deploy

(setting allBranches to false doesn't make any difference)

  • curl to github showing the label exists
❯   curl \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer <auth>" \
  https://api.github.com/repos/my-org/platform-daniel-tests/labels
[
...
  {
    "id": xxxx,
    "node_id": "xxxx",
    "url": "https://api.github.com/repos/my-org/platform-daniel-tests/labels/deploy",
    "name": "deploy",
    "color": "B29356",
    "default": false,
    "description": ""
  },
...
]
  • applicationSet logs showing 0 applications generated
{"generator":{"scmProvider":{"github":{"organization":"my-org","tokenRef":{"secretName":"temp-dev-daniel-github-token","key":"token"},"allBranches":true},"filters":[{"repositoryMatch":"platform-daniel-tests","labelMatch":"deploy"}],"cloneProtocol":"https","template":{"metadata":{},"spec":{"source":{"repoURL":""},"destination":{},"project":""}}}},"level":"info","msg":"generated 0 applications","time":"2022-10-04T11:32:27Z"}
@dllegru
Copy link
Author

dllegru commented Oct 4, 2022

Closing for argoproj/argo-cd#10789

@dllegru dllegru closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant