Revert formatting changes

This commit is contained in:
Nils Carstensen 2024-08-24 22:19:27 +02:00 committed by GitHub
parent 3a620a3f5e
commit a63ca6749b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 17 additions and 15 deletions

View File

@ -34,20 +34,11 @@ import (
utilio "k8s.io/utils/io"
)
type podEventType int
const (
podAdd podEventType = iota
podModify
podDelete
eventBufferLen = 10
)
type watchEvent struct {
fileName string
eventType podEventType
}
type watchEvent struct{}
type sourceFile struct {
path string

View File

@ -17,8 +17,6 @@ limitations under the License.
package config
import (
"fmt"
"github.com/spf13/pflag"
)
@ -54,6 +52,16 @@ func (s *ContainerRuntimeOptions) AddFlags(fs *pflag.FlagSet) {
_ = fs.MarkDeprecated("pod-infra-container-image", "will be removed in 1.35. Image garbage collector will get sandbox image information from CRI.")
// Image credential provider settings.
fs.StringVar(&s.ImageCredentialProviderConfigFile, "image-credential-provider-config", s.ImageCredentialProviderConfigFile, "The path to the credential provider plugin config file.")
fs.StringVar(&s.ImageCredentialProviderBinDir, "image-credential-provider-bin-dir", s.ImageCredentialProviderBinDir, "The path to the directory where credential provider plugin binaries are located.")
fs.StringVar(
&s.ImageCredentialProviderConfigFile,
"image-credential-provider-config",
s.ImageCredentialProviderConfigFile,
"The path to the credential provider plugin config file.",
)
fs.StringVar(
&s.ImageCredentialProviderBinDir,
"image-credential-provider-bin-dir",
s.ImageCredentialProviderBinDir,
"The path to the directory where credential provider plugin binaries are located.",
)
}

View File

@ -21,6 +21,7 @@ import (
"sync"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/klog/v2"
)
type merger interface {
@ -75,6 +76,8 @@ func (m *mux) ChannelWithContext(ctx context.Context, source string) chan interf
func (m *mux) listen(source string, listenChannel <-chan interface{}) {
for update := range listenChannel {
m.merger.Merge(source, update)
if err := m.merger.Merge(source, update); err != nil {
klog.InfoS("failed merging update", "err", err)
}
}
}