Open fketelaars opened 1 year ago
Tasks:
kubernetes.core.k8s
and kubernetes.core.k8s_info
can be used instead of oc
kubernetes.core.k8s
modules. There are modules for specific tasks - for example, json patch operations can be done with the k8s_json_patch module
; both oc
and non-oc
commands can be run within a pod with the kubernetes.core.k8s_exec
. oc
replacements in automation roles: 50-install-cloud-pak
and 60-configure-cloud-pak
kubeconfig
parameter of the k8s modulekubernetes.core.k8s_info
and kubernetes.core.k8s_exec
implementation. The project was structured differently with pod based oc
command executions. Some instances hardcode the pod name, some declare a pod with the kubernetes.core.k8s_info
and then use those pods with the exec module.
Is your feature request related to a problem? Please describe. Currently, the deployer uses oc commands for managing definitions in OpenShift. Sometimes this involves running oc command in a wait loop, until a condition has been met.
The k8s roles in Ansible provide a much more elegant way to apply yaml files, wait for conditions, etc.
Describe the solution you'd like Research how k8s role can be used for CP4D. Look at the CP4BA code for examples.