Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase Rancher Desktop fork of Steve #7

Draft
wants to merge 214 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
115eb31
Adding logic to limit number of cached schemas
MbolotSuse Aug 26, 2022
b449b93
Adding tests
MbolotSuse Aug 26, 2022
06584d2
Merge pull request #55 from MbolotSuse/access-mem-fix
MbolotSuse Sep 28, 2022
2eb41a9
Only return changed counts, and send initial count
MbolotSuse Oct 3, 2022
5cb45b9
Adding test for sending counts on diffs
MbolotSuse Oct 3, 2022
7312fe9
Bump go to version 1.19
MbolotSuse Oct 14, 2022
7e4a51b
Adding build/test phase for CI
MbolotSuse Oct 14, 2022
b73cc57
Adding validate phase to the CI
MbolotSuse Oct 14, 2022
44e5b8d
Merge pull request #59 from MbolotSuse/ver-upd-pipeline
MbolotSuse Oct 27, 2022
95da447
cleanup: remove duplicate apiserver import
cmurphy Oct 10, 2022
18afa88
cleanup: Remove unused function
cmurphy Oct 10, 2022
70ea282
cleanup: Fix API root header
cmurphy Oct 10, 2022
475f311
cleanup: Remove unused switchstore store
cmurphy Oct 10, 2022
ea61c21
cleanup: Remove unused namespace constraint
cmurphy Oct 11, 2022
72ab913
Updates Schemas watch logic.
KevinJoiner Oct 20, 2022
1f2f28e
Add go generate to CI
KevinJoiner Oct 28, 2022
b16d502
docs: Add docs for partition and proxy store
cmurphy Oct 14, 2022
a10fe81
Merge pull request #60 from cmurphy/cleanup
cmurphy Oct 31, 2022
e048005
Merge pull request #61 from KevinJoiner/schema-wather
KevinJoiner Dec 2, 2022
3df95d2
bump k8s and rancher modules to support 1.25
jiaqiluo Nov 28, 2022
5595803
Merge pull request #66 from jiaqiluo/support-125
jiaqiluo Dec 5, 2022
b70a8d0
Fixing view link for management crds
MbolotSuse Dec 6, 2022
fe51b08
Tests for "Fixing view link for management crds"
MbolotSuse Dec 6, 2022
37ee7bf
Merge pull request #67 from MbolotSuse/view-fix
MbolotSuse Dec 9, 2022
23fdd03
Add tests for RBAC partitioner
cmurphy Dec 13, 2022
c8fb653
Bump dynamic listener to v0.3.5
MbolotSuse Nov 11, 2022
9757b4e
Merge pull request #65 from MbolotSuse/dyn-listener-bump
MbolotSuse Dec 13, 2022
8fdf67a
Merge pull request #58 from MbolotSuse/count-diff
MbolotSuse Dec 14, 2022
1d4a130
Add unit tests for partition listing
cmurphy Oct 28, 2022
60d234d
Refactor proxy store
cmurphy Oct 21, 2022
f8eaa11
Add filtering to partition store
cmurphy Oct 24, 2022
adecbd9
Add sorting to partition store
cmurphy Oct 27, 2022
48efe7f
Merge pull request #68 from cmurphy/rbac_partition_testing
cmurphy Dec 16, 2022
9f1a27d
Add pagination to partition store
cmurphy Nov 1, 2022
b0eb50f
Add caching to pagination
cmurphy Nov 3, 2022
52e189b
Add pagination tests for partition listing
cmurphy Nov 4, 2022
b151f25
Add secondary sort parameter
cmurphy Nov 14, 2022
1a360d7
Add README
cmurphy Nov 22, 2022
7c0228e
Use limit=-1 to disable default list limit
cmurphy Dec 7, 2022
fa7fb37
Retrieve exact revision regardless of cache state
cmurphy Dec 8, 2022
7565dba
Merge pull request #63 from cmurphy/pagination-sorting-filtering
cmurphy Dec 20, 2022
956b735
Initial implmentation of warning headers
MbolotSuse Dec 16, 2022
ca73754
Merge pull request #69 from crobby/warningheaders
crobby Dec 30, 2022
65ca114
Expose WarningBuffer type for external use
crobby Jan 2, 2023
f4338dd
Merge pull request #70 from crobby/exposewarning
crobby Jan 3, 2023
59a2c55
Fixes a bug with resource.error watch events
MbolotSuse Jan 11, 2023
1d517bb
Merge pull request #72 from MbolotSuse/resource-error-fix
MbolotSuse Jan 12, 2023
73d3892
Bump apiserver
cmurphy Jan 20, 2023
9a386b2
Fix resource counts unit tests
cmurphy Jan 20, 2023
53fbb87
Merge pull request #73 from cmurphy/bump-apiserver
cmurphy Jan 20, 2023
23ae2d3
Revert client change
rmweir Feb 13, 2023
68cd604
Merge pull request #74 from rmweir/revert-clients
rmweir Feb 14, 2023
9260c5d
Update wrangler to v1.1.0
rmweir Feb 21, 2023
3d3cc77
Merge pull request #77 from rmweir/update-wrangler
rmweir Feb 22, 2023
44a6096
LRU cache: fix concurrent map write
moio Mar 15, 2023
2e4ee87
Add support for OR filters
cmurphy Feb 16, 2023
61a3990
Add support for NOT filters
cmurphy Mar 7, 2023
e6a8019
Merge pull request #76 from cmurphy/or-filter
cmurphy Mar 30, 2023
13ac720
Add initial Renovate configuration
renovate-rancher[bot] Apr 18, 2023
4b2b533
Merge pull request #82 from rancher/deploy-renovate-2023-04-18-11-24-39
macedogm Apr 22, 2023
fbb7f87
Update module github.com/rancher/kubernetes-provider-detector to v0.1.5
renovate-rancher[bot] Apr 24, 2023
2299820
Update module github.com/gorilla/websocket to v1.5.0
renovate-rancher[bot] Apr 25, 2023
39a13cb
Update module github.com/rancher/remotedialer to v0.3.0
renovate-rancher[bot] Apr 26, 2023
0d46bf0
Update module github.com/rancher/saml to v0.2.0
renovate-rancher[bot] Apr 26, 2023
3db0918
Change cache default to false
rmweir May 10, 2023
0cabe8d
Update tests
rmweir May 10, 2023
84dedac
Add projectsornamespaces query parameter
cmurphy May 10, 2023
3279919
Merge pull request #106 from rmweir/disable-cache
rmweir May 11, 2023
1dfd3c7
Merge pull request #105 from cmurphy/projects-filtering
cmurphy May 12, 2023
27aa1b4
Fix drone validate build
moio Jun 7, 2023
3cbeea2
Merge pull request #109 from moio/fix_drone_go1.19
MbolotSuse Jun 7, 2023
7010a5e
proxy_store: improve error handling
moio Jun 6, 2023
4fd6f7e
Merge pull request #110 from moio/proxy_store_improve_error_handling
rmweir Jun 9, 2023
c53bd62
Add tests
rmweir Jun 9, 2023
bf2e965
Merge pull request #111 from rmweir/41225-tests
rmweir Jun 9, 2023
7a7d5ad
chore(deps): update module github.com/urfave/cli to v1.22.14
renovate-rancher[bot] Jun 13, 2023
8128019
Merge pull request #80 from moio/fix_lru_concurrent_map_write
cmurphy Jun 23, 2023
adaa391
Drop unrecognized fields before update
cmurphy Jun 16, 2023
d040cff
Merge pull request #112 from cmurphy/unformatter-store
cmurphy Jul 17, 2023
70eaf26
chore(deps): update registry.suse.com/bci/bci-base docker tag to v15.5
renovate-rancher[bot] Jul 20, 2023
64c8a50
chore(deps): update registry.suse.com/bci/bci-micro docker tag to v15…
renovate-rancher[bot] Jul 21, 2023
700cd88
build: Bump dependencies
pjbgf Jul 25, 2023
d92f0d0
Merge pull request #115 from pjbgf/bump-deps
JonCrowther Aug 10, 2023
781717c
Merge pull request #114 from rancher/renovate/registry.suse.com-bci-b…
JonCrowther Aug 10, 2023
04901b4
Merge pull request #98 from rancher/renovate/github.com-rancher-saml-0.x
JonCrowther Aug 10, 2023
e771a09
Merge pull request #97 from rancher/renovate/github.com-rancher-remot…
JonCrowther Aug 10, 2023
5bcbfe5
Merge pull request #95 from rancher/renovate/github.com-gorilla-webso…
JonCrowther Aug 10, 2023
fa9e139
Merge pull request #93 from rancher/renovate/registry.suse.com-bci-bc…
JonCrowther Aug 10, 2023
8744eaa
Merge pull request #92 from rancher/renovate/github.com-urfave-cli-1.x
JonCrowther Aug 10, 2023
548632c
Merge pull request #89 from rancher/renovate/github.com-rancher-kuber…
JonCrowther Aug 10, 2023
fd96884
chore(deps): update github.com/rancher/norman digest to ccd31a4
renovate-rancher[bot] Aug 10, 2023
fbcee62
chore(deps): update github.com/rancher/pkg digest to b04c094
renovate-rancher[bot] Aug 10, 2023
5f8dca1
chore(deps): update module github.com/pborman/uuid to v1.2.1
renovate-rancher[bot] Aug 10, 2023
45c68fa
chore(deps): update module github.com/rancher/wrangler to v1.1.1
renovate-rancher[bot] Aug 10, 2023
33dc24b
chore(deps): update module github.com/adrg/xdg to v0.4.0
renovate-rancher[bot] Aug 10, 2023
7f07429
chore(deps): update module github.com/prometheus/client_golang to v1.…
renovate-rancher[bot] Aug 10, 2023
cabea84
chore(deps): update module github.com/urfave/cli/v2 to v2.25.7
renovate-rancher[bot] Aug 10, 2023
899abbc
Merge pull request #88 from rancher/renovate/github.com-pborman-uuid-1.x
JonCrowther Aug 10, 2023
ba5c979
Merge pull request #90 from rancher/renovate/github.com-rancher-wrang…
JonCrowther Aug 10, 2023
4c82d37
Merge pull request #86 from rancher/renovate/github.com-rancher-pkg-d…
JonCrowther Aug 10, 2023
da7ecef
Merge pull request #96 from rancher/renovate/github.com-prometheus-cl…
JonCrowther Aug 10, 2023
dfc0b92
Merge pull request #85 from rancher/renovate/github.com-rancher-norma…
JonCrowther Aug 10, 2023
97194fb
Merge pull request #100 from rancher/renovate/github.com-urfave-cli-v…
JonCrowther Aug 10, 2023
d3bd2ae
chore(deps): update github.com/rancher/apiserver digest to de731cd
renovate-rancher[bot] Aug 10, 2023
7c49f34
chore(deps): update module github.com/sirupsen/logrus to v1.9.3
renovate-rancher[bot] Aug 10, 2023
6e3926e
Merge pull request #84 from rancher/renovate/github.com-rancher-apise…
JonCrowther Aug 10, 2023
99cf256
chore(deps): update module k8s.io/klog to v2
renovate-rancher[bot] Jul 18, 2023
4118785
Merge pull request #104 from rancher/renovate/k8s.io-klog-2.x
cmurphy Aug 10, 2023
96e2a84
Merge pull request #94 from rancher/renovate/github.com-adrg-xdg-0.x
cmurphy Aug 10, 2023
8084679
Merge pull request #99 from rancher/renovate/github.com-sirupsen-logr…
cmurphy Aug 10, 2023
8517a24
chore(deps): update github.com/rancher/apiserver digest to d134152
renovate-rancher[bot] Aug 11, 2023
12fe048
Merge pull request #118 from rancher/renovate/github.com-rancher-apis…
JonCrowther Aug 11, 2023
dfb3192
chore(deps): update github.com/rancher/norman digest to 078862e
renovate-rancher[bot] Aug 11, 2023
e885e4a
Merge pull request #119 from rancher/renovate/github.com-rancher-norm…
cmurphy Aug 11, 2023
ebc8b72
updated deps for k8s 1.27
vardhaman22 Aug 10, 2023
c8b08e8
skip linting rules
vardhaman22 Aug 22, 2023
5df31b9
Merge pull request #117 from vardhaman22/k8s-1.27
kinarashah Sep 1, 2023
420ada5
Run container as a non-root user
maxsokolovsky Sep 12, 2023
5b63091
Use a less specific base bci-micro:15.5 to get the latest version
maxsokolovsky Sep 13, 2023
7e38c1d
Merge pull request #125 from maxsokolovsky/run-as-non-root-in-dockerfile
maxsokolovsky Sep 13, 2023
6b8eceb
Add developer docs to README
cmurphy Nov 11, 2022
826ba42
Merge pull request #64 from cmurphy/docs
cmurphy Sep 20, 2023
52e7ebf
Fix partition unit test
cmurphy Sep 20, 2023
feab37c
Add section on pagination design to README
cmurphy Sep 20, 2023
1826066
Fix typo in README
cmurphy Sep 27, 2023
7ecbec3
Add information about API parameters to README
cmurphy Sep 27, 2023
811e0b3
Merge pull request #128 from cmurphy/pagination-docs
cmurphy Sep 29, 2023
0b23400
Updating ByNames to not return nil, nil
MbolotSuse Oct 13, 2023
9935404
Merge pull request #132 from MbolotSuse/panic-fix
MbolotSuse Oct 16, 2023
1585ed3
WatchNames: return errors via WebSocket
moio Dec 22, 2023
d138622
adapt tests
moio Dec 22, 2023
e35a044
Bumps rancher/wrangler to it's tagged v2 version.
KevinJoiner Jan 11, 2024
17bd14c
Merge pull request #142 from KevinJoiner/wrangler-v2
KevinJoiner Jan 24, 2024
be7dccb
[2.9] Fixes (#154)
pmatseykanets Feb 7, 2024
a7ba1cd
Bump dependencies to support k8s 1.28 | January Patch
chiukapoor Feb 8, 2024
605e74c
Reducing number of generated schemas
MbolotSuse Oct 23, 2023
3f65942
Tests for Reducing number of generated schemas
MbolotSuse Dec 2, 2022
40f6b10
Adding schema definitions endpoint
MbolotSuse Nov 27, 2023
099ebc5
Adding tests for schemaDefinitions
MbolotSuse Dec 1, 2023
cecc8da
Merge pull request #140 from chiukapoor/rancher-v1.28
chiukapoor Feb 27, 2024
641178e
Merge pull request #139 from MbolotSuse/resource-schema
MbolotSuse Feb 28, 2024
7913f27
Merge pull request #141 from moio/watchnames_propagate_errors
MbolotSuse Mar 1, 2024
0e74495
DeepCopy the count before sending it as APIEvent
JonCrowther Mar 1, 2024
cec59c5
Implement custom DeepCopy for Count
JonCrowther Mar 1, 2024
2f8e648
Improving Schema Definitions cache/refresh
MbolotSuse Jan 19, 2024
0f32ff2
Adding tests for improved schema cache
MbolotSuse Jan 23, 2024
b761846
Fixing bug with preferred versions
MbolotSuse Feb 28, 2024
abbe805
Change which object needs DeepCopy
JonCrowther Mar 13, 2024
ca29f47
Merge pull request #162 from JonCrowther/count-race-condition
JonCrowther Mar 14, 2024
870824d
Merge pull request #161 from MbolotSuse/resource-schema-improved-cache
MbolotSuse Mar 14, 2024
f9c53d7
Add codeowners file
JonCrowther Mar 19, 2024
a1ef5a9
Merge pull request #173 from JonCrowther/add-codeowners
JonCrowther Mar 19, 2024
09ea8b0
Update module github.com/rancher/wrangler/v2 to v2.1.4
renovate-rancher[bot] Mar 8, 2024
3a6db0f
Update module github.com/stretchr/testify to v1.9.0
renovate-rancher[bot] Mar 2, 2024
3c1e7f2
Update module github.com/urfave/cli to v2
renovate-rancher[bot] Feb 27, 2024
216e53e
chore(deps): update registry.suse.com/bci/golang docker tag to v1.22
renovate-rancher[bot] Feb 18, 2024
51e85d9
Bumping go version to 1.22
MbolotSuse Mar 22, 2024
f5c3c4d
Update module github.com/gorilla/websocket to v1.5.1
renovate-rancher[bot] Feb 29, 2024
c9d4da9
Update module github.com/gorilla/mux to v1.8.1
renovate-rancher[bot] Feb 29, 2024
cc5d093
Update module golang.org/x/sync to v0.6.0
renovate-rancher[bot] Feb 29, 2024
e3137d6
Update module github.com/prometheus/client_golang to v1.19.0
renovate-rancher[bot] Feb 29, 2024
b77040f
Update k8s.io/kube-openapi digest to 70dd376
renovate-rancher[bot] Feb 29, 2024
c52c626
Fixing validate script
MbolotSuse Mar 22, 2024
863d917
Merge pull request #175 from MbolotSuse/renovate-bumps-march
MbolotSuse Mar 22, 2024
9b00eb3
Various dependency bumps (#179)
tomleb Mar 26, 2024
46e3638
changing permission for kubeconfig file inside the shell pod (#166)
diogoasouza Apr 3, 2024
0e9fde7
Attempting to fix flaky tests
MbolotSuse Apr 3, 2024
bcba9d5
Merge pull request #180 from MbolotSuse/flaky-test
MbolotSuse Apr 4, 2024
ee5c83b
chore(deps): update rancher 2.9 packages (#193)
renovate-rancher[bot] Apr 12, 2024
f042b7d
chore(deps): update k8s.io/kube-openapi digest to dc4e619 (#177)
renovate-rancher[bot] Apr 12, 2024
dc4a394
chore(deps): update module github.com/rancher/dynamiclistener to v0.5…
renovate-rancher[bot] Apr 12, 2024
d42a5bc
Skip key generation if cache disabled (#170)
rmweir Apr 19, 2024
b3bd0b8
Bump various dependencies to downgrade prometheus to v1.16.0 (#196)
tomleb Apr 19, 2024
18ff2eb
Fix the sample formatter code.
ericpromislow Apr 22, 2024
43fc03f
Merge pull request #200 from ericpromislow/fix-steve-readme-Collectio…
ericpromislow Apr 24, 2024
0066726
Bump k8s dependencies from version 0.28.6 to 0.29.3
ericpromislow May 2, 2024
0302419
bump versions for k8s 1.29.3
krunalhinguu May 4, 2024
2c4b19e
Merge pull request #206 from ericpromislow/45350-support-k8s-1.29
ericpromislow May 8, 2024
7a9a1c0
Revert "Bump k8s dependencies from version 0.28.6 to 0.29.3"
ericpromislow May 8, 2024
a9bf8c7
Merge pull request #207 from krunalhinguu/rancher-1.29
kinarashah May 10, 2024
c6b887c
Fixing schema definitions bugs
MbolotSuse Apr 26, 2024
ce206c9
Merge pull request #202 from MbolotSuse/schema-fix-1
MbolotSuse May 15, 2024
4bd1e2e
First stab at a GHA for build/test
nflynt May 24, 2024
9137045
Take a stab at getting golangci-lint working
nflynt May 24, 2024
f3d2a72
Remove drone integration
nflynt May 24, 2024
3e6d254
Pin golangci by commit ID rather than version tag
nflynt May 28, 2024
4cf4e6b
Merge pull request #218 from nflynt/drone2gha
nflynt May 28, 2024
7a84620
SQLite backed cache (#223)
moio Jun 5, 2024
dae842e
updated wrangler from v2 to v3
vardhaman22 Jun 4, 2024
c9babc6
updated apiserver and dynamiclistener
vardhaman22 Jun 5, 2024
8f3d2e8
go generate and go mod tidy
vardhaman22 Jun 5, 2024
4f4dae4
updated golangci lint version to v1.59.0
vardhaman22 Jun 5, 2024
d0f58fc
Merge pull request #224 from vardhaman22/k8s-1.30
vardhaman22 Jun 11, 2024
9ac9be9
Fix missing fields in schema definition endpoint (#215)
tomleb Jun 17, 2024
e7a76d1
Adding APIGroups back to the schema
MbolotSuse Jul 2, 2024
22a06dd
Merge pull request #230 from MbolotSuse/apigroups-fix
MbolotSuse Jul 3, 2024
cb311a8
sql: remove spurious log line
moio Jul 4, 2024
88fd70a
sql: drop dead code
moio Jul 5, 2024
0841e03
sql: bugfix: return total resource count correctly (#236)
moio Jul 5, 2024
4787160
Bump wrangler to v3.0.0 (#239)
tomleb Jul 9, 2024
90ee97d
Add a cli flag for offline
rak-phillip Feb 22, 2022
052e31a
Assign the offline flag if it contains true/false/dynamic
rak-phillip Feb 22, 2022
cf0fa4d
Create a custom handler for serving dashbaord as a SPA
rak-phillip Feb 22, 2022
ec1ba5b
Make use of custom handler and api routes
rak-phillip Feb 22, 2022
2162167
Add github action for steve builds
rak-phillip Feb 22, 2022
4456646
Add build script
rak-phillip Feb 22, 2022
4540c5b
Remove /bin from .gitignore
rak-phillip Feb 22, 2022
5ffb9bd
Remove reference to src/steve as this isn't a dir anymore in fork
rak-phillip Feb 22, 2022
53fe69f
Only join the base path with staticPath
rak-phillip Mar 9, 2022
0def6c8
Just use r.URL.Path for better crossplatform support
rak-phillip Mar 9, 2022
2edebb9
Bind host to 127.0.0.1
rak-phillip Mar 23, 2022
bf3f556
Handle subscribe socket directly for local and not send 302
ibuildthecloud Apr 4, 2022
88d7cea
Merge branch 'master' into chore/steve-rebase
rak-phillip Jul 16, 2024
9321a37
Resolve lint error `ineffectual assignment to path (ineffassign)`
rak-phillip Jul 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .drone.yml

This file was deleted.

9 changes: 9 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": [
"github>rancher/renovate-config#release"
],
"baseBranches": [
"master"
],
"prHourlyLimit": 2
}
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on:
pull_request: {}
push:
branches:
- master
- release/*

jobs:
ci:
runs-on: ubuntu-latest
steps:
- name : Checkout repository
# https://github.com/actions/checkout/releases/tag/v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install Go
# https://github.com/actions/setup-go/releases/tag/v5.0.0
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: 'go.mod'
- name: Install mockgen
run: go install github.com/golang/mock/[email protected]
- name: Install golangci-lint
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1
with:
version: v1.59.0
- name: Build
run: make build-bin
- name: Test
run: make test
- name: Validate
run: make validate
25 changes: 25 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Renovate
on:
workflow_dispatch:
inputs:
logLevel:
description: "Override default log level"
required: false
default: "info"
type: string
overrideSchedule:
description: "Override all schedules"
required: false
default: "false"
type: string
# Run twice in the early morning (UTC) for initial and follow up steps (create pull request and merge)
schedule:
- cron: '30 4,6 * * *'

jobs:
call-workflow:
uses: rancher/renovate-config/.github/workflows/renovate.yml@release
with:
logLevel: ${{ inputs.logLevel || 'info' }}
overrideSchedule: ${{ github.event.inputs.overrideSchedule == 'true' && '{''schedule'':null}' || '' }}
secrets: inherit
87 changes: 87 additions & 0 deletions .golangci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"linters": {
"disable-all": true,
"enable": [
"govet",
"revive",
"goimports",
"misspell",
"ineffassign",
"gofmt"
]
},
"linters-settings": {
"govet": {
"check-shadowing": false
},
"gofmt": {
"simplify": false
}
},
"run": {
"skip-dirs": [
"vendor",
"tests",
"pkg/client",
"pkg/generated"
],
"tests": false,
"timeout": "10m"
},
"issues": {
"exclude-rules": [
{
"linters": "govet",
"text": "^(nilness|structtag)"
},
{
"path":"pkg/apis/management.cattle.io/v3/globaldns_types.go",
"text":".*lobalDns.*"
},
{
"path": "pkg/apis/management.cattle.io/v3/zz_generated_register.go",
"text":".*lobalDns.*"
},
{
"path":"pkg/apis/management.cattle.io/v3/zz_generated_list_types.go",
"text":".*lobalDns.*"
},
{
"linters": "revive",
"text": "should have comment"
},
{
"linters": "revive",
"text": "should be of the form"
},
{
"linters": "revive",
"text": "by other packages, and that stutters"
},
{
"linters": "typecheck",
"text": "imported but not used as apierrors"
},
{
"linters": "revive",
"text": "unused-parameter"
},
{
"linters": "revive",
"text": "redefines-builtin-id"
},
{
"linters": "revive",
"text": "superfluous-else"
},
{
"linters": "revive",
"text": "empty-block"
},
{
"linters": "revive",
"text": "if-return: redundant if"
}
]
}
}
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @rancher/rancher-squad-frameworks
14 changes: 11 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
# syntax = docker/dockerfile:experimental
FROM golang:1.13.4 as build
FROM registry.suse.com/bci/golang:1.22 as build
COPY go.mod go.sum main.go /src/
COPY pkg /src/pkg/
#RUN --mount=type=cache,target=/root/.cache/go-build \
RUN \
cd /src && \
CGO_ENABLED=0 go build -ldflags "-extldflags -static -s" -o /steve

FROM alpine
RUN apk -U --no-cache add ca-certificates
FROM registry.suse.com/bci/bci-micro:15.5

ARG user=steve

RUN echo "$user:x:1000:1000::/home/$user:/bin/bash" >> /etc/passwd && \
echo "$user:x:1000:" >> /etc/group && \
mkdir /home/$user && \
chown -R $user:$user /home/$user

COPY --from=build /steve /usr/bin/steve
# Hack to make golang do files,dns search order
ENV LOCALDOMAIN=""
USER $user
ENTRYPOINT ["/usr/bin/steve"]
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
build:
docker build -t steve .

build-bin:
bash scripts/build-bin.sh

run: build
docker run $(DOCKER_ARGS) --rm -p 8989:9080 -it -v ${HOME}/.kube:/root/.kube steve --https-listen-port 0

run-host: build
docker run $(DOCKER_ARGS) --net=host --uts=host --rm -it -v ${HOME}/.kube:/root/.kube steve --kubeconfig /root/.kube/config --http-listen-port 8989 --https-listen-port 0

test:
bash scripts/test.sh

validate:
bash scripts/validate.sh
Loading