Skip to content

Instantly share code, notes, and snippets.

@thetechnick
Created December 10, 2024 12:56
Show Gist options
  • Save thetechnick/4dad12a7d955bb35a6a167714a59fdae to your computer and use it in GitHub Desktop.
Save thetechnick/4dad12a7d955bb35a6a167714a59fdae to your computer and use it in GitHub Desktop.
Package Operator configmap passthrough.
apiVersion: v1
kind: ConfigMap
metadata:
name: example
annotations:
package-operator.run/phase: deploy
data: {{.config.configMapStuff | toJson}}
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