Skip to content

Commit

Permalink
Merge pull request #262 from 3scale-ops/feat/add-field-externalsecret
Browse files Browse the repository at this point in the history
Feat/Add decodingStrategy field to ExternalSecret with current default value
  • Loading branch information
3scale-robot authored May 23, 2023
2 parents 0516d62 + 429d07a commit 6e4d62b
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# To re-generate a bundle for another specific version without changing the standard setup, you can:
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
VERSION ?= 0.19.8-alpha.2
VERSION ?= 0.19.8

# CHANNELS define the bundle channels used in the bundle.
# Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable")
Expand Down
3 changes: 2 additions & 1 deletion bundle.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=saas-operator
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
LABEL operators.operatorframework.io.bundle.channels.v1=alpha,stable
LABEL operators.operatorframework.io.bundle.channel.default.v1=alpha
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.27.0
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3
Expand Down
8 changes: 4 additions & 4 deletions bundle/manifests/saas-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -627,15 +627,15 @@ metadata:
capabilities: Basic Install
categories: Integration & Delivery
containerImage: quay.io/3scale/saas-operator
createdAt: "2023-05-22T11:05:17Z"
createdAt: "2023-05-22T14:34:40Z"
description: |-
The 3scale SaaS Operator creates and maintains a SaaS-ready deployment
of the Red Hat 3scale API Management on OpenShift.
operators.operatorframework.io/builder: operator-sdk-v1.27.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/3scale/saas-operator
support: Red Hat
name: saas-operator.v0.19.8-alpha.2
name: saas-operator.v0.19.8
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -4456,7 +4456,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.annotations['olm.targetNamespaces']
image: quay.io/3scale/saas-operator:v0.19.8-alpha.2
image: quay.io/3scale/saas-operator:v0.19.8
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -4970,4 +4970,4 @@ spec:
provider:
name: Red Hat
url: https://www.3scale.net/
version: 0.19.8-alpha.2
version: 0.19.8
3 changes: 2 additions & 1 deletion bundle/metadata/annotations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ annotations:
operators.operatorframework.io.bundle.manifests.v1: manifests/
operators.operatorframework.io.bundle.metadata.v1: metadata/
operators.operatorframework.io.bundle.package.v1: saas-operator
operators.operatorframework.io.bundle.channels.v1: alpha
operators.operatorframework.io.bundle.channels.v1: alpha,stable
operators.operatorframework.io.bundle.channel.default.v1: alpha
operators.operatorframework.io.metrics.builder: operator-sdk-v1.27.0
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v3
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ kind: Kustomization
images:
- name: controller
newName: quay.io/3scale/saas-operator
newTag: v0.19.8-alpha.2
newTag: v0.19.8
1 change: 1 addition & 0 deletions pkg/resource_builders/pod/externalsecrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func keysSlice(name string, opts interface{}) []externalsecretsv1beta1.ExternalS
Key: strings.TrimPrefix(secretValue.Value.FromVault.Path, "secret/data/"),
Property: secretValue.Value.FromVault.Key,
ConversionStrategy: "Default",
DecodingStrategy: "None",
},
})
}
Expand Down
6 changes: 6 additions & 0 deletions pkg/resource_builders/pod/externalsecrets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func TestGenerateExternalSecretFn(t *testing.T) {
Key: "path2",
Property: "key2",
ConversionStrategy: "Default",
DecodingStrategy: "None",
},
},
{
Expand All @@ -80,6 +81,7 @@ func TestGenerateExternalSecretFn(t *testing.T) {
Key: "path3",
Property: "key3",
ConversionStrategy: "Default",
DecodingStrategy: "None",
},
},
},
Expand Down Expand Up @@ -130,6 +132,7 @@ func TestGenerateExternalSecretFn(t *testing.T) {
Key: "path4",
Property: "key4",
ConversionStrategy: "Default",
DecodingStrategy: "None",
},
},
},
Expand Down Expand Up @@ -184,6 +187,7 @@ func Test_keysSlice(t *testing.T) {
Key: "path2",
Property: "key2",
ConversionStrategy: "Default",
DecodingStrategy: "None",
},
},
{
Expand All @@ -192,6 +196,7 @@ func Test_keysSlice(t *testing.T) {
Key: "path3",
Property: "key3",
ConversionStrategy: "Default",
DecodingStrategy: "None",
},
},
},
Expand Down Expand Up @@ -223,6 +228,7 @@ func Test_keysSlice(t *testing.T) {
Key: "path2",
Property: "key2",
ConversionStrategy: "Default",
DecodingStrategy: "None",
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/version/version.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package version

const (
version string = "v0.19.8-alpha.2"
version string = "v0.19.8"
)

// Current returns the current marin3r operator version
Expand Down

0 comments on commit 6e4d62b

Please sign in to comment.