Skip to content

Support using env vars when configuring verify-evaluate-cloud-metrics#40

Merged
edwardthiele merged 15 commits into
mainfrom
envVars
Apr 5, 2024
Merged

Support using env vars when configuring verify-evaluate-cloud-metrics#40
edwardthiele merged 15 commits into
mainfrom
envVars

Conversation

@edwardthiele
Copy link
Copy Markdown
Collaborator

@edwardthiele edwardthiele commented Apr 3, 2024

Adds support for env vars as params to the verify job

This allows skaffold configs like:

- name: verify-metrics
  container:
    name: verify-requests
    image: verify-evaluate-cloud-metrics
    command: ["./verify-evaluate-cloud-metrics"]
    args:
    - --table-name=k8s_pod
    - --metric-type=custom.googleapis.com/requests/request_count
    - --predicates=resource.cluster_name=='$metricClusterName'

edwardthiele and others added 15 commits April 3, 2024 13:33
* Introduce sample Terraform custom target implementation and quickstart

* Fix terraform deployer module name, params comment, and build and register script perm

* Add disclaimer in terraform readme indicating that the sample is not an officially supported Google product

* Remove cloudbuild.yaml and build and register script temporarily

* Update terraform sample with changes required to include the images commit sha in metadata

* Fix module dependency version in terraform deployer

* Fix the COMMIT_SHA.

(And simplify it a little.)

* Update the appearance of the build_and_register output

The primary log lines are now green and start with ">> ".

* Add clone repo instructions to terraform quickstart and readme in the custom target directory

* Doc updates for Terraform sample and using const for sample commit sha metadata key

* Add gitops custom target sample

* Git Deployer sample: set username and email in git config after cloning the repo

* Git deployer: set <> as the email in the git config if not provided

* GitOps sample: Update README and QUICKSTART and added customTarget/gitEnablePullRequestMerge deploy parameter

* Add docker build for each sample in presubmit.yaml

---------

Co-authored-by: Michael Plump <plumpy@google.com>
* make some fixes to use new clouddeploy module

* use new clouddeploy gcs methods to download manifest configuration

* fix clouddeploy.yaml to use template

* addalias fixes

* fix gcs download paths

* Supported deploy parameters are stored using customTarget/ prefix

* fix configPath description

* fix README,quickstart, add copyright to clouddeploy.yaml

* Add copyright to more config files

* address comments in request.go

* address most deploy comments

* address render, deploy comments. Split vertex-ai methods to its own file to make render/deploy files easier to read. Moving polling functions to its own functions as well

* Add copy repo step as first step

* typos and grammar

* typo fixe in quickstart

* expands comments for render.go

* add comments on vertex ai

* Create presubmit.yaml (#17)

* Add sample implementation of a GitOps custom target (#14)

* Introduce sample Terraform custom target implementation and quickstart

* Fix terraform deployer module name, params comment, and build and register script perm

* Add disclaimer in terraform readme indicating that the sample is not an officially supported Google product

* Remove cloudbuild.yaml and build and register script temporarily

* Update terraform sample with changes required to include the images commit sha in metadata

* Fix module dependency version in terraform deployer

* Fix the COMMIT_SHA.

(And simplify it a little.)

* Update the appearance of the build_and_register output

The primary log lines are now green and start with ">> ".

* Add clone repo instructions to terraform quickstart and readme in the custom target directory

* Doc updates for Terraform sample and using const for sample commit sha metadata key

* Add gitops custom target sample

* Git Deployer sample: set username and email in git config after cloning the repo

* Git deployer: set <> as the email in the git config if not provided

* GitOps sample: Update README and QUICKSTART and added customTarget/gitEnablePullRequestMerge deploy parameter

* Add docker build for each sample in presubmit.yaml

---------

Co-authored-by: Michael Plump <plumpy@google.com>

* build the model deployer in the presubmit

* make changes to quickstart and readme to include information about add-alias feature in cloud deploy hook

* fix replace variables script

* more fixes

* include add alias feature in vertex ai quick start

* removing spacing between err declaration and handling

* address comments

* configPath points to file rather than directory

* address comments

---------

Co-authored-by: edwardthiele <4979401+edwardthiele@users.noreply.github.com>
Co-authored-by: Matt Santa <mattsanta@google.com>
Co-authored-by: Michael Plump <plumpy@google.com>
…18)

* Introduce sample Terraform custom target implementation and quickstart

* Fix terraform deployer module name, params comment, and build and register script perm

* Add disclaimer in terraform readme indicating that the sample is not an officially supported Google product

* Remove cloudbuild.yaml and build and register script temporarily

* Update terraform sample with changes required to include the images commit sha in metadata

* Fix module dependency version in terraform deployer

* Fix the COMMIT_SHA.

(And simplify it a little.)

* Update the appearance of the build_and_register output

The primary log lines are now green and start with ">> ".

* Add clone repo instructions to terraform quickstart and readme in the custom target directory

* Doc updates for Terraform sample and using const for sample commit sha metadata key

* Introduce sample Infrastructure Manager custom target implementation and quickstart

* Pass project ID when describing image in shared custom target build and register script

* Add infrastructure manager sample to presubmit.yaml

* Infrastructure Manager sample: Add Cloud Deploy UI URLs to quickstart

* Update readme and quickstart for infrastruture manager sample

---------

Co-authored-by: Michael Plump <plumpy@google.com>
The shebang line needs to be the in the first line of the file (above copyright).
updated command to create first release.  The command had an underscore between delivery and pipeline instead of a dash.  Also, added a second - in front of the word "delivery"
Corrects misleading word in readme for basic-deploy sample
Copy link
Copy Markdown
Collaborator

@mattsanta mattsanta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@edwardthiele edwardthiele merged commit 89facd5 into main Apr 5, 2024
@menahyouyeah menahyouyeah deleted the envVars branch April 18, 2025 16:02
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.

7 participants