Skip to content

Commit

Permalink
Merge pull request #30 from vbelouso/issue-16-subscription-snippets
Browse files Browse the repository at this point in the history
feat: add helmrepo and object storage snippets
  • Loading branch information
TomerFi authored Apr 4, 2022
2 parents 9ed3f68 + 702aa4a commit 152fedb
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@
{
"language": "yaml",
"path": "./snippets/subscription_git.json"
},
{
"language": "yaml",
"path": "./snippets/subscription_objectbucket.json"
},
{
"language": "yaml",
"path": "./snippets/subscription_helmrepo.json"
}
]
},
Expand Down
27 changes: 27 additions & 0 deletions snippets/subscription_helmrepo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"subscription-helm-repo-v1": {
"scope": "yaml",
"prefix": "OCM Subscription HelmRepo v1",
"description": "A subscription for a helmrepo type channel.",
"body": [
"---",
"apiVersion: apps.open-cluster-management.io/v1",
"kind: Subscription",
"metadata:",
" name: ${1:<subscription-name>}",
" namespace: ${2:<subscription-namespace>}",
"spec:",
" channel: ${3:<channel-name>} # namespace/name",
" name: ${4:<chart-name>}",
" packageOverrides:",
" - packageName: ${5:<package-name>}",
" packageAlias: ${6:<package-alias>}",
" packageFilter:",
" version: ${7:\"<package-version>\"} # optional",
" placement:",
" placementRef:",
" kind: Placement",
" name: ${8:<placement-name>}"
]
}
}
23 changes: 23 additions & 0 deletions snippets/subscription_objectbucket.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"subscription-object-storage-v1": {
"scope": "yaml",
"prefix": "OCM Subscription ObjectBucket v1",
"description": "A subscription for an objectbucket type channel.",
"body": [
"---",
"apiVersion: apps.open-cluster-management.io/v1",
"kind: Subscription",
"metadata:",
" name: ${1:<subscription-name>}",
" namespace: ${2:<subscription-namespace>}",
" annotations:",
" apps.open-cluster-management.io/bucket-path: ${3:<bucket-path>} # optional",
"spec:",
" channel: ${4:<channel-name>} # namespace/name",
" placement:",
" placementRef:",
" kind: Placement",
" name: ${5:<placement-name>}"
]
}
}

0 comments on commit 152fedb

Please sign in to comment.