Skip to content

Commit 78259a4

Browse files
committed
add releasers
Signed-off-by: kaizhe <[email protected]>
1 parent e12fe20 commit 78259a4

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.goreleaser.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
before:
2+
hooks:
3+
- go mod download
4+
builds:
5+
- id: kubectl-advise-psp
6+
main: ./
7+
binary: kubectl-advise-psp
8+
env:
9+
- CGO_ENABLED=0
10+
goos:
11+
- linux
12+
- darwin
13+
goarch:
14+
- amd64
15+
16+
archives:
17+
- builds:
18+
- kubectl-tree
19+
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
20+
wrap_in_directory: false
21+
format: tar.gz
22+
files:
23+
- LICENSE

.krew.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
apiVersion: krew.googlecontainertools.github.com/v1alpha2
2+
kind: Plugin
3+
metadata:
4+
name: advise-psp
5+
spec:
6+
version: {{ .TagName }}
7+
homepage: https://github.com/sysdiglabs/kube-psp-advisor
8+
platforms:
9+
- selector:
10+
matchLabels:
11+
os: darwin
12+
arch: amd64
13+
{{addURIAndSha "https://github.com/sysdiglabs/kube-psp-advisor/releases/download/{{ .TagName }}/kubectl-advise-psp_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }}
14+
sha256: 55f852fd02b62ddbe59e8f1c00550d305201765beef900111c4c0819c85b64df
15+
bin: kubectl-advise-psp
16+
- selector:
17+
matchLabels:
18+
os: linux
19+
arch: amd64
20+
{{addURIAndSha "https://github.com/sysdiglabs/kube-psp-advisor/releases/download/{{ .TagName }}/kubectl-advise-psp_{{ .TagName }}_linux_amd64.tar.gz" .TagName }}
21+
sha256: dd496e46bff10bf5ca8b01b2e9e7626354cdba0dcab0aa7ddf72b2b809f9ad72
22+
bin: kubectl-advise-psp
23+
shortDescription: Suggests PodSecurityPolicies for cluster.
24+
description: |
25+
Suggests PSPs based on the required capabilities of the currently running
26+
workloads or a given manifest.

0 commit comments

Comments
 (0)