Skip to content

[Question]: Set Kubernetes Connection programmatically without creating a Service Connection in advance #20485

Open
@priscofarina

Description

@priscofarina

Task name

HelmDeploy@0

Task version

No response

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu

Question

Hi guys,
 is it possible to use the task of HelmDeploy@0 without defining a service connection on Azure DevOps?

I am using an openshift environment (CaaS) and I can't define the service connection since the kubeconfig configuration expires after a while.
I have seen that I could update the service connection definite on Azure DevOps using the Azure DevOps Api, but I was wondering if I could perform something different like getting the kubeconfig in a string and setting the content of the kubernetesServiceConnection to the specific parameter containing such content, maybe filled by a previous step of the task.

Is there any advice about that?
Thank you

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions