Skip to content

Commit

Permalink
Change CacheDuration type from time.Duration to *string
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-vandeweerd-hs committed Jan 25, 2024
1 parent b012d8e commit 437393d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/providers/amifamily/bootstrap/bottlerocketsettings.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ package bootstrap

import (
"github.com/pelletier/go-toml/v2"
"time"
)

func NewBottlerocketConfig(userdata *string) (*BottlerocketConfig, error) {
Expand Down Expand Up @@ -87,7 +86,7 @@ type BottlerocketStaticPod struct {
// https://kubernetes.io/docs/tasks/administer-cluster/kubelet-credential-provider/
type BottlerocketCredentialProvider struct {
Enabled *bool `toml:"enabled"`
CacheDuration time.Duration `toml:"cache-duration,omitempty"`
CacheDuration *string `toml:"cache-duration,omitempty"`
ImagePatterns []string `toml:"image-patterns"`
Environment map[string]string `toml:"environment,omitempty"`
}
Expand Down

0 comments on commit 437393d

Please sign in to comment.