Skip to content

add base init job for git sync repo shared mode#592

Draft
pgvishnuram wants to merge 1 commit intomasterfrom
feat/add-init-hook-gitsync
Draft

add base init job for git sync repo shared mode#592
pgvishnuram wants to merge 1 commit intomasterfrom
feat/add-init-hook-gitsync

Conversation

@pgvishnuram
Copy link
Contributor

@pgvishnuram pgvishnuram commented May 30, 2025

Description

This PR utilizes helm hook logic to initiate git sync relay container to pre-pull all the code inside the shared volume and utilize the in downstream airflow deployments

Input GRPC

{
    "airflow_database": {
        "connection": "",
        "database_name": "meteor_desc_100_airflow",
        "password": "testmenot",
        "schema_name": "airflow",
        "secret_name": "in",
        "sslmode": "aute elit et dolore",
        "username": "meteor_desc_100_airflow"
    },
    "celery_database": {
        "connection": "",
        "database_name": "meteor_desc_100_celery",
        "password": "testmenot",
        "schema_name": "celery",
        "secret_name": "meteor_desc_100_celery",
        "sslmode": "aliqua ut nulla est",
        "username": "meteor_desc_100_celery"
    },
    "chart": {
        "name": "laboris minim irure occaecat",
        "version": "nisi Duis esse"
    },
    "correlation_id": "123456789",
    "namespace": "default",
    "raw_config": "veniam aute nisi minim culpa",
    "release_name": "meteor-desc-100"
}

Database Provisioning on create Deployment


INFO[0071] Ensuring user meteor_desc_100_airflow exists... 
INFO[0071] User meteor_desc_100_airflow already exists   operation=ensure_user
INFO[0071] Ensuring database meteor_desc_100_airflow exists... 
INFO[0071] Database meteor_desc_100_airflow already exists 
INFO[0071] Connecting to database meteor_desc_100_airflow... 
INFO[0071] Connected to database successfully           
INFO[0071] Creating schema airflow...                   
INFO[0071] Schema airflow created successfully          
INFO[0071] Granting permissions to user meteor_desc_100_airflow for schema airflow... 
INFO[0071] Executing statement: ALTER DEFAULT PRIVILEGES IN SCHEMA "airflow" GRANT ALL PRIVILEGES ON TABLES TO  "meteor_desc_100_airflow" ;ALTER DEFAULT PRIVILEGES IN SCHEMA "airflow" GRANT ALL PRIVILEGES ON SEQUENCES TO "meteor_desc_100_airflow";GRANT USAGE ON SCHEMA "airflow" TO "meteor_desc_100_airflow";GRANT CREATE ON SCHEMA "airflow" TO "meteor_desc_100_airflow";GRANT ALL PRIVILEGES ON SCHEMA "airflow" TO "meteor_desc_100_airflow";GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA "airflow" TO "meteor_desc_100_airflow";GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA "airflow" TO "meteor_desc_100_airflow";ALTER ROLE "meteor_desc_100_airflow" SET search_path = "airflow"  operation=grant_permissions
INFO[0071] Permissions granted successfully to user meteor_desc_100_airflow for schema airflow 
INFO[0071] Database provisioning completed successfully 
INFO[0071] Ensuring user meteor_desc_100_celery exists... 
INFO[0071] User meteor_desc_100_celery created successfully  operation=ensure_user
INFO[0071] User meteor_desc_100_celery already exists    operation=ensure_user
INFO[0071] Ensuring database meteor_desc_100_celery exists... 
INFO[0071] Database meteor_desc_100_celery created successfully 
INFO[0071] Database meteor_desc_100_celery already exists 
INFO[0071] Connecting to database meteor_desc_100_celery... 
INFO[0071] Connected to database successfully           
INFO[0071] Creating schema celery...                    
INFO[0071] Schema celery created successfully           
INFO[0071] Granting permissions to user meteor_desc_100_celery for schema celery... 
INFO[0071] Executing statement: ALTER DEFAULT PRIVILEGES IN SCHEMA "celery" GRANT ALL PRIVILEGES ON TABLES TO  "meteor_desc_100_celery" ;ALTER DEFAULT PRIVILEGES IN SCHEMA "celery" GRANT ALL PRIVILEGES ON SEQUENCES TO "meteor_desc_100_celery";GRANT USAGE ON SCHEMA "celery" TO "meteor_desc_100_celery";GRANT CREATE ON SCHEMA "celery" TO "meteor_desc_100_celery";GRANT ALL PRIVILEGES ON SCHEMA "celery" TO "meteor_desc_100_celery";GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA "celery" TO "meteor_desc_100_celery";GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA "celery" TO "meteor_desc_100_celery";ALTER ROLE "meteor_desc_100_celery" SET search_path = "celery"  operation=grant_permissions
INFO[0071] Permissions granted successfully to user meteor_desc_100_celery for schema celery 
INFO[0071] Database provisioning completed successfully 

Related Issues

Do not merge this PR until this text is replaced with links to related issues.

Testing

Do not merge this PR until this text is replaced with details about how these changes were tested.

Merging

Do not merge this PR until it lists which release branches this PR should be merged / cherry-picked into.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments