Skip to content

Commit 93eba0c

Browse files
committed
remove merge action and outputs
Signed-off-by: dejanualex <dejanualexandru@gmail.com>
1 parent 741cfda commit 93eba0c

File tree

1 file changed

+22
-14
lines changed
  • docs/content/docs/integrations

1 file changed

+22
-14
lines changed

docs/content/docs/integrations/aks.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -106,26 +106,28 @@ parameters:
106106
- merge
107107
```
108108
109-
* Bellow you can find a custom action called `merge` that it's used to autheticate in Azure and sets the desired subscription (that contains the resource group and AKS cluster) and uses [outputs](https://porter.sh/wiring/#outputs) to save the *kubeconfig* file:
109+
* An example of the `install` action that integrates with AKS and utilizes [Kubernetes mixin](https://porter.sh/design/kubernetes-mixin/) to deploy a pod to the cluster, based on the `cnab/app/nginx` manifest:
110110

111111
```bash
112-
merge:
112+
install:
113113
- az:
114-
description: "Azure login"
114+
description: "Azure CLI login"
115115
arguments:
116116
- login
117117
flags:
118118
service-principal:
119119
username: ${ bundle.credentials.azure_client_id }
120120
password: ${ bundle.credentials.azure_client_secret }
121121
tenant: ${ bundle.credentials.azure_tenant_id }
122+
122123
- az:
123124
description: "Azure set subscription Id"
124125
arguments:
125126
- "account"
126127
- "set"
127128
flags:
128129
subscription: ${ bundle.credentials.azure_subscription_id }
130+
129131
- az:
130132
description: "Get access creds for AKS"
131133
arguments:
@@ -134,17 +136,23 @@ merge:
134136
flags:
135137
resource-group: ${ bundle.parameters.rg_name }
136138
name: ${ bundle.parameters.aks_name }
137-
context: akscluster
138-
file: "newconf"
139-
suppress-output: false
139+
140+
- kubernetes:
141+
description: "Deploy nginx pod"
142+
manifests:
143+
- cnab/app/nginx
144+
wait: true
145+
surpress-output: false
140146
outputs:
141-
- name: kubeconfig
142-
path: newconf
143-
144-
outputs:
145-
- name: newconf
146-
type: file
147-
path: newconf
147+
- name: pod_name
148+
resourceType: "pod"
149+
resourceName: "basic-nginx"
150+
namespace: "default"
151+
jsonPath: "metadata.name"
148152
```
149153

150-
* Write the *kubeconfig* file to disk: `porter installations output show newconf > aks_config`, afterwards you can use it as it is: `kubectl --kubeconfig=aks_config config get-contexts` or merge it in the existing `~/.kube/config`.
154+
* Bundle usage:
155+
156+
```bash
157+
porter install -c akscreds --param rg_name=<RESOURCE_GROUP_NAME> --param aks_name=<AKS_NAME>
158+
```

0 commit comments

Comments
 (0)