Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a subscription to gs://kubernetes-ci-logs. #7370

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

michelle192837
Copy link
Contributor

@michelle192837 michelle192837 commented Oct 4, 2024

There's an existing PubSub topic for GCS changes to gs://kubernetes-ci-logs (in k8s-infra-prow). Attempt to add a new subscription to this in kubernetes-public so Kettle can use updates from the new logs bucket.

(Note: I don't have permissions to run terraform here, so I haven't verified that these additions are valid.)

/hold

Don't submit until we verify this will do something with terraform plan

Ref kubernetes/test-infra#33381

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 4, 2024
@k8s-ci-robot k8s-ci-robot added area/infra Infrastructure management, infrastructure design, code in infra/ area/infra/gcp Issues or PRs related to Kubernetes GCP infrastructure area/terraform Terraform modules, testing them, writing more of them, code in infra/gcp/clusters/ sig/k8s-infra Categorizes an issue or PR as relevant to SIG K8s Infra. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 4, 2024
There's an existing PubSub topic for GCS changes to
gs://kubernetes-ci-logs (in k8s-infra-prow). Attempt to add a new
subscription to this in kubernetes-public so Kettle can use updates from
the new logs bucket.

(Note: I don't have permissions to run terraform here, so I haven't
verified that these additions are valid.)
@ameukam
Copy link
Member

ameukam commented Oct 7, 2024

/lgtm
/approve
/hold

Remove the hold when you found someone to apply this.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 7, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ameukam, michelle192837

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 7, 2024
@ameukam
Copy link
Member

ameukam commented Oct 10, 2024

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 10, 2024
@k8s-ci-robot k8s-ci-robot merged commit 2704baf into kubernetes:main Oct 10, 2024
3 of 4 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.32 milestone Oct 10, 2024
@ameukam
Copy link
Member

ameukam commented Oct 10, 2024

@michelle192837 Looks like we need a schema for the topic:

│ Error: Missing required argument
│
│   with google_pubsub_subscription.kettle_ci_logs_subscription,
│   on k8s-kettle.tf line 106, in resource "google_pubsub_subscription" "kettle_ci_logs_subscription":
│  106:   topic   = data.google_pubsub_topic.kubernetes_ci_logs_topic.id
│
│ The argument "topic" is required, but no definition was found.

ameukam added a commit to ameukam/k8s.io that referenced this pull request Oct 10, 2024
Follow-up of:
  - kubernetes#7370

The id of the PubSub topic is required instead of the topic's name.

resource "google_pubsub_subscription" "kettle_ci_logs_subscription" {
name = "k8s-infra-kettle"
topic = data.google_pubsub_topic.kubernetes_ci_logs_topic.name
Copy link
Member

Choose a reason for hiding this comment

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

should this be id instead of name?

topic = data.google_pubsub_topic.kubernetes_ci_logs_topic.id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/infra/gcp Issues or PRs related to Kubernetes GCP infrastructure area/infra Infrastructure management, infrastructure design, code in infra/ area/terraform Terraform modules, testing them, writing more of them, code in infra/gcp/clusters/ cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/k8s-infra Categorizes an issue or PR as relevant to SIG K8s Infra. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants