Skip to content

Commit

Permalink
Merge pull request #12 from van-vliet/fix-repo-annotation-inconsistency
Browse files Browse the repository at this point in the history
Align implementation with example from the comment above
  • Loading branch information
rocktavious authored Aug 14, 2023
2 parents ccb0bf9 + fab6310 commit 128dd6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/kubernetes-sync/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: kubernetes-sync
type: application
version: 0.5.8
version: 0.5.9
appVersion: "2022.10.19"
description: An agent for syncronizing Kubernetes data with OpsLevel
keywords:
Expand Down
2 changes: 1 addition & 1 deletion charts/kubernetes-sync/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ sync:
- '.metadata.annotations | to_entries | map(select(.key | startswith("opslevel.com/tools"))) | map({"category": .key | split(".")[2], "displayName": .key | split(".")[3], "url": .value})'
repositories: # attach repositories to the service using the opslevel repo alias - IE github.com:hashicorp/vault
# find annotations with format: opslevel.com/repo.<displayname>.<repo.subpath.dots.turned.to.forwardslash>: <opslevel repo alias>
- '.metadata.annotations | to_entries | map(select(.key | startswith("opslevel.com/repos"))) | map({"name": .key | split(".")[2], "directory": .key | split(".")[3:] | join("/"), "repo": .value})'
- '.metadata.annotations | to_entries | map(select(.key | startswith("opslevel.com/repo"))) | map({"name": .key | split(".")[2], "directory": .key | split(".")[3:] | join("/"), "repo": .value})'
serviceAccount:
create: true
Expand Down

0 comments on commit 128dd6b

Please sign in to comment.