kustomize-everything / action-env-build-and-deploy

Build and diff a Kustomize Environment with GitHub Actions
MIT License
4 stars 3 forks source link

CRD not rendering due to yq bug #8

Closed highb closed 2 years ago

highb commented 2 years ago

Fixes an issue with how yq was splitting the yaml previously. Attempting to split out a particular CRD was not adding the .yml extension, but upgrading to the latest YQ and specifying that I want the .yaml file extension explicitly in the expression seems to have resolved that issue.

See issue https://github.com/mikefarah/yq/issues/1165

github-actions[bot] commented 2 years ago

Comparison of env-dev cddd38 to proposed changes to env/dev in this PR

Diff output ```diff diff --git a/Deployment-apps_v1-nginx.yaml b/Deployment-apps_v1-nginx.yaml new file mode 100644 index 0000000..b566297 --- /dev/null +++ b/Deployment-apps_v1-nginx.yaml @@ -0,0 +1,41 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + config.kubernetes.io/origin: | + path: ../../base/nginx/deployment.yaml + deployment-repo: kustomize-everything/action-env-build-and-deploy + deployment-repo-url: https://github.com/kustomize-everything/action-env-build-and-deploy + env-branch: env-dev + env-branch-url: https://github.com/kustomize-everything/action-env-build-and-deploy/tree/env-dev + labels: + app.kubernetes.io/managed-by: kustomize-v4.5.7 + name: nginx +spec: + replicas: 1 + revisionHistoryLimit: 3 + selector: + matchLabels: + app: nginx + template: + metadata: + annotations: + deployment-repo: kustomize-everything/action-env-build-and-deploy + deployment-repo-url: https://github.com/kustomize-everything/action-env-build-and-deploy + env-branch: env-dev + env-branch-url: https://github.com/kustomize-everything/action-env-build-and-deploy/tree/env-dev + labels: + app: nginx + spec: + containers: + - image: nginx:1.22.0 + name: nginx + ports: + - containerPort: 80 + resources: + limits: + cpu: 100m + memory: 128Mi + requests: + cpu: 50m + memory: 64Mi ```