Skip to content

Spec and generated model/APIs for operations on deployment and component resource types#151

Merged
kachawla merged 3 commits into
mainfrom
kachawla/api-spec
Apr 1, 2021
Merged

Spec and generated model/APIs for operations on deployment and component resource types#151
kachawla merged 3 commits into
mainfrom
kachawla/api-spec

Conversation

@kachawla

Copy link
Copy Markdown
Member

Spec and generated model/APIs for operations on deployment and component resource types.

@kachawla kachawla requested review from rynowak and vinayada1 March 31, 2021 17:21
Comment thread schemas/rest-api-specs/radius.json
Comment thread schemas/rest-api-specs/radius.json
Comment thread schemas/rest-api-specs/radius.json
Comment thread schemas/rest-api-specs/radius.json
Comment thread pkg/radclient/zz_generated_deployment.go Outdated
Comment thread schemas/rest-api-specs/radius.json Outdated
@kachawla kachawla merged commit a2447c0 into main Apr 1, 2021
willdavsmith added a commit that referenced this pull request Jun 2, 2026
Resolves several drift points the design had picked up over the
review rounds on the chart and recipe PRs:

Recipe / schema:
- properties.tag is now optional for git sources too. The recipe
  hashes the resolved BuildKit URL (incl. ref + subdir) for git
  sources and the file tree for local sources; both feed into a
  content-addressable sha256 tag default. Drop the
  'validate_git_tag' precondition and the 'tag required for git'
  language everywhere it appeared.
- environment and application are marked required in the schema
  to match every other resource type in this PR's wave; update
  the properties table accordingly.
- Add build.args to the schema properties table; the recipe
  validates keys (env-var-name shape) and values (no shell
  metacharacters) and feeds them into the tag hash.
- The kubernetes_secret data source returns plain-text values
  (the provider auto-decodes), so drop all base64-decode
  references in the recipe sketch, the contract section, and
  the security section.
- Refresh the recipe sketch to match what main.tf actually does
  (no base64decode, includes build_args and git-URL hashing).

Chart:
- buildctl is mounted at /usr/local/bin/buildctl via 'subPath:
  buildctl', landing it on the image's standard PATH without a
  PATH env-var override and without shadowing /usr/local/bin.
  Drop every reference to extending PATH; only BUILDKIT_HOST is
  set on dynamic-rp.
- fsGroup: 65532 + supplementalGroups: [65532] are set at the
  pod level whenever the sidecar is enabled, not just under
  psaMode=restricted. The chown lets dynamic-rp read the
  shared emptyDir; supplementalGroups lets buildkitd (UID 1000)
  write to its chown'd state volume.
- The NOTES.txt preflight, contributor doc, and sample
  recipe-pack Bicep are moved out of the initial-PR scope into
  the new Phasing section as Wave 2 follow-ups. None of them
  blocks Wave 1.

Phasing:
- Add a Phasing section that splits the design's scope across
  three waves: the initial chart + recipe (Wave 1), independent
  follow-ups (Wave 2: preflight, recipe-pack samples, contributor
  doc), and the coordinated local-context upload trio (Wave 3:
  rad CLI + dynamic-rp endpoint + recipe-side change).

Architecture diagram:
- Update the buildctl-init box to show the subPath mount at
  /usr/local/bin/buildctl instead of /opt/buildctl/bin.

Signed-off-by: willdavsmith <willdavsmith@gmail.com>
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.

2 participants