Skip to content

Commit

Permalink
add kubectl label namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
slavb18 committed Apr 7, 2024
1 parent fbf49ed commit cdf01be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ jobs:
run: |
. $(werf ci-env github --as-file)
werf cr login -u ${{ secrets.REGISTRY_USERNAME || github.actor }} -p ${{ secrets.REGISTRY_PASSWORD || secrets.GITHUB_TOKEN }} ${{ inputs.registry || 'ghcr.io' }}
werf kubectl create namespace ${{ env.WERF_NAMESPACE }} --dry-run=client -o yaml | sed '/^metadata:/a\ \ labels: {"autocert.step.sm":"enabled"}' | werf kubectl apply -f -
#werf kubectl create namespace ${{ env.WERF_NAMESPACE }} --dry-run=client -o yaml | sed '/^metadata:/a\ \ labels: {"autocert.step.sm":"enabled"}' | werf kubectl apply -f -
werf converge
kubectl label namespace ${{ env.WERF_NAMESPACE }} autocert.step.sm=enabled
env:
WERF_KUBECONFIG_BASE64: ${{ inputs.KUBE_CONTEXT && secrets.KUBE_CONFIG || steps.bootstrap.outputs.KUBE_CONFIG }}
WERF_ENV: ${{ env.WERF_ENV }}
Expand Down

0 comments on commit cdf01be

Please sign in to comment.