-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubernetes manifest task expects new input #10957
Comments
Provided the input |
If you are not using the task in a deployment job with environment context, then you are expected to pass kubernetesServiceConnection parameter. |
@bansalaseem , I was running the task in a deployment with environment context. Here's my yaml - jobs:
- deployment: Deploy
displayName: Deploy job
pool:
vmImage: $(vmImage)
environment: $(DeployEnvironment)
strategy:
runOnce:
deploy:
steps:
- task: DownloadPipelineArtifact@1
inputs:
artifactName: 'charts'
downloadPath: '$(System.ArtifactsDirectory)/charts'
- task: KubernetesManifest@0
displayName: bake
name: bake
inputs:
action: bake
helmChart: '$(System.ArtifactsDirectory)/charts'
releaseName: $(Release_Name)
overrideFiles: |
$(System.ArtifactsDirectory)/charts/values.$(DeployEnvironmentIdentifier).yaml
overrides: |
image.tag:$(Build.BuildId)
buildID:"1"
- task: KubernetesManifest@0
displayName: deploy
name: deploy
inputs:
kubernetesServiceConnection: $(AKS_Namespace_SC)
action: deploy
namespace: $(k8sNamespace)
manifests: $(bake.manifestsBundle)
containers: |
$(containerRegistry)/$(ServiceNameOnContainer):$(Build.BuildId) Here's the reference pipeline that I was following - |
Why? This isn't described in the documentation and isn't actually used by the code. Furthermore, it breaks existing pipelines. Is this a 'feature not a bug' situation ? :) |
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Bug
Enter Task Name: KubernetesManifest
list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
Environment
Server - Azure Pipelines or TFS on-premises?
Agent - Hosted or Private:
Issue Description
Here is my task description -
The pipeline was fine till task version 0.154.5
Failing with current version 0.154.7
Task logs
Error logs
The text was updated successfully, but these errors were encountered: