Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Invalid Secret type after using k8s-create-secret action #100

Open
harsha1163 opened this issue Jun 7, 2024 · 2 comments
Open

Invalid Secret type after using k8s-create-secret action #100

harsha1163 opened this issue Jun 7, 2024 · 2 comments
Labels
need-to-triage Requires investigation

Comments

@harsha1163
Copy link

Issue is when we use the below github action to generate/create a secret in k8s cluster

uses: azure/k8s-create-secret@v5 with: namespace: 'forecast-${{ matrix.client }}' secret-type: genric secret-name: 'dummy' string-data: '{"dummy1":"${{ steps.secrets.outputs.dummy1 }}","dummy2":"${{ steps.secrets.outputs.dummy2 }}","dummy3":"${{ steps.secrets.outputs.dummy3 }}","dummy4":"dummy4"}'

When we specify the "type" as generic --> the action should create the type of "Opaque" but it is trying to create a type of "generic" secret wherein the k8s doesn't have that type of secret.
https://kubernetes.io/docs/concepts/configuration/secret/#secret-types

Created Secret o/p:

apiVersion: v1
data:
dummy1:
dummy2:
dummy3:
dummy4:
kind: Secret
metadata:
creationTimestamp: "2024-06-07T09:32:28Z"
name: dummy
namespace: default
type: Opaque

Note: Removed actual values for security reasons.

@harsha1163 harsha1163 added the need-to-triage Requires investigation label Jun 7, 2024
@npcxiao
Copy link

npcxiao commented Jun 11, 2024

same issue

@harsha1163
Copy link
Author

Any update ?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
need-to-triage Requires investigation
Projects
None yet
Development

No branches or pull requests

2 participants