Skip to content

Commit

Permalink
sync_all feature implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
manedurphy committed Dec 10, 2021
1 parent 0f4ff7d commit 29617be
Show file tree
Hide file tree
Showing 17 changed files with 2,205 additions and 835 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,15 @@ endif

.PHONY: e2e-provider-container
e2e-provider-container:
docker buildx build --no-cache -t $(E2E_PROVIDER_IMAGE_TAG) -f test/e2eprovider/Dockerfile --progress=plain .
docker buildx build --no-cache --output=type=docker -t $(E2E_PROVIDER_IMAGE_TAG) -f test/e2eprovider/Dockerfile --progress=plain .

.PHONY: container
container: crd-container
docker buildx build --no-cache --build-arg IMAGE_VERSION=$(IMAGE_VERSION) -t $(IMAGE_TAG) -f docker/Dockerfile --progress=plain .
docker buildx build --no-cache --output=type=docker --build-arg IMAGE_VERSION=$(IMAGE_VERSION) -t $(IMAGE_TAG) -f docker/Dockerfile --progress=plain .

.PHONY: crd-container
crd-container: build-crds
docker buildx build --no-cache -t $(CRD_IMAGE_TAG) -f docker/crd.Dockerfile --progress=plain _output/crds/
docker buildx build --no-cache --output=type=docker -t $(CRD_IMAGE_TAG) -f docker/crd.Dockerfile --progress=plain _output/crds/

.PHONY: crd-container-linux
crd-container-linux: build-crds docker-buildx-builder
Expand Down Expand Up @@ -462,7 +462,7 @@ e2e-eks-cleanup:

.PHONY: e2e-provider
e2e-provider:
bats -t -T test/bats/e2e-provider.bats
bats -t test/bats/e2e-provider.bats

.PHONY: e2e-azure
e2e-azure: $(AZURE_CLI)
Expand Down
10 changes: 10 additions & 0 deletions apis/v1/secretproviderclass_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ type SecretObject struct {
// annotations of k8s secret object
Annotations map[string]string `json:"annotations,omitempty"`
Data []*SecretObjectData `json:"data,omitempty"`
// SyncAll syncs all secrets defined in the parameters field of SecretProviderClass
SyncAll bool `json:"syncAll,omitempty"`
}

type SyncOptions struct {
// syncs all secrets listed in the parameters field of SecretProviderClass
SyncAll bool `json:"syncAll,omitempty"`
// type of K8s secret object
Type string `json:"type,omitempty"`
}

// SecretProviderClassSpec defines the desired state of SecretProviderClass
Expand All @@ -53,6 +62,7 @@ type SecretProviderClassSpec struct {
// Configuration for specific provider
Parameters map[string]string `json:"parameters,omitempty"`
SecretObjects []*SecretObject `json:"secretObjects,omitempty"`
SyncOptions SyncOptions `json:"syncOptions,omitempty"`
}

// ByPodStatus defines the state of SecretProviderClass as seen by
Expand Down
Loading

0 comments on commit 29617be

Please sign in to comment.