Skip to content

Commit

Permalink
Update Creation Auditing
Browse files Browse the repository at this point in the history
To actually audit resource creation meaningfully, we need to get the
resource ID, and the only way to do that in a generic way is to return
the generated resource in all POST APIs.  While in the area, there was a
backlog item to clean up cluster generation as passing around a million
arguments sucked, so package these up as an object.
  • Loading branch information
spjmurray committed Jul 17, 2024
1 parent 9251fd6 commit 19508cd
Show file tree
Hide file tree
Showing 11 changed files with 264 additions and 178 deletions.
4 changes: 2 additions & 2 deletions charts/kubernetes/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: A Helm chart for deploying Unikorn Kubernetes Service

type: application

version: v0.2.28
appVersion: v0.2.28
version: v0.2.29
appVersion: v0.2.29

icon: https://raw.githubusercontent.com/unikorn-cloud/assets/main/images/logos/dark-on-light/icon.png

Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ require (
github.com/prometheus/client_golang v1.19.1
github.com/spdx/tools-golang v0.5.5
github.com/spf13/pflag v1.0.5
github.com/unikorn-cloud/core v0.1.59
github.com/unikorn-cloud/identity v0.2.25
github.com/unikorn-cloud/region v0.1.20
github.com/unikorn-cloud/core v0.1.62
github.com/unikorn-cloud/identity v0.2.28
github.com/unikorn-cloud/region v0.1.22
go.opentelemetry.io/otel v1.28.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.28.0
go.opentelemetry.io/otel/sdk v1.28.0
Expand Down
10 changes: 6 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,14 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65EE=
github.com/ugorji/go/codec v1.2.12/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg=
github.com/unikorn-cloud/core v0.1.59 h1:Fow+RmWADvIHcDGnKxeE+m7uJzq2ARJb1/nPA2tY6+o=
github.com/unikorn-cloud/core v0.1.59/go.mod h1:Cd0zU1LrKo+OwnnCwuTQ+QL3yibnkjDHtkujfDM4AdE=
github.com/unikorn-cloud/identity v0.2.25 h1:nb45gnI8o/12idVodWtAVO5WRFW8cTg6PFQHYjLd3DM=
github.com/unikorn-cloud/identity v0.2.25/go.mod h1:8WxgWetyrCvLjRGAeEWy5hWXDJ8prVz+FNt9sG17lV8=
github.com/unikorn-cloud/core v0.1.62 h1:EbXZxQxBIYjWC/LVLw8xAd46609u5GLc2DxnrZnLYxE=
github.com/unikorn-cloud/core v0.1.62/go.mod h1:Cd0zU1LrKo+OwnnCwuTQ+QL3yibnkjDHtkujfDM4AdE=
github.com/unikorn-cloud/identity v0.2.28 h1:tJqkcTurte0oEHUW6EUjcZ69x2z0KI8puHSBKHF6ECE=
github.com/unikorn-cloud/identity v0.2.28/go.mod h1:k3Dfr604vlP5ryJJsFc412vgaIuztCzxsuiQwa3ws1Q=
github.com/unikorn-cloud/region v0.1.20 h1:SblfR/TO7gnROiz2nbxY4YLMmHEbdigj2wpVYhQENIY=
github.com/unikorn-cloud/region v0.1.20/go.mod h1:D63xJbCu+yNrjhPUT3h7JBWoWta64qpG+z5tNnemVLU=
github.com/unikorn-cloud/region v0.1.22 h1:+4CgMNnHmzwX8RjBa+nxh69o/mj+y49RRfm3/zwThYE=
github.com/unikorn-cloud/region v0.1.22/go.mod h1:cPRxUJ8rjry5zJzyQnuOmYZLdgCqTRvKeQPzAxiI548=
github.com/xlab/treeprint v1.2.0 h1:HzHnuAF1plUN2zGlAFHbSQP2qJ0ZAD3XF5XD7OesXRQ=
github.com/xlab/treeprint v1.2.0/go.mod h1:gj5Gd3gPdKtR1ikdDK6fnFLdmIS0X30kTTuNd/WEJu0=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
Expand Down
16 changes: 16 additions & 0 deletions pkg/openapi/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 19508cd

Please sign in to comment.