Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Support resolving image refs within YAML, not just exact matches of a full string. #134

Conversation

greggdonovan
Copy link
Member

This can be useful, e.g., when using spec->template->metadata->annotations.pod.beta.kubernetes.io/init-containers and embedding image references within a larger JSON string containing a full container description. See the workarounds described in kubernetes/kubernetes#47264 for our motivating example.

when using spec->template->metadata->annotations.pod.beta.kubernetes.io/init-containers
"""
metadata = '[{"command": ["/some/example/command/example.sh"], "image": "%s"}]'
sentinel_string = 'XXXXX'
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this whatever:tag and thus unique? If so can you change the form to match this?

Otherwise I'm concerned we'll wind up matching something like bash which might replace more than just the image.

@fejta
Copy link
Contributor

fejta commented Jun 26, 2018

@mattmoor any chance you can weigh in here?

@fejta
Copy link
Contributor

fejta commented Jun 27, 2018

/assign
/cc @mattmoor

@fejta
Copy link
Contributor

fejta commented Jul 23, 2018

/override continuous-integration/travis-ci/pr
/ok-to-test

@k8s-ci-robot
Copy link

@fejta: Overrode contexts on behalf of fejta: continuous-integration/travis-ci/pr

In response to this:

/override continuous-integration/travis-ci/pr
/ok-to-test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@fejta
Copy link
Contributor

fejta commented Jul 24, 2018

Gregg, is this PR still wanted? Can you please address the feedback when you have the chance? Thanks for your patience and contribution!

/lifecycle stale

@chrislovecnm
Copy link
Contributor

@fejta I will talk with Greg soon and bug him about this.

@chrislovecnm
Copy link
Contributor

/remove-lifecycle stale

@chrislovecnm
Copy link
Contributor

I am gonna close this due to lack of response. Sent email and pinged yah her. Feel free to reopen!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants