Skip to content

Commit

Permalink
feat!: Decommission Tekton Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurVardevanyan committed Jan 21, 2024
1 parent 2608b2b commit 49eaaed
Show file tree
Hide file tree
Showing 24 changed files with 16 additions and 181 deletions.
2 changes: 1 addition & 1 deletion .tekton/ansible-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
event == "pull_request" && target_branch == "production"
pipelinesascode.tekton.dev/target-namespace: "homelab"
pipelinesascode.tekton.dev/task: "[tekton/base/ansible-task.yaml]"
pipelinesascode.tekton.dev/task-1: "https://tekton-hub-api-openshift-pipelines.apps.okd.arthurvardevanyan.com/v1/resource/homelab/task/git-clone/0.9.1/raw"
pipelinesascode.tekton.dev/task-1: "https://raw.githubusercontent.com/ArthurVardevanyan/HomeLab/production/tekton/tasks/git-clone/0.9.1/git-clone.yaml"
spec:
params:
- name: playbooks
Expand Down
2 changes: 1 addition & 1 deletion .tekton/ansible.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
event == "push" && (target_branch == "refs/heads/production" || target_branch == "production")
pipelinesascode.tekton.dev/target-namespace: "homelab"
pipelinesascode.tekton.dev/task: "[tekton/base/ansible-task.yaml]"
pipelinesascode.tekton.dev/task-1: "https://tekton-hub-api-openshift-pipelines.apps.okd.arthurvardevanyan.com/v1/resource/homelab/task/git-clone/0.9.1/raw"
pipelinesascode.tekton.dev/task-1: "https://raw.githubusercontent.com/ArthurVardevanyan/HomeLab/production/tekton/tasks/git-clone/0.9.1/git-clone.yaml"
spec:
params:
- name: playbooks
Expand Down
4 changes: 2 additions & 2 deletions .tekton/apache-php-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ metadata:
target_branch == "production" && "containers/apache-php/containerfile".pathChanged()
# event == "pull_request" &&
pipelinesascode.tekton.dev/target-namespace: "homelab"
pipelinesascode.tekton.dev/task: "https://tekton-hub-api-openshift-pipelines.apps.okd.arthurvardevanyan.com/v1/resource/homelab/task/git-clone/0.9.1/raw"
pipelinesascode.tekton.dev/task-1: "https://tekton-hub-api-openshift-pipelines.apps.okd.arthurvardevanyan.com/v1/resource/homelab/task/buildah/0.5.1/raw"
pipelinesascode.tekton.dev/task: "https://raw.githubusercontent.com/ArthurVardevanyan/HomeLab/production/tekton/tasks/git-clone/0.9.1/git-clone.yaml"
pipelinesascode.tekton.dev/task-1: "https://raw.githubusercontent.com/ArthurVardevanyan/HomeLab/production/tekton/tasks/buildah/0.5.1/buildah.yaml"
spec:
params:
- name: git-url
Expand Down
2 changes: 1 addition & 1 deletion .tekton/overlay-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
# event == "pull_request" &&
pipelinesascode.tekton.dev/target-namespace: "homelab"
pipelinesascode.tekton.dev/task: "[tekton/base/overlay-test.yaml]"
pipelinesascode.tekton.dev/task-1: "https://tekton-hub-api-openshift-pipelines.apps.okd.arthurvardevanyan.com/v1/resource/homelab/task/git-clone/0.9.1/raw"
pipelinesascode.tekton.dev/task-1: "https://raw.githubusercontent.com/ArthurVardevanyan/HomeLab/production/tekton/tasks/git-clone/0.9.1/git-clone.yaml"
spec:
params:
- name: playbooks
Expand Down
2 changes: 1 addition & 1 deletion .tekton/terraform-apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
event == "push" && (target_branch == "refs/heads/production" || target_branch == "production") && "terraform/***".pathChanged()
pipelinesascode.tekton.dev/target-namespace: "homelab"
pipelinesascode.tekton.dev/task: "[tekton/base/terraform-task.yaml]"
pipelinesascode.tekton.dev/task-1: "https://tekton-hub-api-openshift-pipelines.apps.okd.arthurvardevanyan.com/v1/resource/homelab/task/git-clone/0.9.1/raw"
pipelinesascode.tekton.dev/task-1: "https://raw.githubusercontent.com/ArthurVardevanyan/HomeLab/production/tekton/tasks/git-clone/0.9.1/git-clone.yaml"
spec:
params:
- name: git-commit
Expand Down
2 changes: 1 addition & 1 deletion .tekton/terraform-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
event == "pull_request" && target_branch == "production" && "terraform/***".pathChanged()
pipelinesascode.tekton.dev/target-namespace: "homelab"
pipelinesascode.tekton.dev/task: "[tekton/base/terraform-task.yaml]"
pipelinesascode.tekton.dev/task-1: "https://tekton-hub-api-openshift-pipelines.apps.okd.arthurvardevanyan.com/v1/resource/homelab/task/git-clone/0.9.1/raw"
pipelinesascode.tekton.dev/task-1: "https://raw.githubusercontent.com/ArthurVardevanyan/HomeLab/production/tekton/tasks/git-clone/0.9.1/git-clone.yaml"
spec:
params:
- name: git-commit
Expand Down
4 changes: 2 additions & 2 deletions .tekton/toolbox-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ metadata:
target_branch == "production" && "containers/toolbox/containerfile".pathChanged()
# event == "pull_request" &&
pipelinesascode.tekton.dev/target-namespace: "homelab"
pipelinesascode.tekton.dev/task: "https://tekton-hub-api-openshift-pipelines.apps.okd.arthurvardevanyan.com/v1/resource/homelab/task/git-clone/0.9.1/raw"
pipelinesascode.tekton.dev/task-1: "https://tekton-hub-api-openshift-pipelines.apps.okd.arthurvardevanyan.com/v1/resource/homelab/task/buildah/0.5.1/raw"
pipelinesascode.tekton.dev/task: "https://raw.githubusercontent.com/ArthurVardevanyan/HomeLab/production/tekton/tasks/git-clone/0.9.1/git-clone.yaml"
pipelinesascode.tekton.dev/task-1: "https://raw.githubusercontent.com/ArthurVardevanyan/HomeLab/production/tekton/tasks/buildah/0.5.1/buildah.yaml"
spec:
params:
- name: git-url
Expand Down
4 changes: 2 additions & 2 deletions .tekton/udi-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ metadata:
target_branch == "production" && "containers/udi/containerfile".pathChanged()
# event == "pull_request" &&
pipelinesascode.tekton.dev/target-namespace: "homelab"
pipelinesascode.tekton.dev/task: "https://tekton-hub-api-openshift-pipelines.apps.okd.arthurvardevanyan.com/v1/resource/homelab/task/git-clone/0.9.1/raw"
pipelinesascode.tekton.dev/task-1: "https://tekton-hub-api-openshift-pipelines.apps.okd.arthurvardevanyan.com/v1/resource/homelab/task/buildah/0.5.1/raw"
pipelinesascode.tekton.dev/task: "https://raw.githubusercontent.com/ArthurVardevanyan/HomeLab/production/tekton/tasks/git-clone/0.9.1/git-clone.yaml"
pipelinesascode.tekton.dev/task-1: "https://raw.githubusercontent.com/ArthurVardevanyan/HomeLab/production/tekton/tasks/buildah/0.5.1/buildah.yaml"
spec:
params:
- name: git-url
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resources:
- ../../base
- ../../components/operator
- ../../components/cloudflare
- ../../components/network-policy/okd
patches:
- target:
kind: Subscription
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/tekton/base/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
readonly: true
hub:
options:
disabled: false
disabled: true
params:
- name: createRbacResource
value: "true"
Expand Down Expand Up @@ -99,7 +99,7 @@ spec:
secret-auto-create: "true"
secret-github-app-token-scoped: "true"
scc:
default: pipelines-scc
default: pipelines-scc #restricted-v2
profile: all
pruner:
disabled: true
Expand Down
27 changes: 0 additions & 27 deletions kubernetes/tekton/components/hub/hub.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions kubernetes/tekton/components/hub/kustomization.yaml

