File tree 2 files changed +18
-13
lines changed
2 files changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -1697,9 +1697,11 @@ sourceStrategy:
1697
1697
<1> Adjust this value to the desired log level.
1698
1698
====
1699
1699
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`.
1703
1705
1704
1706
Available log levels for Source builds are as follows:
1705
1707
Original file line number Diff line number Diff line change @@ -128,20 +128,22 @@ admissionConfig:
128
128
value: http://my.proxy:8080
129
129
- name: HTTPS_PROXY <5>
130
130
value: https://my.proxy:8443
131
- - name: CUSTOM_VAR <6>
131
+ - name: BUILD_LOGLEVEL <6>
132
+ value: 4
133
+ - name: CUSTOM_VAR <7>
132
134
value: custom_value
133
135
imageLabels:
134
- - name: url <7 >
136
+ - name: url <8 >
135
137
value: https://containers.example.org
136
138
- name: vendor
137
139
value: ExampleCorp Ltd.
138
- nodeSelector: <8 >
140
+ nodeSelector: <9 >
139
141
key1: value1
140
142
key2: value2
141
- annotations: <9 >
143
+ annotations: <10 >
142
144
key1: value1
143
145
key2: value2
144
- resources: <10 >
146
+ resources: <11 >
145
147
requests:
146
148
cpu: "100m"
147
149
memory: "256Mi"
@@ -158,14 +160,15 @@ phases.
158
160
<5> Default environment variable that sets the HTTPS proxy to use during the
159
161
build. This may be used for downloading dependencies during the assemble and
160
162
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
162
165
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.
165
168
Users can define a different set of `nodeSelectors` for their builds in which case these
166
169
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.
169
172
170
173
====
171
174
You can’t perform that action at this time.
0 commit comments