Skip to content

Commit

Permalink
Fix feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
azgabur committed Nov 8, 2024
1 parent 53ffb50 commit d4e87de
Show file tree
Hide file tree
Showing 10 changed files with 110 additions and 102 deletions.
2 changes: 1 addition & 1 deletion deploy/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ commonLabels:
deployment: kuadrant-helm-deploy

resources:
- ../tasks/
- ../tasks/deploy
- pipeline.yaml
- pipeline-nightly-update.yaml
8 changes: 4 additions & 4 deletions deploy/pipeline-nightly-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
name: kube-api
type: string
- description: Istio deployment. Only these values 'sail', 'ossm', 'ossm3'
name: istioProvider
name: istio-provider
type: string
default: sail
tasks:
Expand All @@ -24,7 +24,7 @@ spec:
- name: kube-api
value: $(params.kube-api)
- name: testsuite-image
value: quay.io/rhn_support_azgabur/alpine/k8s:1.31.2
value: quay.io/rhn_support_azgabur/alpine/k8s:latest
taskRef:
kind: Task
name: kubectl-login
Expand All @@ -43,8 +43,8 @@ spec:
workspace: shared-workspace
- name: helm-install-nightly
params:
- name: istioProvider
value: $(params.istioProvider)
- name: istio-provider
value: $(params.istio-provider)
runAfter:
- helm-uninstall
taskRef:
Expand Down
14 changes: 7 additions & 7 deletions deploy/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ spec:
name: kube-api
type: string
- description: Kuadrant image url
name: indexImage
name: index-image
type: string
default: quay.io/kuadrant/kuadrant-operator-catalog:v0.11.0
- description: Kuadrant image channel. Can be 'preview' for nightlies and 'stable' for releases
name: channel
type: string
default: stable
- description: Istio deployment. Only these values 'sail', 'ossm', 'ossm3'
name: istioProvider
name: istio-provider
type: string
default: sail
tasks:
Expand All @@ -32,7 +32,7 @@ spec:
- name: kube-api
value: $(params.kube-api)
- name: testsuite-image
value: quay.io/rhn_support_azgabur/alpine/k8s:1.31.2
value: quay.io/rhn_support_azgabur/alpine/k8s:latest
taskRef:
kind: Task
name: kubectl-login
Expand All @@ -51,12 +51,12 @@ spec:
workspace: shared-workspace
- name: helm-install
params:
- name: indexImage
value: $(params.indexImage)
- name: index-image
value: $(params.index-image)
- name: channel
value: $(params.channel)
- name: istioProvider
value: $(params.istioProvider)
- name: istio-provider
value: $(params.istio-provider)
runAfter:
- helm-uninstall
taskRef:
Expand Down
25 changes: 0 additions & 25 deletions tasks/01-clone.yaml

This file was deleted.

25 changes: 25 additions & 0 deletions tasks/deploy/clone-task.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: clone
spec:
steps:
- name: clone
args:
- >-
git clone
-b main
--depth '1'
https://github.com/azgabur/kuadrant-helm-install
$(workspaces.shared-workspace.path)/kuadrant-helm-install
command:
- /bin/bash
- -c
computeResources:
limits:
cpu: 250m
memory: 128Mi
image: quay.io/rhn_support_azgabur/alpine/k8s:latest
imagePullPolicy: IfNotPresent
workspaces:
- name: shared-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ metadata:
spec:
params:
- description: Istio deployment. Only these values 'sail', 'ossm', 'ossm3'
name: istioProvider
name: istio-provider
type: string
default: sail
steps:
- name: helm-install-operators
args:
Expand All @@ -19,7 +18,7 @@ spec:
--values=/mount/values-additional-manifests/additionalManifests.yaml
--set=kuadrant.indexImage=quay.io/kuadrant/kuadrant-operator-catalog:nightly-$(date +%d-%m-%Y)
--set=kuadrant.channel=preview
--set=istio.istioProvider=$(params.istioProvider)
--set=istio.istioProvider=$(params.istio-provider)
--set=tools.enabled=true
--wait
--debug
Expand All @@ -34,7 +33,7 @@ spec:
env:
- name: KUBECONFIG
value: $(workspaces.shared-workspace.path)/kubeconfig
image: quay.io/rhn_support_azgabur/alpine/k8s:1.31.2
image: quay.io/rhn_support_azgabur/alpine/k8s:latest
imagePullPolicy: IfNotPresent
- name: helm-install-instances
args:
Expand All @@ -46,7 +45,7 @@ spec:
--values=/mount/values-additional-manifests/additionalManifests.yaml
--set=kuadrant.indexImage=quay.io/kuadrant/kuadrant-operator-catalog:nightly-$(date +%d-%m-%Y)
--set=kuadrant.channel=preview
--set=istio.istioProvider=$(params.istioProvider)
--set=istio.istioProvider=$(params.istio-provider)
--set=tools.enabled=true
--wait
--debug
Expand All @@ -61,7 +60,7 @@ spec:
env:
- name: KUBECONFIG
value: $(workspaces.shared-workspace.path)/kubeconfig
image: quay.io/rhn_support_azgabur/alpine/k8s:1.31.2
image: quay.io/rhn_support_azgabur/alpine/k8s:latest
imagePullPolicy: IfNotPresent
- name: run-hack-sh
args:
Expand All @@ -71,7 +70,7 @@ spec:
env:
- name: KUBECONFIG
value: $(workspaces.shared-workspace.path)/kubeconfig
image: quay.io/rhn_support_azgabur/alpine/k8s:1.31.2
image: quay.io/rhn_support_azgabur/alpine/k8s:latest
imagePullPolicy: IfNotPresent
volumes:
- secret:
Expand Down
67 changes: 35 additions & 32 deletions tasks/04-helm-install.yaml → tasks/deploy/helm-install-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,63 +5,66 @@ metadata:
spec:
params:
- description: Kuadrant image url
name: indexImage
name: index-image
type: string
- description: Kuadrant image channel. Can be 'preview' for nightlies and 'stable' for releases
name: channel
type: string
- description: Istio deployment. Only these values 'sail', 'ossm', 'ossm3'
name: istioProvider
name: istio-provider
type: string
default: sail
steps:
- name: helm-install-operators
args:
- install
- -n=default
- --values=$(workspaces.shared-workspace.path)/kuadrant-helm-install/values.yaml
- --values=/mount/values-additional-manifests/additionalManifests.yaml
- --set=kuadrant.indexImage=$(params.indexImage)
- --set=kuadrant.channel=$(params.channel)
- --set=istio.istioProvider=$(params.istioProvider)
- --set=tools.enabled=true
- --wait
- --debug
- kuadrant-operators
- $(workspaces.shared-workspace.path)/kuadrant-helm-install/operators/
- >-
helm install
-n=default
--values=$(workspaces.shared-workspace.path)/kuadrant-helm-install/values.yaml
--values=/mount/values-additional-manifests/additionalManifests.yaml
--set=kuadrant.indexImage=$(params.index-image)
--set=kuadrant.channel=$(params.channel)
--set=istio.istioProvider=$(params.istio-provider)
--set=tools.enabled=true
--wait
--debug
kuadrant-operators
$(workspaces.shared-workspace.path)/kuadrant-helm-install/operators/
command:
- helm
- /bin/bash
- -c
volumeMounts:
- mountPath: /mount/values-additional-manifests
name: values-additional-manifests
env:
- name: KUBECONFIG
value: $(workspaces.shared-workspace.path)/kubeconfig
image: quay.io/rhn_support_azgabur/alpine/k8s:1.31.2
image: quay.io/rhn_support_azgabur/alpine/k8s:latest
imagePullPolicy: IfNotPresent
- name: helm-install-instances
args:
- install
- -n=default
- --values=$(workspaces.shared-workspace.path)/kuadrant-helm-install/values.yaml
- --values=/mount/values-additional-manifests/additionalManifests.yaml
- --set=kuadrant.indexImage=$(params.indexImage)
- --set=kuadrant.channel=$(params.channel)
- --set=istio.istioProvider=$(params.istioProvider)
- --set=tools.enabled=true
- --wait
- --debug
- kuadrant-instances
- $(workspaces.shared-workspace.path)/kuadrant-helm-install/instances/
- >-
helm install
-n=default
--values=$(workspaces.shared-workspace.path)/kuadrant-helm-install/values.yaml
--values=/mount/values-additional-manifests/additionalManifests.yaml
--set=kuadrant.indexImage=$(params.index-image)
--set=kuadrant.channel=$(params.channel)
--set=istio.istioProvider=$(params.istio-provider)
--set=tools.enabled=true
--wait
--debug
kuadrant-instances
$(workspaces.shared-workspace.path)/kuadrant-helm-install/instances/
command:
- helm
- /bin/bash
- -c
volumeMounts:
- mountPath: /mount/values-additional-manifests
name: values-additional-manifests
env:
- name: KUBECONFIG
value: $(workspaces.shared-workspace.path)/kubeconfig
image: quay.io/rhn_support_azgabur/alpine/k8s:1.31.2
image: quay.io/rhn_support_azgabur/alpine/k8s:latest
imagePullPolicy: IfNotPresent
- name: run-hack-sh
args:
Expand All @@ -71,7 +74,7 @@ spec:
env:
- name: KUBECONFIG
value: $(workspaces.shared-workspace.path)/kubeconfig
image: quay.io/rhn_support_azgabur/alpine/k8s:1.31.2
image: quay.io/rhn_support_azgabur/alpine/k8s:latest
imagePullPolicy: IfNotPresent
volumes:
- secret:
Expand Down
8 changes: 8 additions & 0 deletions tasks/deploy/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- clone-task.yaml
- uninstall-task.yaml
- helm-install-nightly-task.yaml
- helm-install-task.yaml
46 changes: 24 additions & 22 deletions tasks/02-uninstall.yaml → tasks/deploy/uninstall-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,46 @@ spec:
steps:
- name: uninstall-instances
args:
- uninstall
- -n=default
- --ignore-not-found
- --wait
- kuadrant-instances
- >-
helm uninstall
-n=default
--ignore-not-found
--wait
kuadrant-instances
command:
- helm
- /bin/bash
- -c
env:
- name: KUBECONFIG
value: $(workspaces.shared-workspace.path)/kubeconfig
image: quay.io/rhn_support_azgabur/alpine/k8s:1.31.2
image: quay.io/rhn_support_azgabur/alpine/k8s:latest
imagePullPolicy: IfNotPresent
- name: uninstall-operators
args:
- uninstall
- -n=default
- --ignore-not-found
- --wait
- kuadrant-operators
- >-
helm uninstall
-n=default
--ignore-not-found
--wait
kuadrant-operators
command:
- helm
- /bin/bash
- -c
env:
- name: KUBECONFIG
value: $(workspaces.shared-workspace.path)/kubeconfig
image: quay.io/rhn_support_azgabur/alpine/k8s:1.31.2
image: quay.io/rhn_support_azgabur/alpine/k8s:latest
imagePullPolicy: IfNotPresent
- name: delete-cert-manager-namespace
args:
- delete
- --ignore-not-found
- ns
- cert-manager
- kubectl delete --ignore-not-found ns cert-manager
command:
- kubectl
- /bin/bash
- -c
env:
- name: KUBECONFIG
value: $(workspaces.shared-workspace.path)/kubeconfig
image: quay.io/rhn_support_azgabur/alpine/k8s:1.31.2
image: quay.io/rhn_support_azgabur/alpine/k8s:latest
imagePullPolicy: IfNotPresent
- name: delete-kuadrant-crd
args:
Expand All @@ -54,7 +56,7 @@ spec:
env:
- name: KUBECONFIG
value: $(workspaces.shared-workspace.path)/kubeconfig
image: quay.io/rhn_support_azgabur/alpine/k8s:1.31.2
image: quay.io/rhn_support_azgabur/alpine/k8s:latest
imagePullPolicy: IfNotPresent
- name: delete-istio-crd
args:
Expand All @@ -65,7 +67,7 @@ spec:
env:
- name: KUBECONFIG
value: $(workspaces.shared-workspace.path)/kubeconfig
image: quay.io/rhn_support_azgabur/alpine/k8s:1.31.2
image: quay.io/rhn_support_azgabur/alpine/k8s:latest
imagePullPolicy: IfNotPresent
workspaces:
- name: shared-workspace
4 changes: 0 additions & 4 deletions tasks/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@ resources:
- kubectl-login-task.yaml
- run-tests-task.yaml
- upload-results-task.yaml
- 01-clone.yaml
- 02-uninstall.yaml
- 03-helm-install-nightly.yaml
- 04-helm-install.yaml

0 comments on commit d4e87de

Please sign in to comment.