Codebase list golang-github-containers-common / ef58b71
Merge pull request #433 from rhatdan/v0.33 Revert change to journald as default OpenShift Merge Robot authored 3 years ago GitHub committed 3 years ago
6 changed file(s) with 4 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
176176
177177 Indicates whether the container engine uses MAC(SELinux) container separation via labeling. This option is ignored on disabled systems.
178178
179 **log_driver**="journald"
179 **log_driver**="k8s-file"
180180
181181 Logging driver for the container. Available options: `k8s-file` and `journald`.
182182
2525 gomega.Expect(err).To(gomega.BeNil())
2626 gomega.Expect(defaultConfig.Containers.ApparmorProfile).To(gomega.Equal(apparmor.Profile))
2727 gomega.Expect(defaultConfig.Containers.PidsLimit).To(gomega.BeEquivalentTo(2048))
28 gomega.Expect(defaultConfig.Containers.LogDriver).To(gomega.BeEquivalentTo("journald"))
2928 })
3029
3130 It("should succeed with devices", func() {
4645 It("should fail wrong max log size", func() {
4746 // Given
4847 sut.Containers.LogSizeMax = 1
49 sut.Containers.LogDriver = "k8s-file"
5048
5149 // When
5250 err := sut.Validate()
303301 gomega.Expect(err).To(gomega.BeNil())
304302 gomega.Expect(config).ToNot(gomega.BeNil())
305303 gomega.Expect(config.Containers.ApparmorProfile).To(gomega.Equal("overridden-default"))
306 gomega.Expect(config.Containers.LogDriver).To(gomega.BeEquivalentTo("k8s-file"))
307304 })
308305
309306 It("should fail with invalid value", func() {
157157
158158 # Logging driver for the container. Available options: k8s-file and journald.
159159 #
160 # log_driver = "journald"
160 # log_driver = "k8s-file"
161161
162162 # Maximum size allowed for the container log file. Negative numbers indicate
163163 # that no size limit is imposed. If positive, it must be >= 8192 to match or
101101 // SystemdCgroupsManager represents systemd native cgroup manager
102102 SystemdCgroupsManager = "systemd"
103103 // DefaultLogDriver is the default type of log files
104 DefaultLogDriver = "journald"
104 DefaultLogDriver = "k8s-file"
105105 // DefaultLogSizeMax is the default value for the maximum log size
106106 // allowed for a container. Negative values mean that no limit is imposed.
107107 DefaultLogSizeMax = -1
00 [containers]
11
22 apparmor_profile = "overridden-default"
3 log_driver = "k8s-file"
00 package version
11
22 // Version is the version of the build.
3 const Version = "0.33.2"
3 const Version = "0.33.3"