Skip to content

Bulk apply#353

Merged
thokra-nav merged 28 commits intomainfrom
bulk_apply
Apr 9, 2026
Merged

Bulk apply#353
thokra-nav merged 28 commits intomainfrom
bulk_apply

Conversation

@thokra-nav
Copy link
Copy Markdown
Contributor

No description provided.

}

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 {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

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,
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 thokra-nav force-pushed the bulk_apply branch 4 times, most recently from 4d5d88b to 9d329ce Compare March 16, 2026 13:15
@sechmann sechmann force-pushed the bulk_apply branch 2 times, most recently from d9b9eab to cbe3638 Compare March 18, 2026 12:34
thokra-nav and others added 3 commits April 9, 2026 13:31
Co-authored-by: Vegar Sechmann Molvig <vegar.sechmann.molvig@nav.no>
thokra-nav and others added 22 commits April 9, 2026 13:33
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>
Co-authored-by: Vegar Sechmann Molvig <vegar.sechmann.molvig@nav.no>
Copy link
Copy Markdown
Member

@christeredvartsen christeredvartsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@thokra-nav thokra-nav marked this pull request as ready for review April 9, 2026 11:45
@thokra-nav thokra-nav requested a review from a team as a code owner April 9, 2026 11:45
@thokra-nav thokra-nav merged commit 514af93 into main Apr 9, 2026
10 checks passed
@thokra-nav thokra-nav deleted the bulk_apply branch April 9, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants