Fix olm
This commit is contained in:
16
core/olm/index.rhai
Normal file
16
core/olm/index.rhai
Normal file
@@ -0,0 +1,16 @@
|
||||
const VERSION="0.27.0";
|
||||
const SRC=src;
|
||||
const DEST=dest;
|
||||
const DOIT=config.apply;
|
||||
const sourcesDir=`https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v${VERSION}`;
|
||||
const sources=[
|
||||
"olm.yaml"
|
||||
];
|
||||
fn pre_pack() {
|
||||
for file in global::sources {
|
||||
shell(`curl -sL ${global::sourcesDir}/${file} > ${global::SRC}/${file}`);
|
||||
}
|
||||
}
|
||||
fn post_pack() {
|
||||
shell(`rm -f "${global::DEST}/operators.coreos.com_v1_OperatorGroup_global-operators.yaml" "${global::DEST}"/apiextensions*.yaml "${global::DEST}"/v1_Namespace*.yaml "${global::DEST}"/batch_v1_*.yaml`);
|
||||
}
|
||||
@@ -45,6 +45,11 @@ options:
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
operators_namespace:
|
||||
default: vynil-operators
|
||||
examples:
|
||||
- vynil-operators
|
||||
type: string
|
||||
dependencies:
|
||||
- dist: null
|
||||
category: crd
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
apiVersion: operators.coreos.com/v1
|
||||
kind: OperatorGroup
|
||||
metadata:
|
||||
name: global-operators
|
||||
namespace: operators
|
||||
17
core/olm/operators.tf
Normal file
17
core/olm/operators.tf
Normal file
@@ -0,0 +1,17 @@
|
||||
resource "kubernetes_namespace_v1" "operator_ns" {
|
||||
metadata {
|
||||
labels = local.common-labels
|
||||
name = var.operators_namespace
|
||||
}
|
||||
}
|
||||
resource "kubectl_manifest" "operator_group" {
|
||||
depends_on = [kubernetes_namespace_v1.operator_ns]
|
||||
yaml_body = <<-EOF
|
||||
apiVersion: operators.coreos.com/v1
|
||||
kind: OperatorGroup
|
||||
metadata:
|
||||
name: global-operators
|
||||
namespace: ${var.operators_namespace}
|
||||
labels: ${jsonencode(local.common-labels)}
|
||||
EOF
|
||||
}
|
||||
@@ -6,6 +6,153 @@ metadata:
|
||||
name: addons
|
||||
description: addons meta-component installing all the addons components
|
||||
options:
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
olm:
|
||||
default:
|
||||
enable: false
|
||||
namespace: olm
|
||||
examples:
|
||||
- enable: false
|
||||
namespace: olm
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
namespace:
|
||||
default: olm
|
||||
type: string
|
||||
type: object
|
||||
flux:
|
||||
default:
|
||||
enable: false
|
||||
namespace: flux
|
||||
examples:
|
||||
- enable: false
|
||||
namespace: flux
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
namespace:
|
||||
default: flux
|
||||
type: string
|
||||
type: object
|
||||
tools:
|
||||
default:
|
||||
keda:
|
||||
enable: false
|
||||
namespace: vynil-addons
|
||||
node_problem_detector:
|
||||
enable: false
|
||||
examples:
|
||||
- keda:
|
||||
enable: false
|
||||
namespace: vynil-addons
|
||||
node_problem_detector:
|
||||
enable: false
|
||||
properties:
|
||||
keda:
|
||||
default:
|
||||
enable: false
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
namespace:
|
||||
default: vynil-addons
|
||||
type: string
|
||||
node_problem_detector:
|
||||
default:
|
||||
enable: false
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
type: object
|
||||
monitor:
|
||||
default:
|
||||
jaeger:
|
||||
enable: false
|
||||
namespace: vynil-monitor
|
||||
opentelemetry:
|
||||
enable: false
|
||||
prometheus:
|
||||
enable: true
|
||||
examples:
|
||||
- jaeger:
|
||||
enable: false
|
||||
namespace: vynil-monitor
|
||||
opentelemetry:
|
||||
enable: false
|
||||
prometheus:
|
||||
enable: true
|
||||
properties:
|
||||
jaeger:
|
||||
default:
|
||||
enable: false
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
namespace:
|
||||
default: vynil-monitor
|
||||
type: string
|
||||
opentelemetry:
|
||||
default:
|
||||
enable: false
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
prometheus:
|
||||
default:
|
||||
enable: true
|
||||
properties:
|
||||
enable:
|
||||
default: true
|
||||
type: boolean
|
||||
type: object
|
||||
type: object
|
||||
tekton:
|
||||
default:
|
||||
namespace: tekton
|
||||
tekton_pipelines:
|
||||
enable: false
|
||||
tekton_triggers:
|
||||
enable: false
|
||||
examples:
|
||||
- namespace: tekton
|
||||
tekton_pipelines:
|
||||
enable: false
|
||||
tekton_triggers:
|
||||
enable: false
|
||||
properties:
|
||||
namespace:
|
||||
default: tekton
|
||||
type: string
|
||||
tekton_pipelines:
|
||||
default:
|
||||
enable: false
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
tekton_triggers:
|
||||
default:
|
||||
enable: false
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
type: object
|
||||
>>>>>>> e51ed83 (Disable olm and flux by default)
|
||||
crds:
|
||||
default:
|
||||
argo-cd:
|
||||
@@ -215,6 +362,7 @@ options:
|
||||
type: boolean
|
||||
type: object
|
||||
type: object
|
||||
<<<<<<< HEAD
|
||||
fission:
|
||||
default:
|
||||
enable: false
|
||||
@@ -418,6 +566,8 @@ options:
|
||||
default: vynil-virt
|
||||
type: string
|
||||
type: object
|
||||
=======
|
||||
>>>>>>> e51ed83 (Disable olm and flux by default)
|
||||
dependencies: []
|
||||
providers:
|
||||
kubernetes: true
|
||||
|
||||
Reference in New Issue
Block a user