Code Monkey home page Code Monkey logo

oc-installer's People

Contributors

dependabot[bot] avatar devenes avatar divyansh42 avatar lstocchi avatar mohitsuman avatar stevemar avatar tetchel avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

oc-installer's Issues

oc-installer does not understand semver, can't install 3.11.375-1

Version

redhat-actions/oc-installer@v1

Describe the bug

oc-installer does not understand oc_version such as 3.11.375-1 (it will strip anything after the bugfix number, in this case, it will change the input to 3.11.375) - works great with 3.11.374 though.

Steps to reproduce, workflow links, screenshots

With such configuration:

      - name: Install oc
        uses: redhat-actions/oc-installer@v1
        with:
          oc_version: '3.11.375-1'

oc-installer will fail to install oc :

Run redhat-actions/oc-installer@v1
  with:
    oc_version: 3.11.375-1

Installing oc version 3.11.375
Found oc version 3.11.375 at https://mirror.openshift.com/pub/openshift-v3/clients/3.11.375/linux/oc.tar.gz
Downloading oc from https://mirror.openshift.com/pub/openshift-v3/clients/3.11.375/linux/oc.tar.gz ...
Error: Error: Unexpected HTTP response: 404

Although 3.11.375-1 exists: https://mirror.openshift.com/pub/openshift-v3/clients/3.11.375-1/linux/

[BUG] Attempting to use oc v4.7, which is not available

Version

redhat-actions/oc-installer@v1

Describe the bug

Run redhat-actions/oc-installer@v1
  with:
    oc_version: 4.7.0
Installing oc version 4.7
Found oc version 4.7 at https://mirror.openshift.com/pub/openshift-v4/clients/oc/4.7/linux/oc.tar.gz
Downloading oc from https://mirror.openshift.com/pub/openshift-v4/clients/oc/4.7/linux/oc.tar.gz ...
Error: Error: Unexpected HTTP response: 404-->

Is there a reason why this Github action is pointed at this particular location of oc binaries? At https://mirror.openshift.com/pub/openshift-v4/clients/oc/$__DEPRECATED_LOCATION__PLEASE_READ__.txt it indicates this is a deprecated location and to use https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/

[BUG] Mirror binary paths need to be updated for automation

Version

redhat-actions/oc-installer@v1

Using the following "with" block:
with:
oc_version: "4.6"

Describe the bug

When the oc installer action is fetching the mirror path for the binary, it's still using the clients/oc/4.6/linux/ subpath. Upon fetching the binary this results in a failure (403).

The mirror has been changed to use a x86_64/clients/ocp/ subpath now according to:
https://mirror.openshift.com/pub/openshift-v4/clients/oc/4.6/linux/$__DEPRECATED_LOCATION__PLEASE_READ__.txt

Steps to reproduce, workflow links, screenshots

Run the action, the get should produce a 403 since the url is of the form https://mirror.openshift.com/pub/openshift-v4/clients/oc/4.6/linux/oc.tar.gz

oc-installer-error

Better fuzzy semver support

We should allow users to input fuzzy versions.

IE 3 should result in the the latest oc 3.x.y.
3.11 should result in the latest 3.11.x.

however this would require some effort to lookup the available versions on the download site and filter through them.

Doesn't work on Windows

image

C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('D:\a\_temp\59612cf8-812b-4e5a-86e1-765621d77d35', 'D:\a\_temp\968cff35-42af-41bf-8da4-7107b251e2db')"
Error: The `add-path` command is deprecated and will be disabled on November 16th. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
Error: Unable to process command '::add-path::' successfully.
Error: Value cannot be null. (Parameter 'path')

Unable to resolve action `redhat-actions/oc-installer@v1`, unable to find version `v1`

Since this morning we receive the following error and our builds are no longer triggered:

Unable to resolve action redhat-actions/oc-installer@v1, unable to find version v1

This is our GitHub workflow:

name: Continuous deployment

on:
  workflow_dispatch:
  repository_dispatch:
  push:
    branches: [master]
  pull_request:
    branches: [master]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      # Run OpenShift build process
      - name: Install oc
        uses: redhat-actions/oc-installer@v1
        with:
          oc_version: '3.11.230'         
      - name: Execute oc commands
        run: |
          oc login --insecure-skip-tls-verify --token ${{ secrets.OPENSHIFT_API_TOKEN }} ${{ secrets.OPENSHIFT_SERVER_URL }}
          oc project hip
          oc start-build backend-graphql-server --follow

Is there something we need to change?

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.