Skip to content

Commit a2b552a

Browse files
authored
Merge pull request #586 from SAP/DM01-5562
DM01-5562: Infrabox add K8Snetworking for gke service
2 parents ac3d2d4 + bc755cc commit a2b552a

File tree

6 files changed

+1311
-1301
lines changed

6 files changed

+1311
-1301
lines changed

src/images/base/Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
# buster (10) is the last version to support Python 2.
2-
# bullseye (11) although does have a Python 2 interpreter,
3-
# almost *all* Python 2 packages, however, have been removed from bullseye
4-
# and bookworm (12) does not ship Python 2 at all
5-
FROM debian:buster-slim
1+
FROM debian:bullseye-slim
62

73
# gcc and python3-dev are necessary to build some wheels
84
# netbase offer /etc/protocols which is used by `getprotobyname` syscall
@@ -12,12 +8,15 @@ RUN apt-get update -y \
128
python3-dev \
139
netbase \
1410
curl \
15-
libpq-dev \
11+
libpq-dev \
1612
python3 \
1713
python3-pip \
1814
python3-ldap \
1915
libxml2-dev \
2016
libxmlsec1-dev \
17+
xmlsec1 \
18+
pkg-config \
19+
libxmlsec1-openssl \
2120
openssh-client \
2221
inotify-tools \
2322
&& apt-get autoremove -y \

src/images/base/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ MarkupSafe==0.23 # jinja2 2.11.3 did not pin MarkupSafe versions, will bring bre
2424
paramiko==2.12.0 # FIXME: can we update to 3.x?
2525
pycryptodome==3.6.6
2626
prometheus-client==0.9.0
27+
xmlsec

src/services/gcp/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ The InfraBox GCP Service can be used to dynamically provision a Kubernetes Clust
2424
"diskSize": 100,
2525
"machineType": "n1-standard-1",
2626
"enableNetworkPolicy": false,
27+
"stackType": "ipv4-ipv6",
2728
"disableLegacyAuthorization": false,
2829
"enablePodSecurityPolicy": true,
2930
"numNodes": 1,

src/services/gcp/infrabox-service-gcp/templates/crd.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ spec:
5252
type: string
5353
enableManagedPrometheus:
5454
type: boolean
55+
stackType:
56+
type: string
5557
status:
5658
x-kubernetes-preserve-unknown-fields: true
5759
names:
Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,50 @@
11
package v1alpha1
22

33
import (
4-
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
4+
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
55
)
66

77
// +genclient
88
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
99

1010
type GKECluster struct {
11-
metav1.TypeMeta `json:",inline"`
12-
metav1.ObjectMeta `json:"metadata,omitempty"`
11+
metav1.TypeMeta `json:",inline"`
12+
metav1.ObjectMeta `json:"metadata,omitempty"`
1313

14-
Spec GKEClusterSpec `json:"spec"`
15-
Status GKEClusterStatus `json:"status"`
14+
Spec GKEClusterSpec `json:"spec"`
15+
Status GKEClusterStatus `json:"status"`
1616
}
1717

1818
type GKEClusterSpec struct {
19-
DiskSize int32 `json:"diskSize,omitempty"`
20-
MachineType string `json:"machineType,omitempty"`
21-
EnableNetworkPolicy bool `json:"enableNetworkPolicy,omitempty"`
22-
DisableLegacyAuthorization bool `json:"disableLegacyAuthorization,omitempty"`
23-
EnablePodSecurityPolicy bool `json:"enablePodSecurityPolicy,omitempty"`
24-
NumNodes int32 `json:"numNodes,omitempty"`
25-
Preemptible bool `json:"preemptible,omitempty"`
26-
EnableAutoscaling bool `json:"enableAutoscaling,omitempty"`
27-
MaxNodes int32 `json:"maxNodes,omitempty"`
28-
MinNodes int32 `json:"minNodes,omitempty"`
29-
ClusterVersion string `json:"clusterVersion,omitempty"`
30-
Zone string `json:"zone"`
31-
ServiceCidr string `json:"serviceCidr,omitempty"`
32-
ClusterCidr string `json:"clusterCidr,omitempty"`
33-
EnableManagedPrometheus bool `json:"enableManagedPrometheus,omitempty"`
19+
DiskSize int32 `json:"diskSize,omitempty"`
20+
MachineType string `json:"machineType,omitempty"`
21+
EnableNetworkPolicy bool `json:"enableNetworkPolicy,omitempty"`
22+
StackType string `json:"stackType,omitempty"`
23+
DisableLegacyAuthorization bool `json:"disableLegacyAuthorization,omitempty"`
24+
EnablePodSecurityPolicy bool `json:"enablePodSecurityPolicy,omitempty"`
25+
NumNodes int32 `json:"numNodes,omitempty"`
26+
Preemptible bool `json:"preemptible,omitempty"`
27+
EnableAutoscaling bool `json:"enableAutoscaling,omitempty"`
28+
MaxNodes int32 `json:"maxNodes,omitempty"`
29+
MinNodes int32 `json:"minNodes,omitempty"`
30+
ClusterVersion string `json:"clusterVersion,omitempty"`
31+
Zone string `json:"zone"`
32+
ServiceCidr string `json:"serviceCidr,omitempty"`
33+
ClusterCidr string `json:"clusterCidr,omitempty"`
34+
EnableManagedPrometheus bool `json:"enableManagedPrometheus,omitempty"`
3435
}
3536

3637
type GKEClusterStatus struct {
37-
Status string `json:"status,omitempty"`
38-
Message string `json:"message,omitempty"`
39-
ClusterName string `json:"clusterName,omitempty"`
40-
FirstCleanedAt string `json:"firstCleanedAt,omitempty"`
38+
Status string `json:"status,omitempty"`
39+
Message string `json:"message,omitempty"`
40+
ClusterName string `json:"clusterName,omitempty"`
41+
FirstCleanedAt string `json:"firstCleanedAt,omitempty"`
4142
}
4243

4344
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
4445
type GKEClusterList struct {
45-
metav1.TypeMeta `json:",inline"`
46-
metav1.ListMeta `json:"metadata"`
46+
metav1.TypeMeta `json:",inline"`
47+
metav1.ListMeta `json:"metadata"`
4748

48-
Items []GKECluster `json:"items"`
49+
Items []GKECluster `json:"items"`
4950
}

0 commit comments

Comments
 (0)