-
Notifications
You must be signed in to change notification settings - Fork 92
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 package reference docs #2046
Conversation
32373d0
to
7cbe1a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a few comments and suggestions
|
||
## Referencing Container images | ||
|
||
Since v2.0.1, you are able to add container images as package references directly from the Kustomize step. Image references added in this way can be used via [variable substitutions](/docs/projects/variables/variable-substitutions). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since v2.0.1, you are able to add container images as package references directly from the Kustomize step. Image references added in this way can be used via [variable substitutions](/docs/projects/variables/variable-substitutions). | |
From v2.0.1, you are able to add container images as package references directly from the Kustomize step. Image references added in this way can be used via [reference package variables](/docs/projects/variables/system-variables#reference-package-variables). |
![Reference a package](/docs/deployments/kubernetes/kustomize/reference-a-package.png) | ||
::: | ||
|
||
You will then be able to select the version of this container image at release creation time. You can use the referenced `nginx` container image in a YAML file as a variable: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You will then be able to select the version of this container image at release creation time. You can use the referenced `nginx` container image in a YAML file as a variable: | |
You will then be able to select the version of this container image at release creation time. You can use the referenced `nginx` container image in your `kustomization.yaml` file using the following syntax: |
|
||
You will then be able to select the version of this container image at release creation time. You can use the referenced `nginx` container image in a YAML file as a variable: | ||
|
||
```yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# ~/myApp/kustomization.yaml
resources:
- deployment.yaml
images:
- name: nginx
newTag: #{Octopus.Action.Package[nginx].PackageVersion}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this may be a better example, more the kustomize way 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but there is a conflict
Add documentation for using container image references in kustomize step.