Skip to content

Commit

Permalink
fix :: kubernetes config 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunSu1768 committed Jul 31, 2024
1 parent cce04ac commit 14532af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 52 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
package xquare.app.xquareinfra.infrastructure.kubernetes.config

import io.kubernetes.client.openapi.Configuration
import io.kubernetes.client.openapi.apis.CoreV1Api
import io.kubernetes.client.openapi.apis.CustomObjectsApi
import io.kubernetes.client.util.ClientBuilder
import org.springframework.context.annotation.Bean
import javax.annotation.PostConstruct

@org.springframework.context.annotation.Configuration
class KubernetesClientConfig(
private val kubernetesTokenRefreshScheduler: KubernetesTokenRefreshScheduler
) {
class KubernetesClientConfig {
@PostConstruct
fun initKubernetesConfig() {
kubernetesTokenRefreshScheduler.refreshKubernetesToken()
val client = ClientBuilder.defaultClient()
Configuration.setDefaultApiClient(client)
}

@Bean
Expand Down

This file was deleted.

0 comments on commit 14532af

Please sign in to comment.