Skip to content

Commit

Permalink
Added expiration time to patch yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
akgalwas committed Sep 26, 2023
1 parent eef16d6 commit e3f80cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func init() {
//+kubebuilder:scaffold:scheme
}

const defaultExpirationTime = 7 * 12 * time.Hour
const defaultExpirationTime = 24 * time.Hour

func main() {
var metricsAddr string
Expand Down
2 changes: 2 additions & 0 deletions config/default/manager_gardener_secret_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ spec:
- /manager
args:
- --gardener-kubeconfig-path=/gardener/credentials/kubeconfig
- --gardener-project-name=kyma-dev
- --kubeconfig-expiration-time=24h
volumeMounts:
- name: gardener-kubeconfig
mountPath: /gardener/credentials

0 comments on commit e3f80cb

Please sign in to comment.