Commit 67be21fc authored by Yakubov, Sergey's avatar Yakubov, Sergey
Browse files

helm chart for pulsar

parent a34c285f
Loading
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+1 −0
Original line number Diff line number Diff line
.idea
 No newline at end of file

.gitlab-ci.yml

0 → 100644
+40 −0
Original line number Diff line number Diff line
stages:
  - build

variables:
  GIT_STRATEGY: clone
  HELM_IMAGE: code.ornl.gov:4567/rse/images/kubectl:1.23.3-debian-10-r13_helm-3.8.1

# This import is for the func_rse_docker_* functions
before_script:
  - curl https://code.ornl.gov/rse-deployment/rse-sharables/raw/master/rse-bash-modules.sh -O
  - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
  - source rse-bash-modules.sh
  - func_rse_docker_cleanup

after_script:
  - curl https://code.ornl.gov/rse-deployment/rse-sharables/raw/master/rse-bash-modules.sh -O
  - source rse-bash-modules.sh
  - func_rse_docker_cleanup
  - sudo chown -R gitlab-runner .

helm-file-build:
  stage: build
  script:
    - docker login --username=$CI_REGISTRY_USER --password=$CI_REGISTRY_PASSWORD $CI_REGISTRY
    - docker pull ${HELM_IMAGE}
    - >
      docker run --rm --name helm
      -u root:root
      --workdir /mnt
      -v $PWD:/mnt 
      ${HELM_IMAGE} helm package pulsar
    - >
      fname=`ls pulsar*.tgz`
      
      curl --fail --request POST
      --user gitlab-ci-token:$CI_JOB_TOKEN
      --form "chart=@${fname}"
      "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/${CI_COMMIT_REF_NAME}/charts"
  tags:
    - rse-multi-builder

pulsar/.helmignore

0 → 100644
+23 −0
Original line number Diff line number Diff line
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/

pulsar/Chart.yaml

0 → 100644
+24 −0
Original line number Diff line number Diff line
apiVersion: v2
name: pulsar
description: A Pulsar Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.14.13"
+1 −0
Original line number Diff line number Diff line
Pulsar deployed
 No newline at end of file
Loading