microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.5k stars 2.61k forks source link

[BUG]: Warning: Use tokens from the TokenRequest ... #19759

Open shurick81 opened 7 months ago

shurick81 commented 7 months ago

New issue checklist

Task name

KubernetesManifest

Task version

No response

Issue Description

I get a warning in the pipeline every time when I use the KubernetesManifest task

##[warning]Warning: Use tokens from the TokenRequest API or manually created secret-based tokens instead of auto-generated secret-based tokens.

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

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Windows Server 2022

Relevant log output

C:\ProgramData\Chocolatey\bin\kubectl.exe scale deployment/tenant000-prime-1-services-deploy --replicas=0 --namespace tenant000
Warning: Use tokens from the TokenRequest API or manually created secret-based tokens instead of auto-generated secret-based tokens.
deployment.apps/tenant000-prime-1-services-deploy scaled
##[warning]Warning: Use tokens from the TokenRequest API or manually created secret-based tokens instead of auto-generated secret-based tokens.

C:\ProgramData\Chocolatey\bin\kubectl.exe rollout status deployment/tenant000-prime-1-services-deploy --timeout 10s --namespace t200000-ns
Warning: Use tokens from the TokenRequest API or manually created secret-based tokens instead of auto-generated secret-based tokens.
deployment "tenant000-prime-1-services-deploy" successfully rolled out
##[warning]Warning: Use tokens from the TokenRequest API or manually created secret-based tokens instead of auto-generated secret-based tokens.

C:\ProgramData\Chocolatey\bin\kubectl.exe annotate deployment tenant000-prime-1-services-deploy azure-pipelines/run=tenant000 "azure-pipelines/pipeline=\"EMEA - Dev Upgrade SINGLE - EUWE-AKSLAB00001\"" "azure-pipelines/pipelineId=\"200\"" "azure-pipelines/jobName=\"Upgrade tenant000\"" azure-pipelines/runuri=https://dev.azure.com/PaletteSoftware/Operations/_build/results?buildId=203240 azure-pipelines/project=Operations azure-pipelines/org=https://dev.azure.com/PaletteSoftware/ --overwrite --namespace tenant000
Warning: Use tokens from the TokenRequest API or manually created secret-based tokens instead of auto-generated secret-based tokens.
deployment.apps/tenant000-prime-1-services-deploy annotated
##[warning]Warning: Use tokens from the TokenRequest API or manually created secret-based tokens instead of auto-generated secret-based tokens.

C:\ProgramData\Chocolatey\bin\kubectl.exe annotate pod tenant000-prime-1-services-deploy-7899bb84c6-vctnw azure-pipelines/run=tenant000 "azure-pipelines/pipeline=\"EMEA - Dev Upgrade SINGLE - EUWE-AKSLAB00001\"" "azure-pipelines/pipelineId=\"200\"" "azure-pipelines/jobName=\"Upgrade tenant000\"" azure-pipelines/runuri=https://dev.azure.com/PaletteSoftware/Operations/_build/results?buildId=203240 azure-pipelines/project=Operations azure-pipelines/org=https://dev.azure.com/PaletteSoftware/ --overwrite --namespace tenant000
Warning: Use tokens from the TokenRequest API or manually created secret-based tokens instead of auto-generated secret-based tokens.
pod/tenant000-prime-1-services-deploy-7899bb84c6-vctnw annotated
##[warning]Warning: Use tokens from the TokenRequest API or manually created secret-based tokens instead of auto-generated secret-based tokens.

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

- task: KubernetesManifest@0
  displayName: 'Stop existing services pod if found'
  inputs:
    action: 'scale'
    kubernetesServiceConnection: EUWE-AKSLAB00001
    namespace: 'tenant000'
    kind: 'deployment'
    name: 'tenant000-prime-1-services-deploy'
    replicas: '0'
    rolloutStatusTimeout: '10'
  continueOnError: true
github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

shurick81 commented 1 month ago

KubernetesManifest@0 is retired, I guess