adding python sdk azure#1323
adding python sdk azure#1323arunvel1988 wants to merge 7 commits intotektoncd:mainfrom arunvel1988:main
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @arunvel1988. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@vinamra28 :) |
|
@vdemeester @vinamra28 kindly review |
There was a problem hiding this comment.
can we please format this MD file with proper headings?
There was a problem hiding this comment.
yes will do it ..
| apiVersion: tekton.dev/v1 | ||
| kind: Task | ||
| metadata: | ||
| name: python-azure-sdk |
There was a problem hiding this comment.
I am trying to think, can we make it a common task which can work with different cloud providers? Having this just for azure means that we are going to have n more tasks for aws, gcp, etc
There was a problem hiding this comment.
according to me whole purpose of task is to make it small and concise for a particular step .. hence it will be very cumbersome to make one task for all .. better to keep it isolated
| app.kubernetes.io/version: "0.1" | ||
| annotations: | ||
| tekton.dev/pipelines.minVersion: "0.54.0" | ||
| tekton.dev/categories: sdk |
There was a problem hiding this comment.
I doubt that the category: sdk exists. https://github.com/tektoncd/hub/blob/main/config.yaml#L15 are the available categories.
| name: python-script-configmap | ||
| steps: | ||
| - name: run-python-script | ||
| image: docker.io/library/python:3.9.19-alpine3.20@sha256:45cc18540209d878c2b24080cf8f64fc37603721b67d0ecc508799e2f9a9b21d |
There was a problem hiding this comment.
should we make this image as a parameter. I can see that image used here is 3.9.19 which is old as the latest python version is 3.13
| app.kubernetes.io/version: "0.1" | ||
| annotations: | ||
| tekton.dev/pipelines.minVersion: "0.54.0" | ||
| tekton.dev/categories: cloud |
There was a problem hiding this comment.
@piyush-garg @PuneetPunamiya is hub case sensitive while parsing the category? Cloud vs cloud, former one is what is defined in hub and later one is defined here.
task/python-sdk-azure/0.1/README.md
Outdated
| **Tekton Task for Running Python Scripts with Azure SDK** | ||
|
|
||
| This Tekton Task enables execution of Python scripts that utilize the Azure SDK to interact with Azure services. The Task is designed to securely authenticate using Azure credentials and execute the script from a ConfigMap without embedding the script directly in the pipeline. | ||
|
|
||
|
|
||
| **Features** |
There was a problem hiding this comment.
hi @arunvel1988, while having the README in the current state is fine, will it be possible for you to use proper markdown headings? You can probably refer a sample readme - https://raw.githubusercontent.com/tektoncd/catalog/refs/heads/main/task/anchore-cli/0.1/README.md
|
@arunvel1988 can you please squash the commits as well? |
|
@vinamra28 done squashing .. can you please check |
|
@arunvel1988, I can still see 6 commits 😓 |
Changes
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
contains
/kind <type>. Valid types are bug, cleanup, design, documentation,feature, flake, misc, question, tep
File path follows
<kind>/<name>/<version>/name.yamlHas
README.mdat<kind>/<name>/<version>/README.mdHas mandatory
metadata.labels-app.kubernetes.io/versionthe same as the<version>of the resourceHas mandatory
metadata.annotationstekton.dev/pipelines.minVersionmandatory
spec.descriptionfollows the conventionSee the contribution guide for more details.