Can i reference a operator subscription file in my pipelinerun? #1517
Unanswered
MrMrAnderson
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Pipelines as Code doesn't manage any other yaml than Tekton resources, you can have a small task with kubectl in your Pipeline that will apply the yaml on cluster, but you will need to have the rights for it from your serviceaccount. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, it's me again the pipeline noob, anyways I have a question regarding the parameters attribute if I can reference another .yaml file that contains an operator subscription options and send it as a parameter directly.
Example
Folder Structure:
-- pipelinerun-create.yaml
pipelinerun-create.yaml:
params:
- name: operator
description: Specify the operator to be installed in the cluster.
value: ../sub.yaml
sub.yaml:
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: openshift-pipelines-operator
namespace: openshift-operators
spec:
channel: latest
name: openshift-pipelines-operator-rh
source: redhat-operators
sourceNamespace: openshift-marketplace
If you need further info feel free to comment on this and I will try to be more precise.
Beta Was this translation helpful? Give feedback.
All reactions