Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
syntassodev committed Jul 13, 2023
2 parents 2d8b467 + 9929c06 commit 2cde779
Show file tree
Hide file tree
Showing 18 changed files with 662 additions and 286 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ifeq ($(shell uname -sm),Darwin arm64)
endif
.PHONY: test
test: manifests generate fmt vet envtest ## Run tests.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) $(ARCH_FLAG) use $(ENVTEST_K8S_VERSION) -p path)" WC_IMG=${WC_IMG} TEST_PROMISE_CONTROLLER_POD_IDENTIFIER_UUID=12345 ACK_GINKGO_DEPRECATIONS=1.16.4 go run github.com/onsi/ginkgo/ginkgo -r --coverprofile cover.out --skipPackage=system
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) $(ARCH_FLAG) use $(ENVTEST_K8S_VERSION) -p path)" WC_IMG=${WC_IMG} ACK_GINKGO_DEPRECATIONS=1.16.4 go run github.com/onsi/ginkgo/ginkgo -r --coverprofile cover.out --skipPackage=system

ENVTEST = $(shell pwd)/bin/setup-envtest
.PHONY: envtest
Expand Down
2 changes: 2 additions & 0 deletions api/v1alpha1/promise_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ type Workflows struct {
type WorkflowTriggers struct {
// +kubebuilder:pruning:PreserveUnknownFields
Configure []unstructured.Unstructured `json:"configure,omitempty"`
// +kubebuilder:pruning:PreserveUnknownFields
Delete []unstructured.Unstructured `json:"delete,omitempty"`
}

// Resources represents the manifest workload to be deployed on workers
Expand Down
7 changes: 7 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions charts/kratix/crds/platform_kratix_io_crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ spec:
type: object
type: array
x-kubernetes-preserve-unknown-fields: true
delete:
items:
type: object
type: array
x-kubernetes-preserve-unknown-fields: true
type: object
type: object
type: object
Expand Down
4 changes: 2 additions & 2 deletions charts/kratix/templates/distribution.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ metadata:
---
apiVersion: v1
data:
WC_IMG: syntasso/kratix-platform-pipeline-adapter:1d6dc345ccfe23f51fddd4110b4b187c71151642
WC_IMG: syntasso/kratix-platform-pipeline-adapter:9929c0652d4e6778f3c4220f51ca02fa0df3c9b8
kind: ConfigMap
metadata:
name: kratix-platform-wc-img-config
Expand Down Expand Up @@ -388,7 +388,7 @@ spec:
configMapKeyRef:
key: WC_IMG
name: kratix-platform-wc-img-config
image: syntasso/kratix-platform:1d6dc345ccfe23f51fddd4110b4b187c71151642
image: syntasso/kratix-platform:9929c0652d4e6778f3c4220f51ca02fa0df3c9b8
livenessProbe:
httpGet:
path: /healthz
Expand Down
5 changes: 5 additions & 0 deletions config/crd/bases/platform.kratix.io_promises.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ spec:
type: object
type: array
x-kubernetes-preserve-unknown-fields: true
delete:
items:
type: object
type: array
x-kubernetes-preserve-unknown-fields: true
type: object
type: object
type: object
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ configMapGenerator:
images:
- name: controller
newName: syntasso/kratix-platform
newTag: 1d6dc345ccfe23f51fddd4110b4b187c71151642
newTag: 9929c0652d4e6778f3c4220f51ca02fa0df3c9b8
10 changes: 10 additions & 0 deletions config/samples/redis/redis-promise.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4495,3 +4495,13 @@ spec:
containers:
- image: syntasso/kustomize-redis
name: kustomize-redis
delete:
- apiVersion: platform.kratix.io/v1alpha1
kind: Pipeline
metadata:
name: instance-delete
namespace: default
spec:
containers:
- image: syntasso/kustomize-redis
name: kustomize-redis
Loading

0 comments on commit 2cde779

Please sign in to comment.