civo / kubernetes-marketplace

Marketplace of Kubernetes applications available for quick and easy installation in to Civo Kubernetes clusters
https://www.civo.com/
MIT License
216 stars 182 forks source link

feat: Add KubeRocketCI platform to the CI/CD Stack #790

Open SergK opened 2 weeks ago

SergK commented 2 weeks ago

We've changed the brand from the EPAM Delivery Platform (EDP) to the KubeRocketCI. And this is the first step on our migration path. The EDP will be removed in the next PRs

Thank you for wanting to submit a Pull Request to the Civo Kubernetes Marketplace repository!

If your pull request is to submit a new application to the marketplace, please answer the following questions:

If your pull request concerns an existing Marketplace application, please make sure you have:

SergK commented 3 days ago

Hello, @kunal-kushwaha @civo-claire, any chance for review and merge? Thank you

SergK commented 2 days ago

@kunal-kushwaha here is how I checked:

Create Job:

apiVersion: batch/v1
kind: Job
metadata:
  name: install-kuberocketci
  namespace: default
spec:
  parallelism: 1
  completions: 1
  backoffLimit: 0
  manualSelector: false
  template:
    spec:
      containers:
        - name: install-kuberocketci-demo
          image: gcr.io/consummate-yew-302509/marketplace-installer:latest
          args:
            - install
            - kuberocketci
            - '-d'
            - https://github.com/SergK/kubernetes-marketplace.git
          env:
            - name: GITPROVIDER
              value: github
            - name: CLUSTER_ID
              value: 11d73884-0482-4364-9cfa-b6a74a5e7562
          resources: {}
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
          imagePullPolicy: Always
      restartPolicy: Never
      terminationGracePeriodSeconds: 30
      dnsPolicy: ClusterFirst
      serviceAccountName: default
      serviceAccount: default
      securityContext: {}
      schedulerName: default-scheduler
  ttlSecondsAfterFinished: 172800
  completionMode: NonIndexed
  suspend: false
  podReplacementPolicy: TerminatingOrFailed

Check the results of the installer job (I've use repo from pull request):

{"time":"2024-07-02T13:50:57.225655312Z","level":"INFO","msg":"Cloneing git repo https://github.com/SergK/kubernetes-marketplace.git\n"}
{"time":"2024-07-02T13:50:57.225936479Z","level":"INFO","msg":"Creating temp dir to clone git repo"}
{"time":"2024-07-02T13:50:57.226185834Z","level":"INFO","msg":"Created temp dir: /tmp/prefix1235398467"}
{"time":"2024-07-02T13:50:58.527034416Z","level":"INFO","msg":"Validating that app exists: kuberocketci\n"}
{"time":"2024-07-02T13:50:58.527106429Z","level":"INFO","msg":"Running App PreInstall"}
{"time":"2024-07-02T13:50:58.52714973Z","level":"INFO","msg":"Cheking the pre_install.sh is preset or not"}
{"time":"2024-07-02T13:50:58.527198971Z","level":"INFO","msg":"No pre_install.sh found fo kuberocketci"}
{"time":"2024-07-02T13:50:58.527209019Z","level":"INFO","msg":""}
{"time":"2024-07-02T13:50:58.527216717Z","level":"INFO","msg":"Running App Install"}
{"time":"2024-07-02T13:50:58.528143507Z","level":"INFO","msg":"Cheking the install.sh is preset or not"}
{"time":"2024-07-02T13:50:58.528179717Z","level":"INFO","msg":"Running the install.sh"}
{"time":"2024-07-02T13:50:58.528202975Z","level":"INFO","msg":"Making the shell file executable"}
{"time":"2024-07-02T13:50:58.532646279Z","level":"INFO","msg":"Command output","stdout":""}
{"time":"2024-07-02T13:50:58.532716075Z","level":"ERROR","msg":"Command output","stderr":""}
{"time":"2024-07-02T13:50:58.532728878Z","level":"INFO","msg":"Running the shell file"}
{"time":"2024-07-02T13:50:58.532811143Z","level":"INFO","msg":"Shell file contents","shellFile":"OMIT-HERE=="}
{"time":"2024-07-02T13:51:15.28938529Z","level":"INFO","msg":"Command output","stdout":"\"epamedp\" has been added to your repositories\nHang tight while we grab the latest from your chart repositories...\n...Successfully got an update from the \"epamedp\" chart repository\nUpdate Complete. ⎈Happy Helming!⎈\ndeployment.apps/tekton-pipelines-webhook condition met\nclusterinterceptor.triggers.tekton.dev/cel unchanged\nclusterinterceptor.triggers.tekton.dev/github unchanged\nclusterinterceptor.triggers.tekton.dev/gitlab unchanged\nnamespace/edp created\nNAME: edp\nLAST DEPLOYED: Tue Jul  2 13:51:00 2024\nNAMESPACE: edp\nSTATUS: deployed\nREVISION: 1\nTEST SUITE: None\n"}
{"time":"2024-07-02T13:51:15.289548932Z","level":"ERROR","msg":"Command output","stderr":""}
{"time":"2024-07-02T13:51:15.289617382Z","level":"INFO","msg":"\"epamedp\" has been added to your repositories\nHang tight while we grab the latest from your chart repositories...\n...Successfully got an update from the \"epamedp\" chart repository\nUpdate Complete. ⎈Happy Helming!⎈\ndeployment.apps/tekton-pipelines-webhook condition met\nclusterinterceptor.triggers.tekton.dev/cel unchanged\nclusterinterceptor.triggers.tekton.dev/github unchanged\nclusterinterceptor.triggers.tekton.dev/gitlab unchanged\nnamespace/edp created\nNAME: edp\nLAST DEPLOYED: Tue Jul  2 13:51:00 2024\nNAMESPACE: edp\nSTATUS: deployed\nREVISION: 1\nTEST SUITE: None\n"}
image