generated from crossplane/function-template-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: labeler logic * chore: remove example input * fix: ineffective assignment * chore: pin crossplane version * ci: push package to ghcr * fix: ci login * Revert "fix: ci login" This reverts commit 79f000c. * fix: use GITHUB_TOKEN * fix: correct user for login * fix: error handling * fix: get namespace from claimref * feat: configurable label * fix: create fluentd * fix: unit tests * chore: remove commented code * address review
- Loading branch information
1 parent
23f7cab
commit 042a302
Showing
12 changed files
with
290 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ | |
|
||
# Go workspace file | ||
go.work | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
apiVersion: apiextensions.crossplane.io/v1 | ||
kind: Composition | ||
metadata: | ||
name: function-template-go | ||
name: logging-composition | ||
spec: | ||
compositeTypeRef: | ||
apiVersion: example.crossplane.io/v1 | ||
kind: XR | ||
mode: Pipeline | ||
resources: | ||
- name: Logging | ||
base: | ||
apiVersion: logging.banzaicloud.io/v1beta1 | ||
kind: Logging | ||
spec: | ||
controlNamespace: "" | ||
fluentd: | ||
disablePvc: true | ||
compositeTypeRef: | ||
apiVersion: caas.telekom.de/v1alpha1 | ||
kind: XLogging | ||
pipeline: | ||
- step: run-the-template | ||
- step: get-labels | ||
functionRef: | ||
name: function-template-go | ||
input: | ||
apiVersion: template.fn.crossplane.io/v1beta1 | ||
kind: Input | ||
example: "Hello world" | ||
name: logging-labeler | ||
input: {} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Replace this with your XR! | ||
apiVersion: example.crossplane.io/v1 | ||
kind: XR | ||
apiVersion: caas.telekom.de/v1alpha1 | ||
kind: Logging | ||
metadata: | ||
name: example-xr | ||
namespace: microservices | ||
spec: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.