Skip to content

Commit

Permalink
[release-0.2] Release updates towards operator (#112)
Browse files Browse the repository at this point in the history
* config/

* updated release

Co-authored-by: David Hadas <david.hadas@gmail.com>
  • Loading branch information
knative-prow-robot and davidhadas authored Dec 16, 2022
1 parent 8d64cae commit 9468a17
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 0 additions & 1 deletion config/deploy/config-features.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ metadata:
labels:
app.kubernetes.io/name: knative-serving
app.kubernetes.io/component: controller
app.kubernetes.io/version: devel
data:
# This overrides the configmap produced by knative serving
queueproxy.mount-podinfo: allowed
1 change: 0 additions & 1 deletion config/deploy/queue-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ metadata:
labels:
app.kubernetes.io/name: knative-serving
app.kubernetes.io/component: controller
app.kubernetes.io/version: devel
data:
# This overrides the configmap produced by knative serving
queue-sidecar-image: ko://knative.dev/security-guard/cmd/queue
Expand Down
13 changes: 13 additions & 0 deletions hack/generate-yamls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ readonly SECURED_HELLO_YAML=${YAML_OUTPUT_DIR}/secured-helloworld.yaml
readonly SECURED_LAYERED_MYAPP_YAML=${YAML_OUTPUT_DIR}/secured-layered-myapp.yaml
readonly GUARD_SERVICE_YAML=${YAML_OUTPUT_DIR}/guard-service.yaml
readonly QUEUE_PROXY_YAML=${YAML_OUTPUT_DIR}/queue-proxy.yaml
readonly GATE_ACCOUNT_YAML=${YAML_OUTPUT_DIR}/gate-account.yaml
readonly SERVICE_ACCOUNT_YAML=${YAML_OUTPUT_DIR}/service-account.yaml
readonly GUARDIAN_CRD_YAML=${YAML_OUTPUT_DIR}/guardian-crd.yaml

# Flags for all ko commands
KO_YAML_FLAGS="-P"
Expand Down Expand Up @@ -82,6 +85,9 @@ ko resolve ${KO_YAML_FLAGS} -f config/deploy/secured-helloworld.yaml | "${LABEL_
ko resolve ${KO_YAML_FLAGS} -f config/deploy/secured-layered-myapp.yaml | "${LABEL_YAML_CMD[@]}" > "${SECURED_LAYERED_MYAPP_YAML}"
ko resolve ${KO_YAML_FLAGS} -f config/deploy/guard-service.yaml | "${LABEL_YAML_CMD[@]}" > "${GUARD_SERVICE_YAML}"
ko resolve ${KO_YAML_FLAGS} -f config/deploy/queue-proxy.yaml | "${LABEL_YAML_CMD[@]}" > "${QUEUE_PROXY_YAML}"
ko resolve ${KO_YAML_FLAGS} -f config/resources/gateAccount.yaml | "${LABEL_YAML_CMD[@]}" > "${GATE_ACCOUNT_YAML}"
ko resolve ${KO_YAML_FLAGS} -f config/resources/serviceAccount.yaml | "${LABEL_YAML_CMD[@]}" > "${SERVICE_ACCOUNT_YAML}"
ko resolve ${KO_YAML_FLAGS} -f config/resources/guardiansCrd.yaml | "${LABEL_YAML_CMD[@]}" > "${GUARDIAN_CRD_YAML}"
echo "All manifests generated"

# List generated YAML files
Expand All @@ -91,11 +97,18 @@ ${SECURED_HELLO_YAML}
${SECURED_LAYERED_MYAPP_YAML}
${GUARD_SERVICE_YAML}
${QUEUE_PROXY_YAML}
${GATE_ACCOUNT_YAML}
${SERVICE_ACCOUNT_YAML}
${GUARDIAN_CRD_YAML}
EOF

cat << EOF > "${YAML_ENV_FILE}"
export SECURED_HELLO_YAML=${SECURED_HELLO_YAML}
export SECURED_LAYERED_MYAPP_YAML=${SECURED_LAYERED_MYAPP_YAML}
export GUARD_SERVICE_YAML=${GUARD_SERVICE_YAML}
export QUEUE_PROXY_YAML=${QUEUE_PROXY_YAML}
export GATE_ACCOUNT_YAML=${GATE_ACCOUNT_YAML}
export SERVICE_ACCOUNT_YAML=${SERVICE_ACCOUNT_YAML}
export GUARDIAN_CRD_YAML=${GUARDIAN_CRD_YAML}
EOF

0 comments on commit 9468a17

Please sign in to comment.