Giter VIP home page Giter VIP logo

pipelines-vote-api's Introduction

tekton-pipelines-demo

pipelines-vote-api's People

Contributors

chmouel avatar khrm avatar nikhil-thomas avatar openshift-ci[bot] avatar openshift-merge-robot avatar piyush-garg avatar savitaashture avatar snehlatamohite avatar sthaha avatar vdemeester avatar yselkowitz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pipelines-vote-api's Issues

tkn pipeline fails mismatch pipelines-vote-api with vote-api

The Pipeline run fines untill apply-manifests then fails on update deployment because :

  1. Apply-Manifests output in the ARO console shows :
STEP-APPLY

Applying manifests in k8s directory
deployment.apps/pipelines-vote-api created
service/pipelines-vote-api created
  1. Whereas update-deploment shows
STEP-PATCH

Error from server (NotFound): deployments.apps "vote-api" not found
```sh

This looks like a regression as before , the pipeline would have created the resources below (**without the pipelines- prefix** :
deployment.apps/vote-api created
service/vote-api created

Steps to reproduce :

oc create -f https://raw.githubusercontent.com/openshift/pipelines-tutorial/master/01_pipeline/01_apply_manifest_task.yaml
oc create -f https://raw.githubusercontent.com/openshift/pipelines-tutorial/master/01_pipeline/02_update_deployment_task.yaml
oc create -f https://raw.githubusercontent.com/openshift/pipelines-tutorial/master/01_pipeline/03_persistent_volume_claim.yaml
oc apply -f  https://raw.githubusercontent.com/openshift/pipelines-tutorial/master/01_pipeline/04_pipeline.yaml

# Lets start a pipeline to build and deploy backend application using tkn:
tkn pipeline start build-and-deploy \
    -w name=shared-workspace,volumeClaimTemplateFile=https://raw.githubusercontent.com/openshift/pipelines-tutorial/master/01_pipeline/03_persistent_volume_claim.yaml \
    -p deployment-name=vote-api \
    -p git-url=https://github.com/openshift/pipelines-vote-api/ \
    -p git-revision=master \
    -p IMAGE=image-registry.openshift-image-registry.svc:5000/$projectname/vote-api

# Similarly, start a pipeline to build and deploy frontend application:
tkn pipeline start build-and-deploy \
    -w name=shared-workspace,volumeClaimTemplateFile=https://raw.githubusercontent.com/openshift/pipelines-tutorial/master/01_pipeline/03_persistent_volume_claim.yaml \
    -p deployment-name=vote-ui \
    -p git-url=https://github.com/openshift/pipelines-vote-ui \
    -p git-revision=master \
    -p IMAGE=image-registry.openshift-image-registry.svc:5000/$projectname/vote-ui

tkn pipeline list
tkn pipelinerun ls
tkn pipeline logs -f

#  get the route of the application by executing the following command and access the application
oc get route vote-ui --template='http://{{.spec.host}}'

Tekton CLI on WSL2 ( on Windows 11) :

tkn version
Client version: 0.22.0
Pipeline version: v0.24.3
Triggers version: v0.14.2

Red Hat OpenShift Pipelines1.5.2 provided by Red Hat installed on Azure RedHat OpenShift 4.8.18

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.