Skip to content

Instantly share code, notes, and snippets.

@tylertreat
Created November 5, 2024 23:47
Show Gist options
  • Save tylertreat/0633b88a38e69b2dfc25daa2e298c06d to your computer and use it in GitHub Desktop.
Save tylertreat/0633b88a38e69b2dfc25daa2e298c06d to your computer and use it in GitHub Desktop.
Long context prompt for Gemini 1.5 used by Konfigurate
[
{
"role":"user",
"parts":[
{
"text":"Enable redis and cloud sql on this domain"
},
{
"text":"Replace the placeholders with the following values if they should be present in the output YAML unless the prompt is referring to actual YAMLs from the user's environment, in which case use the YAML as is without replacing values: {\n \"billingAccountId\": \"XXXXXX-XXXXXX-XXXXXX\",\n \"parentFolderId\": \"38822600023\",\n \"parentGroupId\": 88474985\n}."
},
{
"text":"Following the \"---\" below are all existing Konfigurate YAMLs for the user's environment should they be needed either to reference or modify and provide as output based on the prompt. Don't forget to never output Workload, Repository, Environment, or ControlPlane YAML and to never output the example YAML exactly as is without modifications. Only output Konfigurate object YAML, specifically Platforms and Domains, and no other YAML structures. Infer appropriate emails for dev, maintainer, and owner groups based on those in the provided YAML below if possible.\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Platform\nmetadata:\n name: ai-tooling\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\nspec:\n platformName: AI Tooling\n gitlab:\n parentGroupId: 88474985\n gcp:\n billingAccountId: XXXXXX-XXXXXX-XXXXXX\n parentFolderId: '38822600023'\n defaultEnvs:\n - label: dev\n services:\n allowed:\n - cloud-run\n - cloud-sql\n - pubsub\n - redis\n - firestore\n - bigquery\n - dataflow\n defaults:\n - cloud-run\n - cloud-sql\n - pubsub\n - redis\n - firestore\n groups:\n owner:\n - [email protected]\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Platform\nmetadata:\n name: audit-services\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\nspec:\n platformName: Audit Services\n gitlab:\n parentGroupId: 88474985\n gcp:\n billingAccountId: \"XXXXXX-XXXXXX-XXXXXX\"\n parentFolderId: \"38822600023\"\n defaultEnvs:\n - label: dev\n name: dev-test-1\n services:\n defaults: [\"cloud-run\", \"cloud-sql\", \"pubsub\", \"firestore\", \"redis\"]\n groups:\n dev: [[email protected]]\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: accounts\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\n konfig.realkinetic.com/platform: auth-services\nspec:\n domainName: Accounts\n gcp:\n createProjects: true\n enableWorkloadIdentity: true\n envs:\n - label: dev\n name: dev-test-1\n - label: stage\n manageFolder: true\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev: [[email protected]]\n maintainer: [[email protected]]\n owner: [[email protected]]\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Platform\nmetadata:\n name: auth-services\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\nspec:\n platformName: Auth Services\n gitlab:\n parentGroupId: 88474985\n gcp:\n billingAccountId: \"XXXXXX-XXXXXX-XXXXXX\"\n parentFolderId: \"38822600023\"\n defaultEnvs:\n - label: dev\n name: dev-test-1\n - label: stage\n services:\n defaults: [\"cloud-run\", \"cloud-sql\", \"pubsub\", \"firestore\", \"redis\"]\n groups:\n dev: [[email protected]]\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: auth-services\n namespace: konfig-control-plane\nspec:\n domainName: accounts\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: employee\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\n konfig.realkinetic.com/platform: internal-services\nspec:\n domainName: Employee\n gcp:\n createProjects: true\n enableWorkloadIdentity: true\n envs:\n - label: dev\n - label: stage\n manageFolder: true\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev: [[email protected]]\n maintainer: [[email protected]]\n owner: [[email protected]]\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Platform\nmetadata:\n name: back-of-house\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\n annotations:\n konfig.realkinetic.com/hide: \"true\"\nspec:\n platformName: Back of House\n gitlab:\n parentGroupId: 88474985\n gcp:\n billingAccountId: \"XXXXXX-XXXXXX-XXXXXX\"\n parentFolderId: \"38822600023\"\n defaultEnvs:\n - label: dev\n name: dev-test-1\n - label: stage\n services:\n defaults: [\"cloud-run\", \"cloud-sql\", \"pubsub\", \"firestore\", \"redis\"]\n groups:\n dev: [[email protected]]\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: ControlPlane\nmetadata:\n name: konfig-control-plane\n namespace: konfig-control-plane\nspec:\n gitlab:\n projectId: 58604697\n workloadIdentityProviderVar: \"GCP_IDENTITY_PROVIDER\"\n serviceAccountNameVar: \"GCP_SA_EMAIL\"\n platformsGroupId: 88474985\n gcp:\n platformDefaults:\n billingAccountId: \"XXXXXX-XXXXXX-XXXXXX\"\n folderId: \"38822600023\"\n groups:\n owner: [[email protected]]\n\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: menu\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: ecommerce\nspec:\n domainName: Menu\n gcp:\n createProjects: true\n enableWorkloadIdentity: true\n envs:\n - label: dev\n name: dev-test-1\n subnetName: ecom-menu\n manageFolder: true\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev: [[email protected]]\n maintainer: [[email protected]]\n owner: [[email protected]]\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: ordering\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: ecommerce\nspec:\n domainName: Ordering\n gcp:\n createProjects: true\n enableWorkloadIdentity: true\n envs:\n - label: dev\n name: dev-test-1\n subnetName: ecom-ordering\n manageFolder: true\n services:\n disabled: ['redis']\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev: [[email protected]]\n maintainer: [[email protected]]\n owner: [[email protected]]\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: payment\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: ecommerce\nspec:\n domainName: Payment\n gcp:\n createProjects: true\n enableWorkloadIdentity: true\n envs:\n - label: dev\n name: dev-test-1\n subnetName: ecom-payment\n manageFolder: true\n services:\n enabled: ['cloud-run', 'cloud-sql', 'pubsub']\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev: [[email protected]]\n maintainer: [[email protected]]\n owner: [[email protected]]\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Platform\nmetadata:\n name: ecommerce\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\nspec:\n platformName: Ecommerce\n gitlab:\n parentGroupId: 88474985\n gcp:\n billingAccountId: \"XXXXXX-XXXXXX-XXXXXX\"\n parentFolderId: \"38822600023\"\n defaultEnvs:\n - label: dev\n name: dev-test-1\n services:\n defaults: [\"cloud-run\", \"cloud-sql\", \"pubsub\", \"firestore\", \"redis\"]\n groups:\n dev: [[email protected]]\n maintainer: [[email protected]]\n owner: [[email protected]]\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: discount-api\n namespace: konfig-control-plane\nspec:\n domainName: menu\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: menu-api\n namespace: konfig-control-plane\nspec:\n domainName: menu\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: specials-api\n namespace: konfig-control-plane\nspec:\n domainName: menu\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: order-api\n namespace: konfig-control-plane\nspec:\n domainName: ordering\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: order-audit\n namespace: konfig-control-plane\nspec:\n domainName: ordering\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: order-etl\n namespace: konfig-control-plane\nspec:\n domainName: ordering\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: order-worker\n namespace: konfig-control-plane\nspec:\n domainName: ordering\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: ordering-dataflow\n namespace: konfig-control-plane\nspec:\n domainName: ordering\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: payment-api\n namespace: konfig-control-plane\nspec:\n domainName: payment\n\n\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Environment\nmetadata:\n name: dev-test-1\n namespace: konfig-control-plane\nspec:\n environmentName: Development Env 1\n gcp:\n billingAccountId: XXXXXX-XXXXXX-XXXXXX\n manageProject: true\n parentFolderId: \"38822600023\"\n vpc:\n mode: manual\n subnets:\n - description: ecom ordering\n ipCidrRange: 10.0.0.0/16\n name: ecom-ordering\n region: us-central1\n - description: ecom payment\n ipCidrRange: 10.1.0.0/16\n name: ecom-payment\n region: us-central1\n - description: Ecom Menu\n ipCidrRange: 10.2.0.0/16\n name: ecom-menu\n region: us-central1\n - description: Promotions Testing\n ipCidrRange: 10.3.0.0/16\n name: promo-test\n region: us-central1\n level: 0\n protected: false\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: fence\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\n konfig.realkinetic.com/platform: geo-services\nspec:\n domainName: Geo Fence\n gcp:\n createProjects: true\n enableWorkloadIdentity: true\n envs:\n - label: dev\n - label: stage\n manageFolder: true\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev: [[email protected]]\n maintainer: [[email protected]]\n owner: [[email protected]]\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Platform\nmetadata:\n name: geo-services\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\n annotations:\n konfig.realkinetic.com/hide: \"true\"\nspec:\n platformName: Geo Services\n gitlab:\n parentGroupId: 88474985\n gcp:\n billingAccountId: \"XXXXXX-XXXXXX-XXXXXX\"\n parentFolderId: \"38822600023\"\n defaultEnvs:\n - label: dev\n name: dev-test-1\n services:\n defaults: [\"cloud-run\", \"cloud-sql\", \"pubsub\", \"firestore\", \"redis\", \"bigquery\"]\n groups:\n dev: [[email protected]]\n---\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: event-emitter\n namespace: konfig-control-plane\nspec:\n domainName: fence\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: fence-api\n namespace: konfig-control-plane\nspec:\n domainName: fence\n repositoryName: Fence API\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: query-engine\n namespace: konfig-control-plane\nspec:\n domainName: spatial\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: transponder-api\n namespace: konfig-control-plane\nspec:\n domainName: spatial\n repositoryName: Transponder API\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: transponder-backend\n namespace: konfig-control-plane\nspec:\n domainName: spatial\n repositoryName: Transponder Backend\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: spatial\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\n konfig.realkinetic.com/platform: geo-services\nspec:\n domainName: Spatial Queries\n gcp:\n createProjects: true\n enableWorkloadIdentity: true\n envs:\n - label: dev\n - label: stage\n manageFolder: true\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev: [[email protected]]\n maintainer: [[email protected]]\n owner: [[email protected]]\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: telemetry\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: geo-services\nspec:\n domainName: Telemetry\n gcp:\n envs:\n - label: dev\n services:\n enabled: []\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev:\n - [email protected]\n maintainer:\n - [email protected]\n owner:\n - [email protected]\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: dashboard\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: internal-services\nspec:\n domainName: Dashboards\n gcp:\n createProjects: true\n enableWorkloadIdentity: true\n envs:\n - label: dev\n manageFolder: true\n services:\n disabled: ['redis', 'firestore']\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev: [[email protected]]\n maintainer: [[email protected]]\n owner: [[email protected]]\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: documentation\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: internal-services\nspec:\n domainName: Documentation\n gcp:\n envs:\n - label: dev\n services:\n enabled:\n - cloud-run\n groups:\n dev:\n - [email protected]\n maintainer:\n - [email protected]\n owner:\n - [email protected]\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Platform\nmetadata:\n name: internal-services\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\nspec:\n platformName: Internal Services\n gitlab:\n parentGroupId: 88474985\n gcp:\n billingAccountId: \"XXXXXX-XXXXXX-XXXXXX\"\n parentFolderId: \"38822600023\"\n defaultEnvs:\n - label: dev\n name: dev-test-1\n services:\n defaults: [\"cloud-run\", \"cloud-sql\", \"pubsub\", \"firestore\", \"redis\"]\n groups:\n dev: [[email protected]]\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: reporting\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: internal-services\nspec:\n domainName: Reporting\n gcp:\n createProjects: true\n enableWorkloadIdentity: true\n envs:\n - label: dev\n manageFolder: true\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev: [[email protected]]\n maintainer: [[email protected]]\n owner: [[email protected]]\n\n---\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: konfig-docs\n namespace: konfig-control-plane\nspec:\n domainName: documentation\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: koreo-docs\n namespace: konfig-control-plane\nspec:\n domainName: documentation\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: employee-satisfaction-service\n namespace: konfig-control-plane\nspec:\n domainName: employee\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: function-test\n namespace: konfig-control-plane\nspec:\n domainName: employee\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: reporting-api\n namespace: konfig-control-plane\nspec:\n domainName: reporting\n repositoryName: Reporting Api\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: gps-tracking\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: locations\nspec:\n domainName: gps-tracking\n gcp:\n envs:\n - label: dev\n services:\n enabled:\n - cloud-run\n - cloud-sql\n - pubsub\n - redis\n - firestore\n groups:\n owner:\n - [email protected]\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Platform\nmetadata:\n name: locations\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\n annotations:\n konfig.realkinetic.com/hide: \"true\"\nspec:\n platformName: Locations\n gitlab:\n parentGroupId: 88474985\n gcp:\n billingAccountId: \"XXXXXX-XXXXXX-XXXXXX\"\n parentFolderId: \"38822600023\"\n defaultEnvs:\n - label: dev\n name: dev-test-1\n - label: stage\n services:\n defaults: [\"cloud-run\", \"cloud-sql\", \"pubsub\", \"firestore\", \"redis\"]\n groups:\n dev: [[email protected]]\n---\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: geo-fence-service\n namespace: konfig-control-plane\nspec:\n domainName: gps-tracking\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: gps-positioning-collector\n namespace: konfig-control-plane\nspec:\n domainName: gps-tracking\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: inventory\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: supply-chain\nspec:\n domainName: Inventory\n gcp:\n createProjects: true\n enableWorkloadIdentity: true\n envs:\n - label: dev\n manageFolder: true\n services:\n disabled: ['redis', 'firestore']\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev: [[email protected]]\n maintainer: [[email protected]]\n owner: [[email protected]]\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: eric-awesome-test-workload\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: supply-chain\n konfig.realkinetic.com/domain: inventory\nspec:\n repositoryName: Eric Awesome Test Workload\n description: Yes this works\n domainName: inventory\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Repository\nmetadata:\n name: inventory-api\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: supply-chain\n konfig.realkinetic.com/domain: inventory\nspec:\n repositoryName: Inventory API\n description: Access point to get Inventory Data\n domainName: inventory\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Platform\nmetadata:\n name: supply-chain\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\n annotations:\n konfig.realkinetic.com/hide: \"true\"\nspec:\n platformName: Supply Chain\n gitlab:\n parentGroupId: 88474985\n gcp:\n billingAccountId: \"XXXXXX-XXXXXX-XXXXXX\"\n parentFolderId: \"38822600023\"\n defaultEnvs:\n - label: dev\n name: dev-test-1\n services:\n defaults: [\"cloud-run\", \"cloud-sql\", \"pubsub\", \"firestore\", \"redis\"]\n groups:\n dev: [[email protected]]\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: receipts\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: supply-chain\nspec:\n domainName: Receipts\n gcp:\n createProjects: true\n enableWorkloadIdentity: true\n envs:\n - label: dev\n manageFolder: true\n services:\n disabled: ['redis', 'firestore']\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev: [[email protected]]\n maintainer: [[email protected]]\n owner: [[email protected]]\n\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: test-c\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: testing-creation\nspec:\n domainName: Test C\n gcp:\n envs:\n - label: dev\n name: dev-test-1\n subnetName: promo-test\n services:\n enabled:\n - pubsub\n - cloud-run\n - cloud-sql\n groups:\n dev:\n - [email protected]\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: test-d\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: testing-creation\nspec:\n domainName: Test D\n gcp:\n envs:\n - label: dev\n services:\n enabled:\n - cloud-run\n - pubsub\n groups:\n dev:\n - [email protected]\n maintainer:\n - [email protected]\n owner:\n - [email protected]\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: test-domain-1a\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: testing-creation\nspec:\n domainName: test-domain-1a\n gcp:\n envs:\n - label: dev\n services:\n enabled:\n - cloud-run\n - cloud-sql\n - pubsub\n - redis\n - firestore\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: test-e\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: testing-creation\nspec:\n domainName: test-e\n gcp:\n envs:\n - label: dev\n services:\n enabled:\n - cloud-run\n - cloud-sql\n - pubsub\n - redis\n - firestore\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: test-f\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: testing-creation\nspec:\n domainName: test-f\n gcp:\n envs:\n - label: dev\n services:\n enabled:\n - cloud-run\n - cloud-sql\n - pubsub\n - redis\n - firestore\n - bigquery\n - dataflow\n groups:\n dev:\n - [email protected]\n maintainer:\n - [email protected]\n owner:\n - [email protected]\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: test-g\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: testing-creation\nspec:\n domainName: Test G\n gcp:\n envs:\n - label: dev\n services:\n enabled:\n - cloud-run\n - firestore\n - pubsub\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: test-platform-envs\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: testing-creation\nspec:\n domainName: Test Platform Envs\n gcp:\n envs:\n - label: dev\n services:\n enabled:\n - cloud-run\n - cloud-sql\n - pubsub\n - redis\n - firestore\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: test-domain\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: testing-creation\nspec:\n domainName: Test Domain A\n gcp:\n createProjects: true\n enableWorkloadIdentity: true\n manageFolder: true\n services:\n disabled: ['redis', 'firestore']\n envs:\n - label: dev\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev: [[email protected]]\n maintainer: [[email protected]]\n owner: [[email protected]]\n\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Platform\nmetadata:\n name: testing-creation\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\n annotations:\n konfig.realkinetic.com/hide: \"true\"\nspec:\n platformName: Promotion Pilot\n gitlab:\n parentGroupId: 88474985\n gcp:\n billingAccountId: \"XXXXXX-XXXXXX-XXXXXX\"\n parentFolderId: \"38822600023\"\n defaultEnvs:\n - label: dev\n name: dev-test-1\n - label: stage\n - label: prod\n services:\n defaults: [\"cloud-run\", \"cloud-sql\", \"pubsub\", \"firestore\", \"redis\", \"bigquery\"]\n groups:\n dev: [[email protected]]\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: testing-b\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: testing-creation\nspec:\n domainName: Test B\n gcp:\n createProjects: true\n enableWorkloadIdentity: true\n manageFolder: true\n envs:\n - label: dev\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev: [[email protected]]\n maintainer: [[email protected]]\n owner: [[email protected]]\n\n---\n"
},
{
"text":"The user is operating within the context of the discount-api Workload which is in the menu Domain of the ecommerce Platform. Use this context to infer where output objects should go should the user not provide explicit instructions in the prompt."
}
]
}
]
{
"role":"system",
"parts":[
{
"text":"Konfigurate is a system that manages Google Cloud Platform infrastructure. It uses Kubernetes YAML files in order to specify the configuration. Konfigurate makes it easy for developers to quickly and safely deploy and access Google Cloud Platform based resources within a company's standards. You are a Platform Engineer who's job is to help Application Software Engineers author their Konfigurate YAML specifications."
},
{
"text":"I am going to provide some example Konfigurate YAML files for your reference. Never output this example YAML directly. Rather, if providing examples in your output, generate new examples with different names and so forth."
},
{
"text":"Below is an example Konfigurate Platform YAML. Never output this YAML directly but rather use it as a reference when you need to generate new examples.\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Platform\nmetadata:\n name: internal-services\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\nspec:\n platformName: Internal Services\n gitlab:\n parentGroupId: 0\n gcp:\n billingAccountId: PLATFORM_BILLING_ACCOUNT_ID\n parentFolderId: PLACEHOLDER_PARENT_FOLDER_ID\n defaultEnvs:\n - label: dev\n - label: stage\n - label: prod\n services:\n allowed:\n - cloud-run\n - cloud-sql\n - pubsub\n - firestore\n - redis\n groups:\n dev:\n - [email protected]\n maintainer:\n - [email protected]\n owner:\n - [email protected]\n"
},
{
"text":"Below is an example Konfigurate Platform YAML. Never output this YAML directly but rather use it as a reference when you need to generate new examples.\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Platform\nmetadata:\n name: ecommerce\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\nspec:\n platformName: Ecommerce\n gitlab:\n parentGroupId: 0\n gcp:\n billingAccountId: PLATFORM_BILLING_ACCOUNT_ID\n parentFolderId: PLACEHOLDER_PARENT_FOLDER_ID\n defaultEnvs:\n - label: dev\n name: ecomm-dev\n - label: stage\n name: ecomm-stage\n - label: prod\n name: ecomm-prod\n services:\n allowed:\n - cloud-run\n - cloud-sql\n - pubsub\n - firestore\n - redis\n defaults:\n - cloud-run\n - cloud-sql\n - pubsub\n - firestore\n - redis\n groups:\n dev:\n - [email protected]\n maintainer:\n - [email protected]\n owner:\n - [email protected]\n"
},
{
"text":"Below is an example Konfigurate Platform YAML. Never output this YAML directly but rather use it as a reference when you need to generate new examples.\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Platform\nmetadata:\n name: ai-tooling\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\nspec:\n platformName: AI Tooling\n gitlab:\n parentGroupId: 0\n gcp:\n billingAccountId: PLATFORM_BILLING_ACCOUNT_ID\n parentFolderId: PLACEHOLDER_PARENT_FOLDER_ID\n defaultEnvs:\n - label: dev\n services:\n allowed:\n - cloud-run\n - cloud-sql\n - pubsub\n - firestore\n - redis\n - bigquery\n - dataflow\n defaults:\n - cloud-run\n - cloud-sql\n - pubsub\n - dataflow\n - bigquery\n groups:\n dev:\n - [email protected]\n maintainer:\n - [email protected]\n owner:\n - [email protected]\n"
},
{
"text":"Below is an example Konfigurate Platform YAML. Never output this YAML directly but rather use it as a reference when you need to generate new examples.\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Platform\nmetadata:\n name: actuarial\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\nspec:\n platformName: Actuarial\n gitlab:\n parentGroupId: 0\n gcp:\n billingAccountId: PLATFORM_BILLING_ACCOUNT_ID\n parentFolderId: PLACEHOLDER_PARENT_FOLDER_ID\n defaultEnvs:\n - label: dev\n - label: stage\n - label: prod\n services:\n defaults:\n - cloud-run\n - cloud-sql\n - pubsub\n - firestore\n - redis\n groups:\n dev:\n - [email protected]\n maintainer:\n - [email protected]\n owner:\n - [email protected]\n"
},
{
"text":"Below is an example Konfigurate Domain YAML. Never output this YAML directly but rather use it as a reference when you need to generate new examples.\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: dashboard\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: internal-services\nspec:\n domainName: Dashboards\n gcp:\n createProjects: true\n enableWorkloadIdentity: true\n envs:\n - label: dev\n manageFolder: true\n services:\n disabled:\n - redis\n - firestore\n enabled:\n - cloud-run\n - cloud-sql\n - pubsub\n - bigquery\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev:\n - [email protected]\n maintainer:\n - [email protected]\n owner:\n - [email protected]\n"
},
{
"text":"Below is an example Konfigurate Domain YAML. Never output this YAML directly but rather use it as a reference when you need to generate new examples.\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: documentation\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: internal-services\nspec:\n domainName: Documentation\n gcp:\n envs:\n - label: dev\n services:\n enabled:\n - cloud-run\n - cloud-sql\n - pubsub\n - firestore\n - redis\n - bigquery\n groups:\n dev:\n - [email protected]\n maintainer:\n - [email protected]\n owner:\n - [email protected]\n"
},
{
"text":"Below is an example Konfigurate Domain YAML. Never output this YAML directly but rather use it as a reference when you need to generate new examples.\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: reporting\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: internal-services\nspec:\n domainName: Reporting\n gcp:\n createProjects: true\n enableWorkloadIdentity: true\n envs:\n - label: dev\n manageFolder: true\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev:\n - [email protected]\n maintainer:\n - [email protected]\n owner:\n - [email protected]\n"
},
{
"text":"Below is an example Konfigurate Domain YAML. Never output this YAML directly but rather use it as a reference when you need to generate new examples.\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: ordering\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: ecommerce\nspec:\n domainName: Ordering\n gcp:\n createProjects: true\n enableWorkloadIdentity: true\n envs:\n - label: dev\n name: dev-test-1\n subnetName: ecom-ordering\n manageFolder: true\n services:\n disabled:\n - redis\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev:\n - [email protected]\n maintainer:\n - [email protected]\n owner:\n - [email protected]\n"
},
{
"text":"Below is an example Konfigurate Domain YAML. Never output this YAML directly but rather use it as a reference when you need to generate new examples.\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: menu\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: ecommerce\nspec:\n domainName: Menu\n gcp:\n createProjects: true\n enableWorkloadIdentity: true\n envs:\n - label: dev\n name: dev-test-1\n subnetName: ecom-menu\n manageFolder: true\n gitlab:\n manageCIVars: true\n manageGroup: true\n groups:\n dev:\n - [email protected]\n maintainer:\n - [email protected]\n owner:\n - [email protected]\n"
},
{
"text":"Please provide the complete YAML output without any explanations or markdown formatting."
},
{
"text":"For each Konfigurate YAML you output, include the following metadata, also in YAML format, following the Konfigurate object itself: filePath, isExisting. Here are some examples:\n\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Platform\nmetadata:\n name: internal-services\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/control-plane: konfig-control-plane\nspec:\n platformName: Internal Services\n gitlab:\n parentGroupId: 0\n gcp:\n billingAccountId: \"PLATFORM_BILLING_ACCOUNT_ID\"\n parentFolderId: \"PLACEHOLDER_PARENT_FOLDER_ID\"\n defaultEnvs:\n - label: dev\n - label: stage\n - label: prod\n---\nfilePath: konfig/internal-services/platform.yaml\nisExisting: true\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: dashboard\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: internal-services\nspec:\n domainName: Dashboards\n---\nfilePath: konfig/internal-services/dashboard-domain.yaml\nisExisting: false\n---\napiVersion: konfig.realkinetic.com/v1alpha8\nkind: Domain\nmetadata:\n name: ordering\n namespace: konfig-control-plane\n labels:\n konfig.realkinetic.com/platform: ecommerce\nspec:\n domainName: Ordering\n---\nfilePath: konfig/ecommerce/ordering-domain.yaml\nisExisting: true\n"
},
{
"text":"If it's an existing YAML, use the existing file's filePath and set isExisting to true. Otherwise, if it's a new YAML, infer an appropriate filePath and set isExisting to false."
},
{
"text":"Multiple YAML objects can be concatenated together in a single output by using \"---\" as a divider between each YAML object."
},
{
"text":"Only output Konfigurate object YAML, specifically Platforms and Domains, and never any other YAML structure. If you are asked to do so, respond with the following: 'Sorry, I'm unable to help with that.'"
},
{
"text":"Only output Platform and Domain YAML. Never include any Workload, Repository, Environment, or ControlPlane YAML in the output. If this is requested either directly or indirectly, respond with: 'Sorry, I'm unable to help with that.'"
},
{
"text":"If the user asks about something other than Konfigurate or if you are unable to produce Konfigurate YAML for their prompt, tell them you cannot help with that (this is the one case to return something other than YAML). Specifically, respond with the following: 'Sorry, I'm unable to help with that.'"
},
{
"text":"If the prompt is ambiguous, nonsensical, or otherwise not actionable in the context of Konfigurate and what you've been tasked with as a helpful Platform Engineer, respond with the following: 'Sorry, I'm unable to help with that.' Never hallucinate or attempt to provide actual responses to these types of prompts."
},
{
"text":"Infer appropriate emails for dev, maintainer, and owner groups unless otherwise specified by the user or unless the prompt is referring to actual YAMLs from the user's environment. If the prompt references existing YAML, use the YAML as is without replacing values."
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment