This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
porter.yaml
71 lines (65 loc) · 2.17 KB
/
porter.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# This is the configuration for Porter
# See https://porter.sh/author-bundles for documentation on how to configure your bundle.
name: azure-service-operator
version: 0.0.2
description: "A Porter bundle that install ASO (Azure service Operator)."
registry: aksmcrimagescommon.azurecr.io/public/aks/porter/
# If you want to customize the Dockerfile in use, uncomment the line below and update the referenced file.
# See https://porter.sh/custom-dockerfile/
#dockerfile: Dockerfile.tmpl
mixins:
- exec
- kubernetes:
clientVersion: v1.20.13
install:
- kubernetes:
description: "Install operator-lifecycle-manager CRD."
manifests:
- "https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.18.3/crds.yaml"
wait: true
- kubernetes:
description: "Install operator-lifecycle-manager (olm)."
manifests:
- "https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.18.3/olm.yaml"
wait: true
- kubernetes:
description: "Install operator resource and namespaces."
manifests:
- "https://operatorhub.io/install/azure-service-operator.yaml"
wait: true
- kubernetes:
description: "Create azureoperatorsettings within the operators Namespace."
manifests:
- /cnab/app/manifests/azureoperatorsettings.yaml
wait: true
- exec:
description: "Azure Service Operator pod running in your cluster."
command: bash
flags:
c: "'kubectl get pods -n operators'"
upgrade:
- exec:
description: "Upgrade"
command: echo
arguments:
- "Nothing to upgrade."
uninstall:
- exec:
description: "Uninstall"
command: echo
arguments:
- "Nothing to uninstall."
# Define Azure Servide Operator (ASO) related credentials
# See https://porter.sh/author-bundles/#credentials
credentials:
- name: SUBSCRIPTION_ID
type: string
env: PORTER_AZURE_SUBSCRIPTION_ID
- name: CLIENT_ID
env: PORTER_AZURE_CLIENT_ID
- name: TENANT_ID
env: PORTER_AZURE_TENANT_ID
- name: CLIENT_SECRET
env: PORTER_AZURE_CLIENT_SECRET
- name: kubeconfig
path: /root/.kube/config