Presently the Apply method provided by the generic API is implemented as a Create from a yaml file. This is not consistent with the experience that users may have with thekubectl apply command that allows both creating new resources or modifying existing resources.
Starting with v1.25 the dynamic client now offers an Apply method which implements the desired functionality, allowing both the creation or the modification of resources.
Therefore, it would be convenient for the sake of consistency and convenience to re-implement the Apply method in the generic API using this newly provided Apply method in the dynamic client.
Presently the
Apply
method provided by the generic API is implemented as aCreate
from ayaml
file. This is not consistent with the experience that users may have with thekubectl apply
command that allows both creating new resources or modifying existing resources.Starting with
v1.25
the dynamic client now offers anApply
method which implements the desired functionality, allowing both the creation or the modification of resources.Therefore, it would be convenient for the sake of consistency and convenience to re-implement the
Apply
method in the generic API using this newly providedApply
method in the dynamic client.