adorsys / keycloak-config-cli

Import YAML/JSON-formatted configuration files into Keycloak - Configuration as Code for Keycloak.
Apache License 2.0
714 stars 134 forks source link

Ignore files starting with a dot (.) or ".gitkeep" files #656

Closed MeerBiene closed 2 years ago

MeerBiene commented 2 years ago

Problem Statement

We had the problem that I placed a .gitkeep file in a directory because the contents of the directory will be generated by a CI pipeline. Keycloak config cli failed cause it could not handle the gitkeep file.

Proposed Solution

Ignore files starting with a dot (.) or files that have "git" in their name

Environment

Additional information

No response

Acceptance Criteria

No response

jkroepke commented 2 years ago

Hi @MeerBiene

this is funny, since we had recently a deep discussion around this. Ignore dot files (hidden files) is recently implemented here: https://github.com/adorsys/keycloak-config-cli/pull/644

It's currently not released, but is you have the ability to use a snapshot version from main, feel free to test it.

unrelated idea i had: maybe create a mapping for keycloak - redhat sso versions so this cli does not go haywire when it encounters the version tag "redhat sso ga 7.5"

https://github.com/adorsys/keycloak-config-cli/blob/main/docs/RHSSO.md#find-correct-release-version-for-keycloak

But RedHat documented, 7.5 is Keycloak 15, not Keycloak 16.