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 calico-apiserver #2707

Merged
merged 1 commit into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions images/calico/configs/latest.apiserver.apko.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
contents:
packages:
- calico-apiserver

accounts:
groups:
- groupname: nonroot
gid: 65532
users:
- username: nonroot
uid: 65532
gid: 65532
# Chart overrides this at runtime
# https://github.com/projectcalico/calico/blob/23ae58b62765b14aa2c5952b2fc6c40155731a79/manifests/apiserver.yaml#L91
run-as: 65532

paths:
# https://github.com/projectcalico/calico/blob/23ae58b62765b14aa2c5952b2fc6c40155731a79/manifests/apiserver.yaml#L93
- path: /code
type: directory
permissions: 0o777

entrypoint:
command: /usr/bin/calico-apiserver
3 changes: 2 additions & 1 deletion images/calico/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ locals {
"csi",
"typha",
"pod2daemon",
"node-driver-registrar"
"node-driver-registrar",
"apiserver"
])

// Normally the package is named like "calico-{component}"
Expand Down
2 changes: 2 additions & 0 deletions images/calico/tests/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ spec:
digest: ${CSI_DIGEST}
- image: calico/typha
digest: ${TYPHA_DIGEST}
- image: calico/apiserver
digest: ${APISERVER_DIGEST}
- image: calico/node-driver-registrar
digest: ${NODE_DRIVER_REGISTRAR_DIGEST}
# This isn't used on Linux, it just needs to have a value.
Expand Down
3 changes: 3 additions & 0 deletions images/calico/tests/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ variable "digests" {
typha = string
node-driver-registrar = string
calicoctl = string
apiserver = string
})
}

Expand Down Expand Up @@ -72,6 +73,8 @@ spec:
digest: ${local.parsed["csi"].digest}
- image: calico/typha
digest: ${local.parsed["typha"].digest}
- image: calico/apiserver
digest: ${local.parsed["apiserver"].digest}
- image: calico/node-driver-registrar
digest: ${local.parsed["node-driver-registrar"].digest}
EOm
Expand Down
Loading