Skip to content

Commit

Permalink
Update instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Solana Huertas committed Jan 15, 2024
1 parent 163cf06 commit b79455f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
21 changes: 6 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,13 @@ in Argo CD API server. This process can be automated by using the
init container that will download, extract and place the file in the
correct location.

The yaml file below is an example of how to define a kustomize patch
to install this UI extension:
Add `containerInit` and the new `extension` volumen to the already existent deployment:

```bash
kubectl get deployment argocd-server -o yaml -n argocd > deployment.yaml
```

```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: argocd-server
spec:
template:
spec:
initContainers:
- name: hello-extension
image: quay.io/argoprojlabs/argocd-extension-installer:v0.0.1
Expand All @@ -39,11 +35,6 @@ spec:
securityContext:
runAsUser: 1000
allowPrivilegeEscalation: false
containers:
- name: argocd-server
volumeMounts:
- name: extensions
mountPath: /tmp/extensions/
volumes:
- name: extensions
emptyDir: {}
Expand All @@ -60,7 +51,7 @@ Install Arco CD in a k8s cluster locally using `kind`
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/v2.10.0-rc1/manifests/install.yaml
kubectl port-forward svc/argocd-server -n argocd 8080:443
kubectl get secret argocd-initial-admin-secret -n argocd -o yaml
kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath='{.data.password}' | base64 -d
```

Expand Down
8 changes: 4 additions & 4 deletions ui/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
};
window?.extensionsAPI?.registerResourceExtension(
component,
"argoproj.io",
"Rollout",
"Rollout",
{ icon: "fa-sharp fa-light fa-bars-progress fa-lg" }
"argoproj.io'/'Application",
"argoproj.io'/'Application",
"Hello World",
{ icon: "fa-solid fa-not-equal" }
);
})(window);

0 comments on commit b79455f

Please sign in to comment.