Skip to content

PackageVariant multiple Injectors issue #528

Answered by kispaljr
uemk asked this question in Q&A
Discussion options

You must be logged in to vote

My understanding is that with the current porch version the best thing you can do is to introduce a unique kind (CRD) for both injection points, instead of using ConfigMaps. So you will end up with something like this in your cluster:

apiVersion: myapp.org/v1alpha1
kind: FirstKindOfParams
metadata:
  name: cm-overrides-1
# ....
---
apiVersion: myapp.org/v1alpha1
kind: SecondKindOfParams
metadata:
  name: cm-overrides-2
# ....
--- 
kind: PackageVariant
# ...
spec:
  injectors:
  - kind: FirstKindOfParams
    name: cm-overrides-1
  - kind: SecondKindOfParams
    name: cm-overrides-2

Having said that, IMHO what you ask for should be possible. We have multiple improvements to PackageVariant

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@uemk
Comment options

Answer selected by uemk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/porch Porch related issues
2 participants