Skip to content

Commit

Permalink
updates after rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Wessendorf <[email protected]>
  • Loading branch information
matzew committed Nov 5, 2024
1 parent 07bc327 commit bd083f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions pkg/reconciler/integration/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ func TestGenerateEnvVarsFromStruct(t *testing.T) {

// Expected environment variables including SSL settings
want := []corev1.EnvVar{
{Name: "CAMEL_KNATIVE_CLIENT_SSL_ENABLED", Value: "true"},
{Name: "CAMEL_KNATIVE_CLIENT_SSL_CERT_PATH", Value: "/knative-custom-certs/knative-eventing-bundle.pem"},
{Name: "TEST_PREFIX_FIELD1", Value: "123"},
{Name: "TEST_PREFIX_FIELD2", Value: "true"},
{Name: "TEST_PREFIX_FIELD3", Value: "hello"},
Expand Down
10 changes: 5 additions & 5 deletions pkg/reconciler/integration/source/resources/containersource.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func NewContainerSource(source *v1alpha1.IntegrationSource) *sourcesv1.Container
OwnerReferences: []metav1.OwnerReference{
*kmeta.NewControllerRef(source),
},
Name: "kn-connector-source-" + source.Name,
Name: ContainerSourceName(source),
Namespace: source.Namespace,
},
Spec: sourcesv1.ContainerSourceSpec{
Expand Down Expand Up @@ -97,17 +97,17 @@ func makeEnv(source *v1alpha1.IntegrationSource) []corev1.EnvVar {

func selectImage(source *v1alpha1.IntegrationSource) string {
if source.Spec.Timer != nil {
return "quay.io/openshift-knative/timer-source:1.0-SNAPSHOT"
return "gcr.io/knative-nightly/timer-source:latest"
}
if source.Spec.Aws != nil {
if source.Spec.Aws.S3 != nil {
return "quay.io/openshift-knative/aws-s3-source:1.0-SNAPSHOT"
return "gcr.io/knative-nightly/aws-s3-source:latest"
}
if source.Spec.Aws.SQS != nil {
return "quay.io/openshift-knative/aws-sqs-source:1.0-SNAPSHOT"
return "gcr.io/knative-nightly/aws-sqs-source:latest"
}
if source.Spec.Aws.DDBStreams != nil {
return "quay.io/openshift-knative/aws-ddb-streams-source:1.0-SNAPSHOT"
return "gcr.io/knative-nightly/aws-ddb-streams-source:latest"
}
}
return ""
Expand Down

0 comments on commit bd083f2

Please sign in to comment.