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

[deployment] Update removed v1beta1 resource types to v1. #805

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
8 changes: 4 additions & 4 deletions build/deploy/base.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ local util = import 'util.libsonnet';
name: name,
namespace: metadata.namespace,
clusterName: metadata.clusterName,
labels: {
labels: {
name: std.join('-', std.split(name, ':')),
},
},
},

_RoleRelated(kind, metadata, name): $._Object('rbac.authorization.k8s.io/v1beta1', kind, metadata, name) {
_RoleRelated(kind, metadata, name): $._Object('rbac.authorization.k8s.io/v1', kind, metadata, name) {
local rr = self,
app:: "",
metadata+: {
Expand All @@ -38,7 +38,7 @@ local util = import 'util.libsonnet';
metadata+: {
namespace: null,
},
},
},

Role(metadata, name): $._RoleRelated('Role', metadata, name) {

Expand Down Expand Up @@ -76,7 +76,7 @@ local util = import 'util.libsonnet';

},

Ingress(metadata, name): $._Object('networking.k8s.io/v1beta1', 'Ingress', metadata, name) {
Ingress(metadata, name): $._Object('networking.k8s.io/v1', 'Ingress', metadata, name) {

},

Expand Down
10 changes: 7 additions & 3 deletions build/deploy/http-gateway.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ local ingress(metadata) = base.Ingress(metadata, 'https-ingress') {
},
},
spec: {
backend: {
serviceName: 'http-gateway',
servicePort: metadata.gateway.port,
defaultBackend: {
service: {
name: 'http-gateway',
port: {
number: metadata.gateway.port,
}
}
},
},
};
Expand Down