-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
686 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Code generated by cue get go. DO NOT EDIT. | ||
|
||
//cue:generate cue get go k8s.io/api/networking/v1 | ||
|
||
package v1 | ||
|
||
#GroupName: "networking.k8s.io" |
Large diffs are not rendered by default.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
cue.mod/gen/k8s.io/api/networking/v1/well_known_annotations_go_gen.cue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Code generated by cue get go. DO NOT EDIT. | ||
|
||
//cue:generate cue get go k8s.io/api/networking/v1 | ||
|
||
package v1 | ||
|
||
// AnnotationIsDefaultIngressClass can be used to indicate that an | ||
// IngressClass should be considered default. When a single IngressClass | ||
// resource has this annotation set to true, new Ingress resources without a | ||
// class specified will be assigned this default class. | ||
#AnnotationIsDefaultIngressClass: "ingressclass.kubernetes.io/is-default-class" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package templates | ||
|
||
import ( | ||
netv1 "k8s.io/api/networking/v1" | ||
) | ||
|
||
#Ingress: netv1.#Ingress & { | ||
_config: #Config | ||
apiVersion: "networking.k8s.io/v1" | ||
kind: "Ingress" | ||
metadata: { | ||
name: _config.metadata.name | ||
namespace: _config.metadata.namespace | ||
labels: _config.metadata.labels | ||
if _config.metadata.annotations != _|_ { | ||
annotations: _config.metadata.annotations | ||
} | ||
} | ||
spec: { | ||
rules: [{ | ||
if _config.ingress.host != "" { | ||
host: _config.ingress.host | ||
} | ||
http: { | ||
paths: [ | ||
for setup in _config.ingress.http { | ||
path: setup.path | ||
backend: { | ||
service: { | ||
name: _config.metadata.name | ||
port: number: setup.port | ||
} | ||
} | ||
}, | ||
] | ||
} | ||
}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters