Skip to content

Commit

Permalink
fix: salesforce source container
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Sep 19, 2024
1 parent d9dec29 commit e574c5a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 37 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
.DEFAULT_GOAL := build

BASE_DIR ?= $(CURDIR)
OUTPUT_DIR ?= $(BASE_DIR)/dist
BASE_DIR ?= $(CURDIR)
OUTPUT_DIR ?= $(BASE_DIR)/dist

GO ?= go
GO ?= go
GO_RUN_TOOLS ?= $(GO) run -modfile ./tools/go.mod
GO_TEST ?= $(GO_RUN_TOOLS) gotest.tools/gotestsum --format pkgname
GO_TEST ?= $(GO_RUN_TOOLS) gotest.tools/gotestsum --format pkgname
GO_RELEASER ?= $(GO_RUN_TOOLS) github.com/goreleaser/goreleaser
GO_KO ?= $(GO_RUN_TOOLS) github.com/google/ko
GO_MOD ?= $(shell ${GO} list -m)
GO_KO ?= $(GO_RUN_TOOLS) github.com/google/ko
GO_MOD ?= $(shell ${GO} list -m)

COMMANDS := $(notdir $(wildcard cmd/*))

Expand Down
58 changes: 27 additions & 31 deletions config/300-salesforcesource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,42 +42,38 @@ spec:
type: object
properties:
auth:
description: Authentication method to interact with the Salesforce API.
type: object
description: Authentication method to interact with the Salesforce API.
properties:
auth:
clientID:
description: Salesforce client ID.
type: string
clientSecret:
instanaceURL:
description: Salesforce instance URL.
type: string
properties:
value:
description: Literal value of the certificate key.
type: string
valueFromSecret:
description: A reference to a Kubernetes Secret containing the certificate key.
type: object
description: Authentication method to interact with the Salesforce API.
properties:
clientID:
description: Salesforce client ID.
name:
type: string
clientSecret:
instanaceURL:
description: Salesforce instance URL.
type: string
properties:
value:
description: Literal value of the certificate key.
key:
type: string
valueFromSecret:
description: A reference to a Kubernetes Secret containing the certificate key.
type: object
properties:
name:
type: string
key:
type: string
required:
- name
- key
oneOf:
- required: [value]
- required: [valueFromSecret]
required:
- clientID
- instanceURL
- auth
required:
- name
- key
oneOf:
- required: [value]
- required: [valueFromSecret]
required:
- clientID
- instanceURL
- auth
apiVersion:
description: Salesforce API version.
type: string
Expand Down Expand Up @@ -265,4 +261,4 @@ spec:
jsonPath: .status.sinkUri
- name: Age
type: date
jsonPath: .metadata.creationTimestamp
jsonPath: .metadata.creationTimestamp

0 comments on commit e574c5a

Please sign in to comment.