-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UP] ⬆️ update dependencies + moove to vitejs
Signed-off-by: Eneman <[email protected]>
- Loading branch information
1 parent
25d6c84
commit 40242a8
Showing
59 changed files
with
6,961 additions
and
10,350 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: onboarding | ||
data: | ||
io.insee.dev.k8sonboarding.clusterName: "" | ||
io.insee.dev.k8sonboarding.insecure: "" | ||
io.insee.dev.k8sonboarding.apiserver-url: "" | ||
io.insee.dev.k8sonboarding.user-prefix: "" | ||
io.insee.dev.k8sonboarding.group-prefix: "" | ||
io.insee.dev.k8sonboarding.namespace-prefix: "" | ||
io.insee.dev.k8sonboarding.namespace-group-prefix: "" | ||
io.insee.dev.k8sonboarding.name-namespace-admin: "" | ||
io.insee.dev.k8sonboarding.jwt.username-claim: "" | ||
spring.security.oauth2.resourceserver.jwt.issuer-uri: "" | ||
spring.security.oauth2.resourceserver.jwt.jwk-set-uri: "" | ||
io.insee.dev.k8sonboarding.ui.clientId: "" | ||
io.insee.dev.k8sonboarding.ui.authority: "" | ||
io.insee.dev.k8sonboarding.ui.groupFilter: "" | ||
io.insee.dev.k8sonboarding.ui.user-namespace-enabled: "" | ||
io.insee.dev.k8sonboarding.ui.namespace-creation-allowed: "" | ||
io.insee.dev.k8sonboarding.namespace-quota.memoryRequests: "" | ||
io.insee.dev.k8sonboarding.namespace-quota.cpuRequests: "" | ||
io.insee.dev.k8sonboarding.namespace-quota.memoryLimits: "" | ||
io.insee.dev.k8sonboarding.namespace-quota.cpuLimits: "" | ||
io.insee.dev.k8sonboarding.namespace-quota.storageRequests: "" | ||
io.insee.dev.k8sonboarding.namespace-quota.storageLimits: "" | ||
io.insee.dev.k8sonboarding.namespace-quota.podsCount: "" | ||
io.insee.dev.k8sonboarding.does-remove-suffix: "" |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
apiVersion: extensions/v1beta1 | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: onboarding | ||
annotations: | ||
kubernetes.io/ingress.class: nginx | ||
labels: | ||
name: onboarding | ||
spec: | ||
tls: | ||
- hosts: | ||
- onboarding.example.com | ||
rules: | ||
- host: onboarding.example.com | ||
http: | ||
paths: | ||
- path: / | ||
- pathType: Prefix | ||
path: "/" | ||
backend: | ||
serviceName: onboarding | ||
servicePort: http | ||
service: | ||
name: onboarding | ||
port: | ||
name: http |
This file contains 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
This file contains 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
This file contains 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
29 changes: 29 additions & 0 deletions
29
src/main/java/io/insee/dev/k8sonboarding/configuration/security/CorsFilterConfiguration.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package io.insee.dev.k8sonboarding.configuration.security; | ||
|
||
import java.util.List; | ||
|
||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.web.cors.CorsConfiguration; | ||
import org.springframework.web.cors.CorsConfigurationSource; | ||
import org.springframework.web.cors.UrlBasedCorsConfigurationSource; | ||
|
||
@Configuration | ||
public class CorsFilterConfiguration { | ||
|
||
@Value("${io.insee.dev.k8sonboarding.authorized.urls:*}") | ||
private String[] urls; | ||
|
||
@Bean | ||
public CorsConfigurationSource corsConfigurationSource() { | ||
CorsConfiguration configuration = new CorsConfiguration(); | ||
configuration.setAllowedOriginPatterns(List.of(urls)); | ||
configuration.setAllowedMethods(List.of("*")); | ||
configuration.setAllowedHeaders(List.of("*")); | ||
configuration.setMaxAge(3600L); | ||
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); | ||
source.registerCorsConfiguration("/**", configuration); | ||
return source; | ||
} | ||
} |
Oops, something went wrong.