Skip to content

Commit 4fba181

Browse files
authored
Merge pull request openshift#3535 from jupierce/loglevel
Change in BUILD_LOGLEVEL handling
2 parents a2fb97d + cae172b commit 4fba181

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

dev_guide/builds.adoc

+5-3
Original file line numberDiff line numberDiff line change
@@ -1697,9 +1697,11 @@ sourceStrategy:
16971697
<1> Adjust this value to the desired log level.
16981698
====
16991699

1700-
NOTE: A platform administrator can set verbosity for the entire {product-title}
1701-
instance by passing the `--loglevel` option to the `openshift start` command.
1702-
If both `--loglevel` and `BUILD_LOGLEVEL` are specified, `BUILD_LOGLEVEL` takes precedence.
1700+
NOTE: A platform administrator can set the default build verbosity for the entire {product-title}
1701+
instance by configuring env/BUILD_LOGLEVEL for the `BuildDefaults` admission controller. This
1702+
default can be overridden by specifying BUILD_LOGLEVEL in a given BuildConfig. A still higher priority
1703+
override can be specified on the command line for non-binary builds by passing --build-loglevel to
1704+
`oc start-build`.
17031705

17041706
Available log levels for Source builds are as follows:
17051707

install_config/build_defaults_overrides.adoc

+13-10
Original file line numberDiff line numberDiff line change
@@ -128,20 +128,22 @@ admissionConfig:
128128
value: http://my.proxy:8080
129129
- name: HTTPS_PROXY <5>
130130
value: https://my.proxy:8443
131-
- name: CUSTOM_VAR <6>
131+
- name: BUILD_LOGLEVEL <6>
132+
value: 4
133+
- name: CUSTOM_VAR <7>
132134
value: custom_value
133135
imageLabels:
134-
- name: url <7>
136+
- name: url <8>
135137
value: https://containers.example.org
136138
- name: vendor
137139
value: ExampleCorp Ltd.
138-
nodeSelector: <8>
140+
nodeSelector: <9>
139141
key1: value1
140142
key2: value2
141-
annotations: <9>
143+
annotations: <10>
142144
key1: value1
143145
key2: value2
144-
resources: <10>
146+
resources: <11>
145147
requests:
146148
cpu: "100m"
147149
memory: "256Mi"
@@ -158,14 +160,15 @@ phases.
158160
<5> Default environment variable that sets the HTTPS proxy to use during the
159161
build. This may be used for downloading dependencies during the assemble and
160162
build phases.
161-
<6> Additional default environment variable that will be added to
163+
<6> Default environment variable that sets the build log level during the build.
164+
<7> Additional default environment variable that will be added to
162165
every build.
163-
<7> Labels to be applied to every image built. Users can override these in their `BuildConfig`.
164-
<8> Build pods will only run on nodes with the `key1=value2` and `key2=value2` labels.
166+
<8> Labels to be applied to every image built. Users can override these in their `BuildConfig`.
167+
<9> Build pods will only run on nodes with the `key1=value2` and `key2=value2` labels.
165168
Users can define a different set of `nodeSelectors` for their builds in which case these
166169
values will be ignored.
167-
<9> Build pods will have these annotations added to them.
168-
<10> Sets the default resources to the build pod if the `BuildConfig` does not have related resource defined.
170+
<10> Build pods will have these annotations added to them.
171+
<11> Sets the default resources to the build pod if the `BuildConfig` does not have related resource defined.
169172
170173
====
171174

0 commit comments

Comments
 (0)