Skip to content

Commit

Permalink
gitignore config.yml (elastic#2280)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanstory authored Mar 25, 2024
1 parent cc56cb6 commit a3c9eff
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ pyvenv.cfg
*.egg-info
__pycache__

# real configurations
config.yml

# jetbrains files
.idea
*.iml
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ SLOW_TEST_THRESHOLD=1 # seconds
VERSION=$(shell cat connectors/VERSION)


bin/python:
config:
- cp -n config.yml.example config.yml

bin/python: config
$(PYTHON) -m venv .
bin/pip install --upgrade pip

Expand Down
File renamed without changes.
4 changes: 3 additions & 1 deletion docs/CONFIG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Configuration

Configuration lives in [config.yml](../config.yml).
Configuration lives in `config.yml`.
This file is created when you first run `make install`, and is "git ignored" to help prevent committing secrets.
The default configs can all be seen in the [`config.yml.example`]((../config.yml.example).), which is not intended to be modified.

## Run the connector service on-prem

Expand Down
2 changes: 1 addition & 1 deletion docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Enhancements that can be done after your initial contribution:

To make sure we're building great connectors, we will be pretty strict on this checklist, and we will not allow connectors to change the framework code itself.

Any patch with changes outside [connectors/sources](../connectors/sources) or [config.yml](../config.yml) and [requirements.txt](../requirements.txt) will be rejected.
Any patch with changes outside [connectors/sources](../connectors/sources) or [config.yml.example](../config.yml.example) and [requirements.txt](../requirements.txt) will be rejected.

If you need changes in the framework, or you are not sure about how to do something, reach out to the [Ingestion team](https://github.com/orgs/elastic/teams/ingestion-team/members) and/or file an issue.

Expand Down
4 changes: 2 additions & 2 deletions docs/DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

## General Configuration

The details of Elastic instance and other relevant fields such as `service` and `source` needs to be provided in the [config.yml](https://github.com/elastic/connectors/blob/main/config.yml) file. For more details check out the following [documentation](https://github.com/elastic/connectors/blob/main/docs/CONFIG.md).
The details of Elastic instance and other relevant fields such as `service` and `source` needs to be provided in the `config.yml` file. For more details check out the following [documentation](https://github.com/elastic/connectors/blob/main/docs/CONFIG.md).

## Installation

Expand Down Expand Up @@ -64,7 +64,7 @@ That information is provided by Kibana and follows the [connector protocol](http
When a user asks for a sync of a specific source, the service instantiates a class that it uses to reach out the source and collect data.
A source class can be any Python class, and is declared into the [configuration](../config.yml) file (See [Configuration](./CONFIG.md) for detailed explanation). For example:
A source class can be any Python class, and is declared into the `config.yml` file (See [Configuration](./CONFIG.md) for detailed explanation). For example:
```yaml
sources:
Expand Down
2 changes: 1 addition & 1 deletion docs/DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ cd ~ && mkdir connectors-config
You can download the file manually, or simply run the command below. Make sure to update the `--output` argument value if your directory name is different, or you want to use a different config file name.

```sh
curl https://raw.githubusercontent.com/elastic/connectors/main/config.yml --output ~/connectors-config/config.yml
curl https://raw.githubusercontent.com/elastic/connectors/main/config.yml.example --output ~/connectors-config/config.yml
```

## 4. Update the configuration file for your [self-managed connector](https://www.elastic.co/guide/en/enterprise-search/current/build-connector.html#build-connector-usage)
Expand Down
2 changes: 1 addition & 1 deletion scripts/stack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Note that this method of setting the password, or using the default password, is
This can include editing the `docker-compose.yml` file and the `set-env.sh` script to hardcode a different password amongst other ways.

Alternatively, if you do not wish to use a different set of credentials, or an API key for authentication, you can run the `./copy-config.sh` script to create a
copy of the default [config.yml](../../config.yml) file, and edit the resulting file that will be created in the `scripts/stack/connectors-config` folder.
copy of the default [config.yml.example](../../config.yml.example) file, and edit the resulting file that will be created in the `scripts/stack/connectors-config` folder.

By default, these Connector scripts will use a `SNAPSHOT` version of the Docker image.
The version is defined in the [VERSION file](../../connectors/VERSION).
Expand Down

0 comments on commit a3c9eff

Please sign in to comment.