Ejemplo n.º 1
0
def cloud_ready():
    remove_state("kubernetes-worker.cloud.pending")
    if is_state("endpoint.gcp.ready"):
        write_gcp_snap_config("kubelet")
    elif is_state("endpoint.azure.ready"):
        write_azure_snap_config("kubelet")
    set_state("kubernetes-worker.cloud.ready")
    set_state("kubernetes-worker.restart-needed")  # force restart
def cloud_ready():
    remove_state('kubernetes-worker.cloud.pending')
    if is_state('endpoint.gcp.ready'):
        write_gcp_snap_config('kubelet')
    elif is_state('endpoint.azure.ready'):
        write_azure_snap_config('kubelet')
    set_state('kubernetes-worker.cloud.ready')
    set_state('kubernetes-worker.restart-needed')  # force restart