Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support outputs in the kubernetes driver Add the JOB_VOLUME_NAME setting, which is the name of the PVC to mount to /cnab/app/outputs so that outputs from the bundle can be persisted. JOB_VOLUME_PATH specifies where the volume is mounted locally. When the bundle defines outputs, but does not specify a PVC, the driver returns an error. Signed-off-by: Carolyn Van Slyck <[email protected]> * Apply custom labels in the kubernetes driver Allow the caller to specify additional labels to apply to resources created by the driver. Signed-off-by: Carolyn Van Slyck <[email protected]> * Fix setting CLEANUP_JOBS Signed-off-by: Carolyn Van Slyck <[email protected]> * Use shared volume for input files too When you mount a configmap or secret value as a file into a pod, it is read only, which doesn't fit the CNAB spec Signed-off-by: Carolyn Van Slyck <[email protected]> * Remove requiredCompletions from k8s driver The only value that ever makes sense for requiredCompletions is 1 because we aren't running parallel pods for the bundle job. Signed-off-by: Carolyn Van Slyck <[email protected]> * Improve defaulting for kubernetes driver * When LimitCPU or LimitMemory is 0, do not set a limit. We don't set a request size, and requesting 0 is not the same as not having a requested resource quantity. This can lead to increased pod evictions. * Clarify that LimitCPU and LimitMemory are also used for the requested resources. * When ActiveDeadlineSeconds is 0, do not set a deadline. * Stop defaulting ActiveDeadlineSeconds to 5 minutes. It will cut off a bundle mid-execution, which isn't a great default. * Split reading the configuration in SetConfig and attempting to connect to the cluster, so that we can unit test the settings logic. * Move validation for KUBE_NAMESPACE into SetConfig so that any errors can be reported immediately. * Add comments for all of the driver settings Signed-off-by: Carolyn Van Slyck <[email protected]> * Review feedback Signed-off-by: Carolyn Van Slyck <[email protected]>
- Loading branch information