{"id":20381527,"url":"https://github.com/snowdrop/configmap-example","last_synced_at":"2025-08-23T14:32:56.394Z","repository":{"id":44548533,"uuid":"79563990","full_name":"snowdrop/configmap-example","owner":"snowdrop","description":"Quickstart to expose a REST Greeting endpoint using Spring Boot where the message is defined as a Kubernetes Config Map property","archived":false,"fork":false,"pushed_at":"2024-04-11T15:38:42.000Z","size":1450,"stargazers_count":5,"open_issues_count":3,"forks_count":20,"subscribers_count":4,"default_branch":"sb-2.7.x","last_synced_at":"2025-06-12T01:07:55.423Z","etag":null,"topics":["booster","example","kubernetes","openshift","rhoar","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snowdrop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-01-20T14:04:05.000Z","updated_at":"2023-08-29T10:45:01.000Z","dependencies_parsed_at":"2023-02-14T07:00:36.849Z","dependency_job_id":"4713b5aa-3aa3-4c87-be1e-b6547593a620","html_url":"https://github.com/snowdrop/configmap-example","commit_stats":null,"previous_names":[],"tags_count":286,"template":false,"template_full_name":null,"purl":"pkg:github/snowdrop/configmap-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdrop%2Fconfigmap-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdrop%2Fconfigmap-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdrop%2Fconfigmap-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdrop%2Fconfigmap-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snowdrop","download_url":"https://codeload.github.com/snowdrop/configmap-example/tar.gz/refs/heads/sb-2.7.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdrop%2Fconfigmap-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271752100,"owners_count":24814745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["booster","example","kubernetes","openshift","rhoar","spring-boot"],"created_at":"2024-11-15T02:14:12.321Z","updated_at":"2025-08-23T14:32:56.365Z","avatar_url":"https://github.com/snowdrop.png","language":"Java","readme":"# ConfigMap Spring Boot Example\n\nhttps://appdev.openshift.io/docs/spring-boot-runtime.html#mission-configmap-spring-boot\n\n## Table of Contents\n\n* [ConfigMap Spring Boot Example](#configmap-spring-boot-example)\n    * [Prerequisites](#prerequisites)\n    * [Deploying application on OpenShift using Dekorate](#deploying-application-on-openshift-using-dekorate)\n    * [Deploying application on OpenShift using Helm](#deploying-application-on-openshift-using-helm)\n    * [Deploying application on Kubernetes using Helm](#deploying-application-on-kubernetes-using-helm)\n    * [Running Tests on OpenShift using Dekorate](#running-tests-on-openshift-using-dekorate)\n    * [Running Tests on OpenShift using S2i from Source](#running-tests-on-openshift-using-s2i-from-source)\n    * [Running Tests on OpenShift using Helm](#running-tests-on-openshift-using-helm)\n    * [Running Tests on Kubernetes with Helm](#running-tests-on-kubernetes-using-helm)\n\n## Prerequisites\n\n- JDK 11+ installed with JAVA_HOME configured appropriately\n\n## Deploying application on OpenShift using Dekorate\n\nBefore deploying the application using Dekorate, make sure you have deployed the configmap first:\n\n```\noc create -f .openshiftio/resource.configmap.yaml\n```\n\nNow, we can deploy the application using Dekorate:\n\n```\nmvn clean verify -Popenshift -Ddekorate.deploy=true\n```\n\n## Deploying application on OpenShift using Helm\n\nFirst, make sure you have installed [the Helm command line](https://helm.sh/docs/intro/install/) and connected/logged to a kubernetes cluster.\n\nThen, you need to install the example by doing:\n\n```\nhelm install configmap ./helm --set app.route.expose=true --set app.s2i.source.repo=https://github.com/snowdrop/configmap-example --set app.s2i.source.ref=\u003cbranch-to-use\u003e\n```\n\n**note**: Replace `\u003cbranch-to-use\u003e` with one branch from `https://github.com/snowdrop/configmap-example/branches/all`.\n\nAnd to uninstall the chart, execute:\n\n```\nhelm uninstall configmap\n```\n\n## Deploying application on Kubernetes using Helm\n\nRequirements:\n- Have installed [the Helm command line](https://helm.sh/docs/intro/install/)\n- Have connected/logged to a kubernetes cluster\n\nYou need to install the example by doing:\n\n```\nhelm install configmap ./helm --set app.ingress.host=\u003cyour k8s domain\u003e\n```\n\nAnd to uninstall the chart, execute:\n\n```\nhelm uninstall configmap\n```\n\n## Running Tests on OpenShift using Dekorate\n\n```\n./run_tests_with_dekorate_in_ocp.sh\n```\n\nAlternatively, tests can be executed against a specific Spring Boot or Dekorate version by passing the\nversion as a `-D\u003cvariable property name\u003e=value` parameter. For instance overriding both the Spring Boot and the Dekorate versions using their corresponding version properties is done the following way:\n\n```bash\n./run_tests_with_dekorate_in_ocp.sh -Dspring-boot.version=2.7.3 -Ddekorate.version=2.11.1\n```\n\n## Running Tests on OpenShift using S2i from Source\n\n```\n./run_tests_with_s2i.sh\n```\n\nThis script can take up to 3 parameters which are:\n\n* `--repository-url`: repository to use to source the images from\n* `--branch-to-test`: branch to use to source the images from\n* `--maven-settings`: custom maven settings file\n\n```bash\n./run_tests_with_s2i.sh --repository-url \"https://github.com/snowdrop/configmap-example\" --branch-to-test branch-to-test --maven-settings \"${HOME}/.m2/my-custom-maven-settings.xml\"\n```\n\n## Running Tests on OpenShift using Helm\n\n```\n./run_tests_with_helm_in_ocp.sh\n```\n\nThis script can take 2 parameters referring to the repository and the branch to use to source the images from.\n\n```bash\n./run_tests_with_helm_in_ocp.sh \"https://github.com/snowdrop/configmap-example\" branch-to-test\n```\n\n## Running Tests on Kubernetes using Helm\n\nFirst, you need to create the k8s namespace:\n\n```\nkubectl create namespace \u003cthe k8s namespace\u003e\n```\n\nThen, run the tests by specifying the container registry and the kubernetes namespace:\n```\n./run_tests_with_helm_in_k8s.sh \u003cyour container registry: for example \"quay.io/user\"\u003e \u003cthe k8s namespace\u003e\n```\n\nFor example:\n\n```\n./run_tests_with_helm_in_k8s.sh \"quay.io/user\" \"myNamespace\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowdrop%2Fconfigmap-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnowdrop%2Fconfigmap-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowdrop%2Fconfigmap-example/lists"}