Draft
Conversation
thokra-nav
commented
Mar 11, 2026
thokra-nav
commented
Mar 11, 2026
thokra-nav
commented
Mar 11, 2026
thokra-nav
commented
Mar 11, 2026
thokra-nav
commented
Mar 11, 2026
thokra-nav
commented
Mar 11, 2026
thokra-nav
commented
Mar 11, 2026
thokra-nav
commented
Mar 11, 2026
thokra-nav
commented
Mar 11, 2026
thokra-nav
commented
Mar 11, 2026
thokra-nav
commented
Mar 11, 2026
thokra-nav
commented
Mar 11, 2026
| } | ||
|
|
||
| func MakeRouter(ctx context.Context, pool *pgxpool.Pool, log logrus.FieldLogger, middlewares ...func(http.Handler) http.Handler) *chi.Mux { | ||
| func MakeRouter(ctx context.Context, cfg Config) *chi.Mux { |
Contributor
Author
There was a problem hiding this comment.
Det er kanskje unødvendig å kjøre 2 http servere som begge eksponerer paths på ingressen. Vurdere om vi kan samle både http serveren i denne pakka og den som allerede eksisterer i http.go (den som /graphql) i en senere PR
thokra-nav
commented
Mar 11, 2026
thokra-nav
commented
Mar 11, 2026
thokra-nav
commented
Mar 12, 2026
thokra-nav
commented
Mar 12, 2026
thokra-nav
commented
Mar 12, 2026
Comment on lines
+14
to
+28
| var ignoredTopLevelFields = map[string]bool{ | ||
| "status": true, | ||
| } | ||
|
|
||
| // ignoredMetadataFields are metadata fields managed by the API server. | ||
| var ignoredMetadataFields = map[string]bool{ | ||
| "resourceVersion": true, | ||
| "uid": true, | ||
| "generation": true, | ||
| "creationTimestamp": true, | ||
| "managedFields": true, | ||
| "selfLink": true, | ||
| "deletionTimestamp": true, | ||
| "deletionGracePeriodSeconds": true, | ||
| } |
Contributor
Author
There was a problem hiding this comment.
Vi bør kanskje ta en ekstra titt på dette. Vi kan kanskje også generelt ignorere endringer til .metadata?
Men av de ressursene som eksisterer i dag så er det noen som ikke har defaulting webhook, så kan være vi må justere litt på hvordan vi gjør diff
thokra-nav
commented
Mar 12, 2026
4d5d88b to
9d329ce
Compare
d9b9eab to
cbe3638
Compare
Co-authored-by: Vegar Sechmann Molvig <vegar.sechmann.molvig@nav.no>
- Move resource activity log types to activitylog package - Add fallback transformer for unknown resource kinds - Unify changed field representation and string conversion - Update GraphQL schema and resolvers for new types - Require pre-shared key for team API in integration tests - Update apply endpoint to use path parameters for team and environment
Fix environment name field
Co-authored-by: Vegar Sechmann Molvig <vegar.sechmann.molvig@nav.no>
Use the mise-installed CodeFormat binary in the Lua fmt task instead of downloading a formatter at runtime.
Convert apply to a struct-based HTTP handler, perform team authorization before request parsing, and restore environmentName in per-resource results. NOTE: tests are currently not passing in this branch.
Move team impersonation client creation into kubernetes config and allow rest/apply wiring to override the dynamic client in integration tests. This keeps production behavior while making authorization outcomes deterministic in tests.
…ls in tests GitHubOIDC now accepts an issuer parameter, returns an error instead of silently degrading, and is passed as an optional field in rest.Config. Integration tests simply leave the field nil to skip the middleware.
server Co-authored-by: Vegar Sechmann Molvig <vegar.sechmann.molvig@nav.no>
Custom error message for psk auth Co-authored-by: Vegar Sechmann Molvig <vegar.sechmann.molvig@nav.no>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.