Created
December 10, 2024 12:56
-
-
Save thetechnick/4dad12a7d955bb35a6a167714a59fdae to your computer and use it in GitHub Desktop.
Package Operator configmap passthrough.
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: example | |
annotations: | |
package-operator.run/phase: deploy | |
data: {{.config.configMapStuff | toJson}} |
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
apiVersion: manifests.package-operator.run/v1alpha1 | |
kind: PackageManifest | |
metadata: | |
creationTimestamp: null | |
name: example | |
spec: | |
phases: | |
- name: deploy | |
config: | |
openAPIV3Schema: | |
properties: | |
configMapStuff: | |
x-kubernetes-preserve-unknown-fields: true | |
type: object | |
required: | |
- configMapStuff | |
type: object | |
filter: {} | |
scopes: | |
- Namespaced | |
- Cluster | |
test: | |
template: | |
- name: namespace-scope | |
context: | |
config: | |
configMapStuff: | |
prop1: val1 | |
prop2: val2 | |
prop3: val3 | |
package: | |
metadata: | |
name: test | |
namespace: test-ns | |
environment: | |
kubernetes: | |
version: v1.27.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment