Skip to content

Commit

Permalink
fix(testworkflows): make CRD for TestWorkflowExecution valid (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 authored Jun 4, 2024
1 parent d47d864 commit f91b0db
Show file tree
Hide file tree
Showing 3 changed files with 292 additions and 304 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ manifests-create: controller-gen ## Generate WebhookConfiguration, ClusterRole a
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases

manifests-clean: yq
@for file in testworkflows.testkube.io_testworkflows.yaml testworkflows.testkube.io_testworkflowtemplates.yaml; do \
@for file in testworkflows.testkube.io_testworkflows.yaml testworkflows.testkube.io_testworkflowtemplates.yaml testworkflows.testkube.io_testworkflowexecutions.yaml; do \
for key in securityContext volumes dnsPolicy affinity tolerations hostAliases dnsConfig topologySpreadConstraints schedulingGates resourceClaims volumeMounts fieldRef resourceFieldRef configMapKeyRef secretKeyRef; do \
yq --no-colors -i "del(.. | select(has(\"$$key\")).$$key | .. | select(has(\"description\")).description)" "config/crd/bases/$$file"; \
done; \
Expand Down
Loading

0 comments on commit f91b0db

Please sign in to comment.