
This adds a `wait.resources` key to chart documents which allows waiting on a list of k8s type+labels configurations to wait on. Initially supported types are pods, jobs, deployments, daemonsets, and statefulsets. The behavior for controller types is similar to that of `kubectl rollout status`. If `wait.resources` is omitted, it waits on pods and jobs (if any exist) as before. The existing `wait.labels` key still have the same behavior, but if `wait.resources` is also included, the labels are added to each resource wait in that array. Thus they serve to specify base labels that apply to all resources in the release, so as to not have to duplicate them. This may also be useful later for example to use them as labels to wait for when deleting a chart. Controller types additionaly have a `min_ready` field which represents the minimum amount of pods of the controller which must be ready in order for the controller to be considered ready. The value can either be an integer or a percent string e.g. "80%", similar to e.g. `maxUnavailable` in k8s. Default is "100%". This also wraps up moving the rest of the wait code into its own module. Change-Id: If72881af0c74e8f765bbb57ac5ffc8d709cd3c16
49 lines
1.4 KiB
C++
49 lines
1.4 KiB
C++
..
|
|
Copyright 2018 AT&T Intellectual Property.
|
|
All Rights Reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
not use this file except in compliance with the License. You may obtain
|
|
a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
License for the specific language governing permissions and limitations
|
|
under the License.
|
|
|
|
Armada Exceptions
|
|
-----------------
|
|
|
|
.. autoexception:: armada.exceptions.armada_exceptions.ArmadaTimeoutException
|
|
:members:
|
|
:show-inheritance:
|
|
:undoc-members:
|
|
|
|
.. autoexception:: armada.exceptions.armada_exceptions.ProtectedReleaseException
|
|
:members:
|
|
:show-inheritance:
|
|
:undoc-members:
|
|
|
|
.. autoexception:: armada.exceptions.armada_exceptions.InvalidValuesYamlException
|
|
:members:
|
|
:show-inheritance:
|
|
:undoc-members:
|
|
|
|
.. autoexception:: armada.exceptions.armada_exceptions.InvalidOverrideValuesYamlException
|
|
:members:
|
|
:show-inheritance:
|
|
:undoc-members:
|
|
|
|
.. autoexception:: armada.exceptions.armada_exceptions.ChartDeployException
|
|
:members:
|
|
:show-inheritance:
|
|
:undoc-members:
|
|
|
|
.. autoexception:: armada.exceptions.armada_exceptions.WaitException
|
|
:members:
|
|
:show-inheritance:
|
|
:undoc-members:
|