Skip to content

Commit a0f2522

Browse files
committed
release: cut v2.0.0 release
1 parent ba56aa5 commit a0f2522

File tree

224 files changed

+13156
-9448
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

224 files changed

+13156
-9448
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Dockerfile*
2+
Jenkinsfile*
3+
**/.terraform
4+
.git/
5+
6+
.idea/
7+
*.iml
8+
.gcloudignore

.editorconfig

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,19 @@ insert_final_newline = true
88
max_line_length = 120
99
trim_trailing_whitespace = true
1010

11-
[Makefile]
11+
[*.py]
12+
indent_size = 4
13+
14+
[{Makefile,makefile,**.mk}]
1215
indent_style = tab
16+
17+
[*.sh]
18+
indent_style = space
19+
indent_size = 2
20+
21+
shell_variant = bash # like -ln=posix
22+
binary_next_line = true # like -bn
23+
switch_case_indent = true # like -ci
24+
space_redirects = true # like -sr
25+
keep_padding = false # like -kp
26+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behaviour:
14+
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behaviour**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Additional context**
27+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is.
11+
For example: I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Question
3+
about: Post a question about the project
4+
title: ''
5+
labels: question
6+
assignees: ''
7+
---
8+
9+
**Your question**
10+
A clear and concise question.
11+
12+
**Additional context**
13+
Add any other context about your question here.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Pull Request
3+
about: A pull request
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
[pull_requests]: https://github.com/controlplaneio/kubesec/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc
10+
11+
<!-- You can erase any parts of this template not applicable to your Pull Request. -->
12+
13+
**All Submissions.**
14+
15+
- [ ] Have you followed the guidelines in our [Contributing document](../../CONTRIBUTING.md)?
16+
- [ ] Have you checked to ensure there aren't other open [Pull Requests][pull_requests] for the same update/change?
17+
18+
**Code Submissions.**
19+
20+
- [ ] Does your submission pass linting, tests, and security analysis?
21+
22+
**Changes to Core Features.**
23+
24+
- [ ] Have you added an explanation of what your changes do and why you'd like us to include them?
25+
- [ ] Have you written new tests for your core changes, as applicable?

.github/workflows/build.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Lint and Build
2+
on:
3+
push:
4+
## do not lint and build when tagged, we already do that in push to master
5+
tags-ignore:
6+
- '*'
7+
8+
branches:
9+
- '*'
10+
pull_request:
11+
branches: ['main', 'master']
12+
13+
jobs:
14+
lint:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
20+
- name: Run golangci-lint
21+
uses: reviewdog/action-golangci-lint@v2
22+
with:
23+
go_version: "1.20"
24+
build:
25+
runs-on: ubuntu-latest
26+
needs: lint
27+
steps:
28+
- name: Checkout source code
29+
uses: actions/checkout@v3
30+
31+
- name: Setup Go
32+
uses: actions/setup-go@v3
33+
with:
34+
go-version: '1.20.x'
35+
36+
- name: Install dependencies
37+
run: go get ./...
38+
39+
- name: Test
40+
run: go test -v ./... --race
41+
42+
- name: Build
43+
run: go build -v ./...

.github/workflows/release.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: goreleaser
2+
3+
on:
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
goreleaser:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
- name: Set up Go
18+
uses: actions/setup-go@v3
19+
with:
20+
go-version: '1.20.x'
21+
- uses: anchore/sbom-action/[email protected]
22+
- name: Run GoReleaser
23+
uses: goreleaser/goreleaser-action@v4
24+
with:
25+
distribution: goreleaser
26+
args: release --clean
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 109 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Secrets #
2+
###########
3+
*.pem
4+
*.key
5+
*_rsa
6+
17
# Compiled source #
28
###################
39
*.com
@@ -6,6 +12,7 @@
612
*.exe
713
*.o
814
*.so
15+
*.pyc
916

1017
# Packages #
1118
############
@@ -23,8 +30,8 @@
2330
# Logs and databases #
2431
######################
2532
*.log
26-
*.sql
2733
*.sqlite
34+
pip-log.txt
2835

