Skip to content

Commit d7f5651

Browse files
committed
Enable CRD gen for Istio 1.7
1 parent 3bbb8b8 commit d7f5651

File tree

4 files changed

+80
-4
lines changed

4 files changed

+80
-4
lines changed

.github/actions/helm/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh -l
22

3-
VERSION=3.2.1
3+
VERSION=3.3.1
44
curl -sL https://get.helm.sh/helm-v${VERSION}-linux-amd64.tar.gz | tar xz
55

66
mkdir -p $GITHUB_WORKSPACE/bin

.github/workflows/update-istio.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
helm template ${ISTIO_DIR}/manifests/charts/istio-operator/ \
2929
--set hub=docker.io/istio \
3030
--set tag=${ISTIO_VER} \
31+
--set enableCRDTemplates=true \
3132
--set operatorNamespace=istio-operator \
3233
--set istioNamespace=istio-system > ./istio/operator/manifests.yaml
3334

istio/operator/manifests.yaml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,80 @@ metadata:
1515
namespace: istio-operator
1616
name: istio-operator
1717
---
18+
# Source: istio-operator/templates/crds.yaml
19+
# SYNC WITH manifests/charts/base/files
20+
apiVersion: apiextensions.k8s.io/v1
21+
kind: CustomResourceDefinition
22+
metadata:
23+
name: istiooperators.install.istio.io
24+
labels:
25+
release: istio
26+
spec:
27+
group: install.istio.io
28+
names:
29+
kind: IstioOperator
30+
plural: istiooperators
31+
singular: istiooperator
32+
shortNames:
33+
- iop
34+
scope: Namespaced
35+
versions:
36+
- additionalPrinterColumns:
37+
- description: Istio control plane revision
38+
jsonPath: .spec.revision
39+
name: Revision
40+
type: string
41+
- description: IOP current state
42+
jsonPath: .status.status
43+
type: string
44+
name: Status
45+
- jsonPath: .metadata.creationTimestamp
46+
description:
47+
"CreationTimestamp is a timestamp representing the server time when
48+
this object was created. It is not guaranteed to be set in happens-before order
49+
across separate operations. Clients may not set this value. It is represented
50+
in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for
51+
lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata"
52+
name: Age
53+
type: date
54+
name: v1alpha1
55+
schema:
56+
openAPIV3Schema:
57+
properties:
58+
apiVersion:
59+
description:
60+
"APIVersion defines the versioned schema of this representation
61+
of an object. Servers should convert recognized schemas to the latest
62+
internal value, and may reject unrecognized values.
63+
More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#resources"
64+
type: string
65+
kind:
66+
description:
67+
"Kind is a string value representing the REST resource this
68+
object represents. Servers may infer this from the endpoint the client
69+
submits requests to. Cannot be updated. In CamelCase.
70+
More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
71+
type: string
72+
spec:
73+
description:
74+
"Specification of the desired state of the istio control plane resource.
75+
More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status"
76+
x-kubernetes-preserve-unknown-fields: true
77+
type: object
78+
status:
79+
description:
80+
"Status describes each of istio control plane component status at the current time.
81+
0 means NONE, 1 means UPDATING, 2 means HEALTHY, 3 means ERROR, 4 means RECONCILING.
82+
More info: https://github.com/istio/api/blob/master/operator/v1alpha1/istio.operator.v1alpha1.pb.html &
83+
https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status"
84+
x-kubernetes-preserve-unknown-fields: true
85+
type: object
86+
type: object
87+
served: true
88+
storage: true
89+
subresources:
90+
status: {}
91+
---
1892
# Source: istio-operator/templates/clusterrole.yaml
1993
apiVersion: rbac.authorization.k8s.io/v1
2094
kind: ClusterRole

scripts/istio-init.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,18 @@ if [[ ! -x "$(command -v helm)" ]]; then
1212
exit 1
1313
fi
1414

15-
VERSION=1.5.2
15+
VERSION=1.7.0
1616
REPO_ROOT=$(git rev-parse --show-toplevel)
1717

1818
curl -sL https://istio.io/downloadIstio | ISTIO_VERSION=${VERSION} sh -
1919

20-
helm template ${REPO_ROOT}/istio-${VERSION}/install/kubernetes/operator/charts/istio-operator/ \
20+
helm template ${REPO_ROOT}/istio-${VERSION}/manifests/charts/istio-operator \
2121
--set hub=docker.io/istio \
2222
--set tag=${VERSION} \
23+
--set enableCRDTemplates=true \
2324
--set operatorNamespace=istio-operator \
2425
--set istioNamespace=istio-system > ${REPO_ROOT}/istio/operator/manifests.yaml
2526

2627
rm -rf ${REPO_ROOT}/istio-${VERSION}
2728

28-
echo "Istio operator ${VERSION} manifests updated"
29+
echo "Istio operator ${VERSION} manifests updated"

0 commit comments

Comments
 (0)