This file was deleted.

110 changes: 0 additions & 110 deletions kubernetes/tekton/components/hub/postgres.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions kubernetes/tekton/components/hub/secret.yaml

This file was deleted.

1 change: 0 additions & 1 deletion kubernetes/tekton/overlays/operator/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ resources:
components:
- ../../components/okd
- ../../components/gosmee
- ../../components/hub
3 changes: 1 addition & 2 deletions main.bash
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ install_okd() {

export PREFIX=""
export TF_VAR_master_count=3
export TF_VAR_worker_count=3 #4
export TF_VAR_worker_count=4

echo -e "\n\n${BLUE}Get URL:${NC}"
URL=${URL:-sandbox.arthurvardevanyan.com}
Expand Down Expand Up @@ -1032,7 +1032,6 @@ install_addons_okd() {

kubectl apply -f "${HOMELAB}"/okd/okd-configuration/base/mcp.yaml
yq '.spec.config.systemd.units[1].enabled=false' "${HOMELAB}"/okd/okd-configuration/base/longhorn-mc.yaml | kubectl apply -f -
argocd-vault-plugin generate "${HOMELAB}"/okd/okd-configuration/base/image-source-policy.yaml | kubectl apply -f -

sleep 15s
while [ "$(kubectl get mcp infra -o yaml | yq '.status.conditions[] | select(.type == "Updating") | .status')" == "True" ]; do
Expand Down
4 changes: 0 additions & 4 deletions okd/okd-configuration/base/image-mirror-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,6 @@ spec:
- registry.arthurvardevanyan.com/openshift-pipelines
source: ghcr.io/openshift-pipelines
mirrorSourcePolicy: NeverContactSource
- mirrors:
- registry.arthurvardevanyan.com/tekton-hub
source: quay.io/tekton-hub
mirrorSourcePolicy: NeverContactSource
- mirrors:
- registry.arthurvardevanyan.com/knative/operator
source: gcr.io/knative-releases/knative.dev/operator
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion terraform/sandbox/workers/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ variable "worker" {
variable "worker_count" {
type = string
description = "The number of worker nodes."
default = "4"
default = "5"
}

variable "pool" {
Expand Down

0 comments on commit 49eaaed

Please sign in to comment.