2936
# OS generated files #
3037
######################
@@ -33,34 +40,114 @@ ehthumbs.db
3340
Icon?
3441
Thumbs.db
3542

36-
# SSH #
37-
#######################
38-
.ssh/*.pem
39-
.ssh/*.pub
40-
4143
# IDE generated files #
4244
#######################
4345
.idea/
46+
*.iml
47+
atlassian-ide-plugin.xml
48+
49+
# Test Files #
50+
##############
51+
test/log
52+
.coverage
53+
.tox
54+
nosetests.xml
55+
56+
# Package Managed Files #
57+
#########################
58+
bower_components/
59+
vendor/
60+
composer.lock
61+
node_modules/
62+
.npm/
63+
venv/
64+
.venv/
65+
.venv2/
66+
.venv3/
67+
68+
# temporary files #
69+
###################
70+
*.*swp
71+
nohup.out
72+
*.tmp
73+
74+
# Virtual machines #
75+
####################
76+
.vagrant/
77+
78+
# Pythonics #
79+
#############
80+
*.py[cod]
81+
82+
# Packages
83+
*.egg
84+
*.egg-info
85+
dist
86+
build
87+
eggs
88+
parts
89+
var
90+
sdist
91+
develop-eggs
92+
.installed.cfg
93+
lib
94+
lib64
95+
96+
# Translations
97+
*.mo
98+
99+
# Mr Developer
100+
.mr.developer.cfg
101+
.project
102+
.pydevproject
103+
104+
# Complexity
105+
output/*.html
106+
output/*/index.html
107+
108+
# Sphinx
109+
docs/_build
110+
.scratch.md
44111

45-
conf/.ssh/
46-
conf/.vim/bundle/
47-
google-cloud-sdk
48-
conf/.tmux/plugins/*
49-
!conf/.tmux/plugins/tpm/
50-
conf/.tmux/resurrect/
112+
conf/.config/keybase/
51113

52-
conf/.tunnelbear/pass
53-
conf/.ivpn/pass
114+
# Pipenv
54115

55-
conf/.config/fish/fish_history
56-
conf/.config/fish/fishd.ac*
116+
Pipfile*
117+
# backup files
118+
*.backup
119+
*.notworking
57120

58-
conf/.docker/config.json
121+
internal/types-not-used/
122+
demo.yaml
123+
.idea
124+
cmd/netassert/cli/netassert
125+
cmd/netassert/cli/results.tap
126+
internal/logger/*.old
127+
cmd/netassert/cli/cli
59128

60-
includes/_SECRET
129+
# Terraform
130+
.terraform
131+
*.tfstate
132+
*.tfstate.*
133+
crash.log
134+
crash.*.log
135+
*.tfvars
136+
*.tfvars.json
137+
override.tf
138+
override.tf.json
139+
*_override.tf
140+
*_override.tf.json
141+
.terraformrc
142+
terraform.rc
143+
*.lock.hcl*
61144

62-
!bin/
63-
.passwd-s3fs
64-
*.orig
145+
# Kubeconfig
146+
*.kubeconfig
65147

66-
!lib/
148+
# CLI
149+
/cmd/netassert/cli/*.sh
150+
abc
151+
netassert-*-*-kubeconfig
152+
bin
153+
results.tap

.goreleaser.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
builds:
2+
- id: netassert
3+
env:
4+
- CGO_ENABLED=0
5+
ldflags:
6+
- -s
7+
- -w
8+
- -X main.version={{.Version}}
9+
- -X main.gitHash={{.FullCommit}}
10+
- -X main.buildDate={{.Date}}
11+
goos:
12+
- linux
13+
- windows
14+
- darwin
15+
goarch:
16+
- amd64
17+
main: ./cmd/netassert/cli/
18+
binary: netassert
19+
archives:
20+
- id: netassert
21+
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
22+
format: tar.gz
23+
files:
24+
- LICENSE
25+
wrap_in_directory: false
26+
checksum:
27+
algorithm: sha256
28+
name_template: 'checksums-sha256.txt'
29+
changelog:
30+
sort: asc
31+
sboms:
32+
- id: archive
33+
artifacts: archive
34+
- id: source
35+
artifacts: source

0 commit comments

Comments
 (0)